[root@delphi ~]# cat /etc/fedora-release; rpm -q rpm Fedora release 10 (Cambridge) rpm-4.6.0-1.fc10.x86_64 mock-0.9.14-1.fc10.noarch # /usr/bin/yum --installroot /var/lib/mock/fedora-rawhide-x86_64/root/ resolvedep ccache 'xulrunner-devel-unstable' rpmdb: Program version 4.5 doesn't match environment version 4.7
I'm seeing this as well. Is there a workaround?
I was having the issue due to the fact that I was stupidly running mock as root. Running as a regular user (in the mock group, of course) works fine. I also rm -rf'd the __db* files in my chroot just to be safe.
Warren, are you running mock as root (see comment #2)? Mock should probably be hacked to use private locking to avoid these but that's another story...
This bug appears to have been reported against 'rawhide' during the Fedora 11 development cycle. Changing version to '11'. More information and reason for this action is here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping
Running mock as a regular user works for me... Related to bugs 455836, 507309 and a pile of others through various interactions with Berkeley DB.
In the interest of getting this working, can't you add this to Root::build(): # nuke any rpmdb tmp files for tmp in glob.glob(self.makeChrootPath('var/lib/rpm/__db*')): os.unlink(tmp) or something similar?
Ping! It seems I cannot reopen the bug to make sure it doesn't get overlooked. :/
This shouldn't be an issue starting with rpm >= 4.7.1-3 (available to F11 and newer) as rpm removes the environment on chrooted operations. If you want something fixed in mock, open a bug against mock, not rpm.