[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: rpm/mock: can't upbuild FC10 targets on FC9 host



Philip Prindeville wrote:
> Panu Matilainen wrote:
>   
>> On Thu, 3 Sep 2009, Philip Prindeville wrote:
>>   
>>     
>>> No joy:
>>>
>>> [root builder SRPMS]# rm -rf /var/lib/mock/fedora-10-x86_64/root
>>> [root builder SRPMS]# mock -r fedora-10-x86_64 --init --rebuild perl-Net-Patricia-1.15_01-1.fc9.src.rpm
>>>     
>>>       
>> Don't run mock as root. That'll avoid the incompatible db environment 
>> from getting created. Also some older versions of mock left the db 
>> environment in the root-cache tarball which is sure to cause problems 
>> sooner or later (this has been fixed since then but don't remember which 
>> version)
>>
>>  	- Panu -
>>
>>   
>>     
>
> So... run it as whom?
>
> [philipp builder SRPMS]$ mock -r fedora-10-x86_64 --init --rebuild perl-Net-Patricia-1.15_01-1.fc9.src.rpm 
>
> ERROR: [Errno 1] Operation not permitted
>
> ERROR: The most common cause for this error is trying to run /usr/sbin/mock as an unprivileged user.
> ERROR: Check your path to make sure that /usr/bin/ is listed before /usr/sbin, or manually run /usr/bin/mock to see if that fixes this problem.
>
> [philipp builder SRPMS]$ 
>
>   

Ok, changing my path:

[philipp builder SRPMS]$ mock -r fedora-10-x86_64 --init --unpriv --rebuild perl-Net-Patricia-1.15_01-1.fc9.src.rpm
You are attempting to run "mock" which requires administrative
privileges, but more information is needed in order to do so.
Authenticating as "root"
Password: 
INFO: mock.py version 0.9.14 starting...
State Changed: init plugins
State Changed: start
INFO: Start(perl-Net-Patricia-1.15_01-1.fc9.src.rpm)  Config(fedora-10-x86_64)
State Changed: lock buildroot
State Changed: clean
State Changed: init
ERROR: Could not create dir /var/lib/mock/fedora-10-x86_64/result. Error: [Errno 13] Permission denied: '/var/lib/mock/fedora-10-x86_64/result'
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/mock/util.py", line 61, in mkdirIfAbsent
    os.makedirs(dirName)
  File "/usr/lib64/python2.5/os.py", line 172, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/var/lib/mock/fedora-10-x86_64/result'
ERROR: Exception(perl-Net-Patricia-1.15_01-1.fc9.src.rpm) Config(fedora-10-x86_64) 0 minutes 0 seconds
INFO: Results and/or logs in: /var/lib/mock/fedora-10-x86_64/result
ERROR: Could not create dir /var/lib/mock/fedora-10-x86_64/result. Error: [Errno 13] Permission denied: '/var/lib/mock/fedora-10-x86_64/result'
[philipp builder SRPMS]$ 


and without --unpriv is not much different.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]