Bug 487430 - F-10 mock cannot build rawhide packages: 4.5 doesn't match environment version 4.7
Summary: F-10 mock cannot build rawhide packages: 4.5 doesn't match environment versio...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: 11
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Panu Matilainen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-02-25 22:45 UTC by Warren Togami
Modified: 2009-10-26 07:43 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-10-26 07:43:40 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.