Bug#692311: FTBFS if non-local network communication is forbidden
Florian Schlichting
fsfs at debian.org
Sun May 3 22:02:30 UTC 2015
On Sun, Nov 04, 2012 at 11:40:40PM +0100, gregor herrmann wrote:
> On Sun, 04 Nov 2012 22:40:36 +0100, Ansgar Burchardt wrote:
>
> > libxml-stream-perl fails to build when I forbid non-local network
> > communication via iptables:
> >
> > iptables -A OUTPUT -m owner --uid-owner $username ! -o lo -j REJECT
>
> > t/load.t ......... ok
> > Cannot resolve deep-thought: Resource temporarily unavailable at /«PKGBUILDDIR»/blib/lib/XML/Stream.pm line 409.
>
> > ---
> >
> > deep-thought is the hostname of the system I tried to build the package on.
>
> ... and when the short hostname is not in /etc/hosts in the build
> chroot, as we discovered by various experiments while comparing
> results on IRC.
this is due to the following code in XML::Stream->new() lines 207ff:
my $hostname = hostname();
my $address = gethostbyname($hostname) ||
die("Cannot resolve $hostname: $!");
my $fullname = gethostbyaddr($address,AF_INET) || $hostname;
XML::Stream then uses this to identify in incoming and outgoing network
connections.
This looks reasonable to me, and should work on all buildd, no?
Florian
More information about the pkg-perl-maintainers
mailing list