0.5.15lorg3.1 loses epochs on rh7.3/rh8.0/rh9 (promoteepoch?)

Panu Matilainen pmatilai at laiskiainen.org
Fri May 26 12:48:27 PDT 2006


On Fri, 2006-05-26 at 21:34 +0200, Axel Thimm wrote:
> On Fri, May 26, 2006 at 10:28:30PM +0300, Panu Matilainen wrote:
> > On Fri, 2006-05-26 at 20:32 +0200, Axel Thimm wrote:
> > > Hi,
> > > 
> > > ATrpms' buildsystem is based on the latest released rpm & apt
> > > versions, e.g. rpm-4.4.2 (inside and outside the chroots) and now
> > > apt-0.5.15lorg3.1.
> > > 
> > > For the chroot mentioned in the Summary the new apt miscalculates
> > > epochs. For example:
> > > 
> > > The following packages have unmet dependencies:
> > >   rpm-build.32bit: Depends: perl (>= 5.006001)
> > > 
> > > rpm-build requires 5.006001 and perl offers 1:5.6.1-36.1.73, so it
> > > looks like the epoch was dropped.
> > > 
> > > I think this might be a promoteepoch handling bug. All these three
> > > have promoteepoch turned on [and need it turned on :/].
> > 
> > I don't think it's possible to emulate the rpm < 4.2.1 epoch mess with
> > rpm 4.4.2, promoteepoch or not.
> 
> But I've been doing so for many, many months now :)

That's more luck than working as designed really :)

> 
> > Repomd (well, createrepo) makes the situation even worse because it
> > lies about non-existing epochs
> 
> I forgot to say that I'm using it on apt metadata, no repomd anywhere,
> so it's something different than the createrepo-zeros-epochs-bug.
> 
> BTW downgrading to lorg1 fixes it.

In that case the HideZeroEpoch runtime configuration patch in my
previous mail would probably help. 

The situation is really just insane: to support repomd repositories made
with unpatched createrepo, to behave consistently with modern rpm which
is not supposed to care about zero vs no epoch, we need to strip all the
zero epochs everywhere (that's what smart does as well, and the other
option of *adding* zero epochs where they don't exist breaks even more
things). And to try to support older versions we leave them intact and
pray that a patched createrepo was used. It's just sick. And all because
of createrepo lies about non-existent epochs. SIGH.

	- Panu -




More information about the Apt-Rpm mailing list