[opensuse-packaging] How to package when upstream version is yyyymmdd
Hello I would like to know what to use as RPM package version when the upstream version is only a date like "yyyymmdd" (e.g. 20141013 for today). https://en.opensuse.org/openSUSE:Package_naming_guidelines mentiones "tilde versions" but "tilde versions" are unsupported in older openSUSE and SLE versions but intentionally the package should be also available for older openSUSE and SLE versions. Using a letter prefix like 'v.yyyymmdd' would work because zypper vcmp 'v.20141013' '0.0.1' results "v.20141013 is older than 0.0.1" (because 'v.*' is older than '0.*') This way if upstream might release a '0.0.1' version in the future an installed package of version 'v.20141013' could be upgraded. On the other hand I wonder if an openSUSE-specific artificial prefix to be prepared for potential upstream versioning changes in the future is overengineered and simply being in full compliance with upstream and just using the upstream version "yyyymmdd" is better? 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 Monday 2014-10-13 12:00, Johannes Meixner wrote:
Using a letter prefix like 'v.yyyymmdd' would work because zypper vcmp 'v.20141013' '0.0.1' results "v.20141013 is older than 0.0.1" (because 'v.*' is older than '0.*')
This way if upstream might release a '0.0.1' version in the future an installed package of version 'v.20141013' could be upgraded.
On the other hand I wonder if an openSUSE-specific artificial prefix to be prepared for potential upstream versioning changes in the future is overengineered and simply being in full compliance with upstream and just using the upstream version "yyyymmdd" is better?
Well, I've seen things like 0.0.0.20141013 (it would appear unlikely that some upstream makes a 0.0.0.1 just to set packagers up the bomb). Or you can just bite the bullet and ask the end-user to do a downgrade at some point, something which happens at `zypper dup` time anyway. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (2)
-
Jan Engelhardt
-
Johannes Meixner