On Wed, Feb 26, 2003 at 07:36:46PM +0100, Nils Faerber wrote:
> On 26 Feb 2003 13:19:41 -0500
> Jamey Hicks <jamey.hicks@hp.com> wrote:
> > On Wed, 2003-02-26 at 06:54, Philip Blundell wrote:
> > > Unfortunately your sdp package has fallen victim to the way ipkg
> > > interprets version numbers: "1.0-kc1" compares as lower than
> > > "1.0rc3-hh1". I have moved the old package out of the feed, so new
> > > installations should pick up the right one, but anybody attempting
> > > to upgrade will need to manually uninstall the old version.
> > According to the ipkg sources, it is intrepreting the version numbers
> > Debian style.
> Hm..
>
> > It seems to think that version numbers are
> > epoch:ver-debver
> > where epoch: is optional, where ver can be anything but trailing -foo
> > is interpreted as debian version. If the package version had a -foo
> > it grabs it with unexpected resutls.
> Not nice :(
>
> > Every time I run into this kind of problem I go back and look at it
> > and it seems that the behavior is correct according to the spec. I
> > think it's broken and would like to fix it, if no one has any problems
> > with that.
>
> Strangely I had a similar thought :)
> So from my point, please go ahead! I am sure I will appreciate it. Just
> one: Please document the new way it will work so that everyone will know
> what to expect.
But if you change it, we'lll lose compatability with standard debs, no?
I believe the rule is the _last_ -foo is the debian version, so _always_
add a deb i(or in our case, hh) version - packages with only one -foo
are usually debian specific, and have _no_ non deb version at all. Epochs
are for fixing things like this: since most tools hide the epoch from the
user, you can us it to make "1.0-kc1" supercede "1.0rc3-hh1": release a
"1:1.0-kc1".
On reflection, the -foo should be viewed 'packager' release string. Always
add one, if you're not the upstream developer. The specific case here
is that '1.0' < '1.0rc3'. If you've control of the upstream version,
a simple renumber to 1.0.0 would handle this. Otherwise, this is exactly
the case epochs are designed to solve.
Ross
Received on Wed Feb 26 19:39:20 2003
This archive was generated by hypermail 2.1.8 : Tue May 04 2004 - 09:45:01 EDT