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

Philip Prindeville philipp_subx at redfish-solutions.com
Thu Sep 3 21:32:00 UTC 2009


Panu Matilainen wrote:
> On Thu, 3 Sep 2009, Philip Prindeville wrote:
>   
>> No joy:
>>
>> [root at builder SRPMS]# rm -rf /var/lib/mock/fedora-10-x86_64/root
>> [root at 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 at 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 at builder SRPMS]$ 





More information about the fedora-devel-list mailing list