David Hrbáč wrote:
Johnny Hughes napsal(a):
The fix is to define _rpmlock_path inside the chroot as the user who is installing the software (per the above link).
No, I guess, this is not the issue. Setting %_rpmlock_path didn't help. As I have written, upgrading to rpm-4.3.3-18 within CentOS 4.3 doesn't block 'mocking'.
What works for me (Karanbir Singh found this) is adding
os.path.join(self.rootdir, 'var/lock/rpm'),
around line 530 of /usr/bin/mock - works for me with 0.4.x, but supposedly also works with 0.6.x.
You find the lines by searching for "# make chroot dir".
Regards,
Ralph