[arch-general] Package versioning

Magnus Therning magnus at therning.org
Thu Sep 1 21:57:07 UTC 2016


When packaging Haskell packages there's a bit of a twist to the version
numbers that I'm looking for a solution to.

Upstream versions have two numbers, a version number (set by the
upstream developer) and an "xrev" that's bumped when minor changes are
made to packages on Hackage (Haskell's CPAN/PyPi/RubyGems/...).

Then the packaging has a release.

So far I've been using versions of the form

   <upstream version>_<xrev>-<pkgrel>

But that isn't good enough, `pacman` has for instance reported that's

~~~
warning: haskell-vector-algorithms: local (0.7_1-2) is newer than haskell-core (0.7.0.1_0-1)
warning: haskell-monadrandom: local (0.4_2-1) is newer than haskell-core (0.4.1_0-1)
~~~

which isn't correct since

   0.7 < 0.7.0.1
   0.4 < 0.4.1

It seems `pacman` treats underbar like a period, which isn't at all what
I was hoping for.

I'm hoping for some help to find something better. Any suggestions on
how I should do this properly?

/M

-- 
Magnus Therning              OpenPGP: 0x927912051716CE39
email: magnus at therning.org   jabber: magnus at therning.org
twitter: magthe               http://therning.org/magnus

An approximate answer to the right problem is worth a good deal more
than an exact answer to an approximate problem.
     — John Tukey
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 800 bytes
Desc: not available
URL: <https://lists.archlinux.org/pipermail/arch-general/attachments/20160901/ba527b31/attachment-0001.asc>


More information about the arch-general mailing list