Re: Package versioning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Doug Newgard <scimmia@xxxxxxxxxxxxxx> writes:

> On Thu, 01 Sep 2016 23:57:07 +0200
> Magnus Therning <magnus@xxxxxxxxxxxx> wrote:
>
>> 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
>> 
>
> Sounds like <version>.x<xrev> would make more sense.

Yes, it looks like it would work better. Is there some description of
what the presence of a letter actually means?

/M

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

If our ideas of intellectual property are wrong, we must change them,
improve them and return them to their original purpose. When
intellectual property rules diminish the supply of new ideas, they
steal from all of us.
     — Andrew Brown, November 19, 2005, The Guardian

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux