[opensuse-packaging] Using "~" in package version?
Is using something like 2.02~beta1 acceptable? Brief check suggests that RPM does support it and sorts this before 2.02, but may be there are guidelines for it? Since which openSUSE release is it supported BTW? -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Thursday 2013-12-19 07:53, Andrey Borzenkov wrote:
Is using something like 2.02~beta1 acceptable? Brief check suggests that RPM does support it and sorts this before 2.02, but may be there are guidelines for it?
Since which openSUSE release is it supported BTW?
http://en.opensuse.org/openSUSE:Package_naming_guidelines#Pre-Release_packag... -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Hello, On Dec 19 10:53 Andrey Borzenkov wrote (excerpt):
Is using something like 2.02~beta1 acceptable? Brief check suggests that RPM does support it and sorts this before 2.02, but may be there are guidelines for it? Since which openSUSE release is it supported BTW?
To be on the safe side I would not use it because it depends on the package installation tools on the target system where the binary RPM would be installed if 2.02~beta1 is newer than 2.02 or if 2.02~beta1 is older than 2.02, see ------------------------------------------------------------------------ # zypper versioncmp '2.02~beta1' '2.02' 2.02~beta1 is newer than 2.02 # cat /etc/SuSE-release SUSE Linux Enterprise Desktop 11 (x86_64) VERSION = 11 PATCHLEVEL = 2 ------------------------------------------------------------------------ versus ------------------------------------------------------------------------ # zypper versioncmp '2.02~beta1' '2.02' 2.02~beta1 is older than 2.02 # cat /etc/os-release NAME=openSUSE VERSION="13.1 (Bottle)" VERSION_ID="13.1" PRETTY_NAME="openSUSE 13.1 (Bottle) (i586)" ... ------------------------------------------------------------------------ Currently I do not have openSUSE 12.x systems running so that I cannot test the behaviour there. Kind Regards Johannes Meixner -- SUSE LINUX Products GmbH -- Maxfeldstrasse 5 -- 90409 Nuernberg -- Germany HRB 16746 (AG Nuernberg) GF: Jeff Hawn, Jennifer Guild, Felix Imendoerffer -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On 12/19/2013 01:20 AM, Johannes Meixner wrote:
Hello,
On Dec 19 10:53 Andrey Borzenkov wrote (excerpt):
Is using something like 2.02~beta1 acceptable? Brief check suggests that RPM does support it and sorts this before 2.02, but may be there are guidelines for it? Since which openSUSE release is it supported BTW?
To be on the safe side I would not use it because it depends on the package installation tools on the target system where the binary RPM would be installed if 2.02~beta1 is newer than 2.02 or if 2.02~beta1 is older than 2.02, see
...
Currently I do not have openSUSE 12.x systems running so that I cannot test the behaviour there.
The link that Jan provided stated that it is in rpm 4.10 and backported to 4.9.1 for openSUSE 12.2. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Dec 23, 2013, at 1:30 PM, Jason Craig <os-dev@jacraig.com> wrote:
On 12/19/2013 01:20 AM, Johannes Meixner wrote:
On Dec 19 10:53 Andrey Borzenkov wrote (excerpt):
Is using something like 2.02~beta1 acceptable? Brief check suggests that RPM does support it and sorts this before 2.02, but may be there are guidelines for it? Since which openSUSE release is it supported BTW?
To be on the safe side I would not use it because it depends on the package installation tools on the target system where the binary RPM would be installed if 2.02~beta1 is newer than 2.02 or if 2.02~beta1 is older than 2.02, see
...
Currently I do not have openSUSE 12.x systems running so that I cannot test the behaviour there.
The link that Jan provided stated that it is in rpm 4.10 and backported to 4.9.1 for openSUSE 12.2.
I can confirm that the version comparison test works properly in openSUSE 12.2. However, as Johannes noted, the version of RPM shipped with SLES 11 (even SP3) is much older (4.4.2.3) and marks 2.02~beta1 as newer than 2.02. Most of the repos in the build service build for both SLES 11 and all supported releases of openSUSE, so unless your package is explicitly for openSUSE only, you should not rely on this. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (5)
-
Andrew Daugherity
-
Andrey Borzenkov
-
Jan Engelhardt
-
Jason Craig
-
Johannes Meixner