_rpmversion in rpm 5.4.13

Jeffrey Johnson n3npq at me.com
Mon Sep 23 23:41:41 CEST 2013



Sent from my iPhone

> On Sep 23, 2013, at 3:10 PM, Jakub Bogusz <qboosh at pld-linux.org> wrote:
> 
> $ grep _rpmversion -r /usr/lib/rpm/
> /usr/lib/rpm/macros:%_rpmversion                3.0 (Th)
> 
> Is it what it's expected to be?

Yes. LSB mandated 3.0 in all packages, preventing any rational
usage of versioning.

*shrug* rpm5 uses the rpm lead
(where the version is stored at offset 4) as padding. There has been no important usage case for the
"abandoned data structure" in
an rpm lead since 1997.

> It was 4.5 in rpm-4.5, >= 5 in rpm-5.1.12.

Someone in PLD, not me, changed.
Shame on you for not supporting 
LSB package standard efforts ;-)

> Now "%{_rpmversion}" >= "5.0" check doesn't work as before...
> 

I'm not sure how version comparison
solves any real world problem. E.g. 
RPM functionality is drastically
recinfigurable through macros and
build options.

Then there is a fork with different version schemes.

Have fun! Whatever works for you an PLD and rpm.org and ... 

hth

73 de Jeff
> 
> -- 
> Jakub Bogusz    http://qboosh.pl/
> _______________________________________________
> pld-devel-en mailing list
> pld-devel-en at lists.pld-linux.org
> http://lists.pld-linux.org/mailman/listinfo/pld-devel-en


More information about the pld-devel-en mailing list