RPM Community Forums

Mailing List Message of <rpm-devel>

Re: Upgrade from rpm 3.0.6

From: Jeff Johnson <n3npq@mac.com>
Date: Mon 08 Jun 2009 - 21:00:16 CEST
Message-id: <ADFD1B1D-5B28-45D0-A8E3-5070E9F37BCB@mac.com>

On Jun 8, 2009, at 2:39 PM, Thomas Jarosch wrote:

>
> I haven't tried it yet as I remember there was some threading related
> berkley db trouble when Redhat 7.x was released with rpm 4.0.x,
> though I'm blurry on the details. So I'll try to get convertdb1
> running with the latest version that included it.
>

While your memory may be long, all known "threading"
issues have long since been "fixed" in RPM.

> Out of curiosity, would it be possible to replace the
> rpm version included in the Fedora 11 installer with rpm 5.x?
>

Yes. Including retrofitting "db1" support into @rpm5.org code. I have  
no usage
case, nor do I wish to maintain "db1" format, @rpm5.org however.

Been there, done that.

But I can/will tell you what to do, up to and including
resurrecting "db1" format directly into @rpm5.org code if
necessary. Its not all that hard.

But I most definitely hope that you succeed using convertdb1
(or whatever else is needed) before I have to spend the time
generating a patch to rescuscitate "db1" format in @rpm5.org code.

Note also that there is a "freelist corrupt" _CATASTROPHIC_
failure mode for rpm-3.0.x, one *must* reinstall if encountered.

The "freelist corrupt" failure was the entire reason for switching to  
Berkeley DB way back when,
noone (including me and Erik Troan who did the rather clever "db1"
implementation originally), had any idea how to reproduce or solve
the "freelist corrupt" issue. Yes we tried.

Meanwhile, I've known what the problem was for years, fixed in  
rpm-4.0.4,
even "freelist corrupt" is handled there.

Hint: you don't want to remove the same package *twice* in the same  
transaction.

But these are hysterical factoids, Berkeley DB (and signature/digest  
checking)
have long since been implemented in RPM, known good, all that remains is
to assist helping laggards (like you ;-) in upgrading. I don't mean to  
offend
at all, its a duty and obligation for me.

Holler if you need help building rpm-4.0.4 in your environment. I know
all the issues if you tell me what problems you see.

73 de Jeff
Received on Mon Jun 8 21:00:56 2009
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.