[Pkg-pascal-devel] Bug#985946: patch proposal

David Bannon dbannon at internode.on.net
Wed Dec 1 11:07:32 GMT 2021

Hi Abou, this is the Lazarus Version number problem in Bullseye.

On Tue, 2021-11-30 at 09:02 +0100, Abou Al Montacir wrote:
> Hi David,
> On Tue, 2021-11-30 at 10:42 +1100, David Bannon wrote:
> > In bullseye, the source has a different version number than the
> > package and those version numbers are checked as Lazarus starts up
> > and looks in its config files. It sees a different number and
> > issues some warnings because thats normally a bad situation.
> Do you mean that supplied lazarus-src-2.0 provides a wrong
> version.inc?

You change the version.inc version number during the packaging process.
The issue is that it you have rev'ed the package number for extra
builds at some stage without also rev'ing the number in version.inc.

To be specific, version.inc now has "2.0.10_dfsg-4" and the package
gets an additional "+b2".  These version numbers are embedded in
Lazarus config files at startup. Lazarus IDE checks that its version
agrees with what it finds in the config files. If they don't match, you
get warnings of impending doom. Every time you start the IDE.

Further, if you install a package, perhaps as a tool to use in the ide
or a "library" to use in your application, Lazarus always rebuilds
itself. That triggers rounds of 'upgrade' and 'downgrade' warnings  and
changes to the config files. And then more warnings ...

Lazarus users are always rebuilding the IDE.

These issues do not stop you from using the product but they sure do
not inspire you to trust it !  The only way to stop the cycle is to
manually edit the version.inc file, adding the "+b2" so it matches the
package version. Experienced users will do so without hesitation,
beginners will panic. Frankly, I cannot workout how the IDE gets to
know the package version !

You have fixed this IIRC in Testing so you must understand the process
far better than I ?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-pascal-devel/attachments/20211201/bcd40148/attachment.htm>

More information about the Pkg-pascal-devel mailing list