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: | rpm | Assignee: | Panu Matilainen <pmatilai> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | 11 | CC: | 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
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. |