db and rpm db

Jeff Johnson n3npq at mac.com
Thu Aug 23 17:21:33 CEST 2007

On Aug 23, 2007, at 11:07 AM, Jakub Bogusz wrote:

> On Thu, Aug 23, 2007 at 08:42:04AM -0400, Jeff Johnson wrote:
> In my case database wasn't open - rpm finished its work after db4.6
> upgrade, and failed when I ran it again to upgrade some other package.
> I didn't use poldek during all those operations, just pure rpm
> invocations from bash.

Ah, that helps.

A trigger to fire
     rm -f /var/lib/rpm/__db
automagically when Berkeley DB is upgraded is then likely viable.

OTOH, insturmenting a trigger for a one tome 4.6.18 -> 4.6.19 problem
that is fixed by doing
     rm -f /var/lib/rpm/__db*
is perhaps overkill.

What is likely deficient is that the dbenv internals have changed  
between 4.6.18 -> 4.6.19. An incompatibility would normally be  
handled by rev'ing
the version stamp, but the incompatible change is not being tracked  
by the current
version stamp of "4.6".

In other words, changing Berkeley DB to version stamp a dbenv as
"4.6.18" and "4.6.19" rather than "4.6" might be the best fix of all.


73 de Jeff

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2205 bytes
Desc: not available
Url : /mailman/pipermail/pld-devel-en/attachments/20070823/9efbbe1a/attachment.bin 

More information about the pld-devel-en mailing list