Description of problem:
When using mock's cache, buildroot setup fails if the cache was created by a
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. As a user, 'usera', Build a package in mock with 'use_cache' enabled.
2. Let build complete and mock exit.
3. As a user, 'userb', attempt to build a package in the same chroot. mock
tries to use the cache created by 'usera', but there are permission problems.
This may take a while
Traceback (most recent call last):
File "/usr/bin/mock", line 1140, in ?
File "/usr/bin/mock", line 1137, in main
File "/usr/bin/mock", line 997, in do_rebuild
File "/usr/bin/mock", line 261, in prep
File "/usr/bin/mock", line 707, in _prep_install
yumconf_fo = open(yumconf, 'w+')
IOError: [Errno 13] Permission denied:
Permissions should be corrected to allow multiple users to use the same mock
root cache, or if that is not possible, mock should ignore the unusable cache
file and re-create the build root from scratch.
This happens, for example, because I have a machine setup as a plague builder
which calls mock as the plague-builder user. If I try to call mock from my
account for a build root which plague has created the cache for, I will see the
Jeff, we've been through a fairly massive rework of mock and part of what we did
was to try and make it handle multiple users and caching sanely. Would you try
the 0.9.7+ version of mock and see if has fixed this problem?
Working great now with mock-0.9.9-1.fc9.noarch