Bug#574956: dpkg drops zero-epoch in status file

2010-05-03 Thread Goswin von Brederlow
Florian Weimer writes: > * Integer overflow in epoch handling > > (i386)$ dpkg --compare-versions 4294967296:1 '>>' 4294967295:1 ; echo $? > 1 > (amd64)$ dpkg --compare-versions 4294967296:1 '>>' 4294967295:1 ; echo $? > 0 Well, this is wrong if one is to take the wording of policy to mean a C t

Bug#574956: dpkg drops zero-epoch in status file

2010-05-03 Thread Florian Weimer
* Raphael Hertzog: > On Mon, 03 May 2010, Florian Weimer wrote: >> But I think all implementations (except an obscure Ocaml one) agree on >> the first equality. Leading zeros are not significant here. >> >> On top of that, dpkg's epoch comparison algorithm yields different >> results on differen

Bug#574956: dpkg drops zero-epoch in status file

2010-05-03 Thread Raphael Hertzog
On Mon, 03 May 2010, Florian Weimer wrote: > But I think all implementations (except an obscure Ocaml one) agree on > the first equality. Leading zeros are not significant here. > > On top of that, dpkg's epoch comparison algorithm yields different > results on different architectures, and does n

Bug#574956: dpkg drops zero-epoch in status file

2010-05-03 Thread Florian Weimer
* Guillem Jover: > The same problem arises with non-significant zeros before digits, for > example: > > 0.001 == 0.1 == 00:000.1 > > Although this might be trickier to see in the wild, as dpkg itself > would not normalize these versions, but an unknowing packager could > generate those (somehow)

Bug#574956: dpkg drops zero-epoch in status file

2010-05-02 Thread Raphael Hertzog
On Fri, 30 Apr 2010, Guillem Jover wrote: > > It is relatively easy for apt to ignore the epoch for the hash as it is > > a simple hash and we don't need to care about false positive removes > > so apt still doesn't need to do expensive parsing here, but i want > > to ask dpkg maintainers (cc'ed an

Bug#574956: dpkg drops zero-epoch in status file

2010-05-01 Thread David Kalnischkies
Just to be sure: I am talking here only about the behavior of apt then it encounters multiple package stanzas which have the same version number (compared as dpkg does it) - in this case apt needs a way to identify if the stanza refers to the same version (e.g. then it is shipped in unstable and te

Bug#574956: dpkg drops zero-epoch in status file

2010-05-01 Thread Goswin von Brederlow
Guillem Jover writes: > Hi! > > On Fri, 2010-04-30 at 12:56:08 +0200, David Kalnischkies wrote: >> The problem: >> To compare versions with the same version number apt generates >> a hash over a few informations which are available online and >> in dpkgs status file: all dependencies and the inst

Bug#574956: dpkg drops zero-epoch in status file

2010-04-30 Thread Guillem Jover
Hi! On Fri, 2010-04-30 at 12:56:08 +0200, David Kalnischkies wrote: > The problem: > To compare versions with the same version number apt generates > a hash over a few informations which are available online and > in dpkgs status file: all dependencies and the installation size. > (as these are li

Bug#574956: dpkg drops zero-epoch in status file

2010-04-30 Thread gregor herrmann
On Fri, 30 Apr 2010 12:56:08 +0200, David Kalnischkies wrote: > /var/lib/dpkg/status: > > Package: libconfigreader-simple-perl > Installed-Size: 96 > Replaces: squidtaild (<< 2.1a6-5.4) > Depends: perl > Conflicts: squidtaild (<< 2.1a6-5.4) > > to /var/lib/apt/lists/*_Packages: > > Package: lib

Bug#574956: dpkg drops zero-epoch in status file

2010-04-30 Thread David Kalnischkies
Hello all :) We should have tried it ealier, i (and every other unstable/testing user) can reproduce it easily… It is just that the popcon is low so until now unspotted (popcon will race now drastically ;) ) The problem: To compare versions with the same version number apt generates a hash over a