[opensuse-packaging] Version numbers with '+' and '~' in them?
Why does rpmlint consider 0~20130416 older than 0.0.0+20130128 ? Does RPM/zypper have the same logic? Is there some way to do a rename (Obsoletes / Provides) to move from 0.0.0 versioning to 0 versioning? == details I've got a package that has been in 12.2 and 12.3 named as: ewftools v0.0.0+20120813. It is currently in factory as v0.0.0+20130113 It's part of a library toolset known as libyal. (about 20 libyal packages in factory now). When the rest of the libyal packages were created post 12.3 they were versioned like libyal-tools v0~20130416, so I'm trying to update the libewf package to create a libewf-tools package that will supersede the old ewftools package Thus I added: Obsoletes: ewftools <= 0.0.0+20130128 Provides: ewftools = %{version} But rpmlint is complaining: libewf-tools.i586: W: self-obsoletion ewftools <= 0.0.0+20130128 obsoletes ewftools = 0~20130416 Greg -- Greg Freemyer -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Wednesday 2013-07-31 22:24, Greg Freemyer wrote:
Why does rpmlint consider 0~20130416 older than 0.0.0+20130128 ?
That is how it has been defined and follows the tildeversions logic originally from Debian. 0~ < 0 < 0.0 '~' sorts before everything else, including '.' and the empty string.
Does RPM/zypper have the same logic?
Yes.
Is there some way to do a rename (Obsoletes / Provides) to move from 0.0.0 versioning to 0 versioning?
Nope. But you can choose to just replace the Version: string since `zypper dup` handles downgrades. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Thu, Aug 1, 2013 at 3:28 AM, Jan Engelhardt
Nope. But you can choose to just replace the Version: string since `zypper dup` handles downgrades.
Thank you, that's the magic piece I needed. Greg -- Greg Freemyer -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (2)
-
Greg Freemyer
-
Jan Engelhardt