Forwarded to list in case anyone else is interested
in fixing the underlying issue.

I can/will generate the same patch for C4 and C3 and C2
if asked.

73 de Jeff

Begin forwarded message:

From: Jeff Johnson <[EMAIL PROTECTED]>
Date: September 29, 2008 12:35:14 PM EDT
To: Karanbir Singh <[EMAIL PROTECTED]>
Subject: Re: [users] Mock errors [+PATCH]


On Sep 29, 2008, at 11:10 AM, Karanbir Singh wrote:

David Hrbáč wrote:
rpmdb: Program version 4.3 doesn't match environment version
error: db4 error(-30974) from dbenv->open: DB_VERSION_MISMATCH: Database
environment version mismatch
error: cannot open Packages index using db3 -  (-30974)
error: cannot open Packages database in
/var/lib/mock/centos-4-x86_64/root/var/lib/rpm
I can see it for C4 i386 and x86_64. Seems that C5 works fine.
Any hints?

do a rpm --rebuilddb; just after you chroot into the mock build setup. I am guessing this comes up when doing a C4 buildroot from a C5 or newer host ?


Here is the patch to automagically remove __db* files
if DB_VERSION__MISMATCH (newer bdb) or EINVAL
(older bdbd) is returned.

Patch is against C5.2 rpm-4.4.2-48.el5.src.rpm.

Compilation was checked, but not functionality untested. However,
the change is easy enough to verify by inspection.

I can/will send similar for C4/C3 if useful. I'm way tired of explaining ...

hth

73 de Jeff

Attachment: C5-rpm-mismatch.patch
Description: Binary data


_______________________________________________
users mailing list
[email protected]
http://lists.rpmforge.net/mailman/listinfo/users

Reply via email to