build control-center in MOCK

Ralf Corsepius rc040203 at freenet.de
Wed May 8 04:37:16 UTC 2013


On 05/08/2013 04:29 AM, Adam Williamson wrote:
> On Wed, 2013-05-08 at 06:25 +0400, Igor Gnatenko wrote:
>> Yes. I have internet. I think that mock hasn't /etc/resolv.conf..
>
> I don't think Fedora packages are supposed to require external network
> access to be built.
In general, you can't access a network in mock. A "localhost only" 
network sometimes works in some simple cases, but this can easily become 
unreliable and tedious.

That said, its common "best practice" not to use network-access in 
rpm.specs. IIRC (I haven't checked), we have a rule disallowing network 
access in rpm.specs inside the FPG.

Ralf




More information about the test mailing list