[arch-haskell] RFQ: Proposal for new versioning of packages

Xyne xyne at archlinux.ca
Wed Apr 29 23:10:24 UTC 2015


On 2015-04-29 22:11 +0200
Magnus Therning wrote:

>I've slowly been working away on some way to deal with the addition of
>x-revisions in Cabal files.  My plan at the moment is to include it in
>the `pkgrel` in this way
>
>  haskell-zlib-0.5.4.2-76-x86_64.pkg.tar.xz
>
>becomes
>
>  haskell-zlib-0.5.4.2-0.76-x86_64.pkg.tar.xz
>
>given that the x-revision is 0.
>
>This of course has the slight drawback that everyone will have to
>re-install all packages :(
>
>I'd love to hear if anyone has a better suggestion, in particular if
>it means not having to re-install.  (I think I've found a way that
>won't require a re-build.)
>
>/M

The pkgrel should be an integer that is incremented by 1 with each release so it should not be included there. I don't know what x-revisions are but perhaps you can (ab)use the PKGBUILD "epoch" to managed them: https://wiki.archlinux.org/index.php/PKGBUILD#epoch

If not, can you explain what they are and how they are used?

Regards,
Xyne


More information about the arch-haskell mailing list