Bug#753944: pbuilder: USENETWORK=no breaks package builds

Niko Tyni ntyni at debian.org
Fri Jul 11 06:04:01 UTC 2014


On Wed, Jul 09, 2014 at 12:00:26PM +0000, Thorsten Glaser wrote:
> gregor herrmann dixit:
> 
> >That doesn't match my understanding and experience. AFAIK, there is
> >no internet access (available|allowed) but connections to localhost
> >are fine.

Yes. There are many packages in the archive relying on this.

> Hm, maybe something like, enabling lo0 in the chroot before
> running the build itself – could that work?
> 
> Not really…
> 
> /var/cache/pbuilder/base.cow-squeeze/{,usr/}*bin/{ifconfig,ip} do not
> exist. Are there any other tools that could be used for this? (squeeze
> being the first version with “unshare -n”, AFAICT.)

I don't see why you need to do it in the chroot? See the attached
patch.  It's only lightly tested but seems to work. It needs a
(linux-only?) dependency on iproute2, of course (unless you prefer
ifconfig instead).

> In case of doubt, just build those packages with USENETWORK=yes…
> at least for now.

I really think this needs to be fixed.
-- 
Niko Tyni   ntyni at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Enable-the-loopback-device-even-when-USE_NETWORK-no.patch
Type: text/x-diff
Size: 2155 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pbuilder-maint/attachments/20140711/0f0ffd96/attachment.patch>


More information about the Pbuilder-maint mailing list