Bug 487430

Summary: F-10 mock cannot build rawhide packages: 4.5 doesn't match environment version 4.7
Product: [Fedora] Fedora Reporter: Warren Togami <wtogami>
Component: rpmAssignee: Panu Matilainen <pmatilai>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 11CC: ffesti, herrold, jnovy, ossman, overholt, pmatilai
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-10-26 07:43:40 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Warren Togami 2009-02-25 22:45:37 UTC
[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

Comment 1 Andrew Overholt 2009-03-03 19:55:22 UTC
I'm seeing this as well.  Is there a workaround?

Comment 2 Andrew Overholt 2009-03-05 15:52:52 UTC
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.

Comment 3 Panu Matilainen 2009-03-18 13:29:25 UTC
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...

Comment 4 Bug Zapper 2009-06-09 11:39:18 UTC
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

Comment 5 Panu Matilainen 2009-07-14 09:01:17 UTC
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.

Comment 6 Pierre Ossman 2009-08-12 08:50:36 UTC
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?

Comment 7 Pierre Ossman 2009-09-10 08:50:40 UTC
Ping!

It seems I cannot reopen the bug to make sure it doesn't get overlooked. :/

Comment 8 Panu Matilainen 2009-10-26 07:43:40 UTC
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.