Skip Menu |

This queue is for tickets about the Net-DNS CPAN distribution.

Report information
The Basics
Id: 100385
Status: resolved
Priority: 0/
Queue: Net-DNS

People
Owner: Nobody in particular
Requestors: gregoa [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



From: gregoa [...] cpan.org
Subject: lintian fails if the machine has a link-local IPv6 nameserver configured
We have the following bug reported to the Debian package of Net-DNS (https://bugs.debian.org/765327): It doesn't seem to be a bug in the packaging, so you may want to take a look. Thanks! Please note that the Debian bug report contains a proposed patch. ------8<-----------8<-----------8<-----------8<-----------8<----- Package: libnet-dns-perl,lintian Severity: normal This is likely a bug in libnet-dns-perl but I wonder if there are network accesses from lintian. % lintian ./openclonk_5.5.1-1_amd64.changes warning: Cannot load check "binaries" unresolvable name: fe80::4ee6:76ff:fe51:ae30%eth0 at /usr/share/perl5/Email/Valid.pm line 41. Compilation failed in require at /usr/share/perl5/Lintian/Check.pm line 27. BEGIN failed--compilation aborted at /usr/share/perl5/Lintian/Check.pm line 27. Compilation failed in require at /usr/share/lintian/checks/binaries.pm line 30. BEGIN failed--compilation aborted at /usr/share/lintian/checks/binaries.pm line 30. Compilation failed in require at /usr/share/perl5/Lintian/CheckScript.pm line 253. This is due to: % cat /etc/resolv.conf [...] nameserver 10.0.3.1 nameserver fe80::4ee6:76ff:fe51:ae30%eth0 [...] The syntax is perfectly valid and understood by glibc, but apparently libemail-valid-perl tries to resolve(!?) it and fails. No, it just loads Net::DNS::Resolver: $Resolver = Net::DNS::Resolver->new; So it seems what explodes is Resolver/Base.pm's nameservers sub. The message lintian displays is rather awkward: for a runtime error (runtime configuration not parsable) one gets compilation failed. But I guess the load is already guarded, hence the warning? -- System Information: Debian Release: jessie/sid APT prefers testing APT policy: (500, 'testing'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.16-2-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages lintian depends on: ii binutils 2.24.51.20140918-1 ii bzip2 1.0.6-7 ii diffstat 1.58-1 ii file 1:5.19-2 ii gettext 0.19.2-2 ii hardening-includes 2.5+nmu1 ii intltool-debian 0.35.0+20060710.1 ii libapt-pkg-perl 0.1.29+b2 ii libarchive-zip-perl 1.38-1 ii libclass-accessor-perl 0.34-1 ii libclone-perl 0.37-1+b1 ii libdpkg-perl 1.17.13 ii libemail-valid-perl 1.195-1 ii libfile-basedir-perl 0.03-1 ii libipc-run-perl 0.92-1 ii liblist-moreutils-perl 0.33-2+b1 ii libparse-debianchangelog-perl 1.2.0-1.1 ii libtext-levenshtein-perl 0.09-1 ii libtimedate-perl 2.3000-2 ii liburi-perl 1.64-1 ii man-db 2.6.7.1-1 ii patchutils 0.3.3-1 ii perl [libdigest-sha-perl] 5.20.1-1 ii t1utils 1.37-2.1 Versions of packages lintian recommends: ii libperlio-gzip-perl 0.18-3+b1 ii perl 5.20.1-1 ii perl-modules [libautodie-perl] 5.20.1-1 Versions of packages lintian suggests: pn binutils-multiarch <none> ii dpkg-dev 1.17.13 ii libhtml-parser-perl 3.71-1+b2 ii libtext-template-perl 1.46-1 ii libyaml-perl 1.12-1 ii xz-utils 5.1.1alpha+20120614-2 -- no debconf information ------8<-----------8<-----------8<-----------8<-----------8<----- Thanks for considering, gregor herrmann, Debian Perl Group
On Sun 16 Nov 2014 10:40:36, GREGOA wrote: Show quoted text
> We have the following bug reported to the Debian package of Net-DNS > (https://bugs.debian.org/765327): > > It doesn't seem to be a bug in the packaging, so you may want to > take a look. Thanks!
Thanks. Yes link-local addresses with scope_id are not yet supported, but it shouldn't be too hard to make them work. Show quoted text
> Please note that the Debian bug report contains a proposed patch.
Your patch simply filters out the addresses with scope_id. I think we could do better than that and actually start stupporting scoped link-local addresses. The patch is good enough to keep things running for the time being though... Thanks again
Subject: Re: [rt.cpan.org #100385] Support for IPv6 link-local addresses with scope_id
Date: Sun, 16 Nov 2014 19:19:30 +0100
To: NLnet Labs via RT <bug-Net-DNS [...] rt.cpan.org>
From: gregor herrmann <gregoa [...] debian.org>
On Sun, 16 Nov 2014 10:53:50 -0500, NLnet Labs via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=100385 > > > On Sun 16 Nov 2014 10:40:36, GREGOA wrote:
> > We have the following bug reported to the Debian package of Net-DNS > > (https://bugs.debian.org/765327):
> Thanks. Yes link-local addresses with scope_id are not yet > supported, but it shouldn't be too hard to make them work.
Great. Show quoted text
> > Please note that the Debian bug report contains a proposed patch.
> Your patch simply filters out the addresses with scope_id. I think > we could do better than that and actually start stupporting scoped > link-local addresses.
Right, that's why I wanted to check back with you before working on a package with this patch :) Show quoted text
> The patch is good enough to keep things > running for the time being though...
Ok, then I guess we should upload it now with this patch. Thanks for the quick and (as always!) helpful reply. Cheers, gregor -- .''`. Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06 : :' : Debian GNU/Linux user, admin, and developer - http://www.debian.org/ `. `' Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe `- NP: Sophie Hunger: Walzer für Niemand
Download signature.asc
application/pgp-signature 949b

Message body not shown because it is not plain text.

From: rwfranks [...] acm.org
On Sun Nov 16 13:19:52 2014, gregoa@debian.org wrote: Show quoted text
> On Sun, 16 Nov 2014 10:53:50 -0500, NLnet Labs via RT wrote: >
> > <URL: https://rt.cpan.org/Ticket/Display.html?id=100385 > > > > > On Sun 16 Nov 2014 10:40:36, GREGOA wrote:
> > > We have the following bug reported to the Debian package of Net-DNS > > > (https://bugs.debian.org/765327):
> > Thanks. Yes link-local addresses with scope_id are not yet > > supported, but it shouldn't be too hard to make them work.
> > Great. >
> > > Please note that the Debian bug report contains a proposed patch.
> > Your patch simply filters out the addresses with scope_id. I think > > we could do better than that and actually start supporting scoped > > link-local addresses.
Agree, here is the patch to do that. *** /home/rwf/svn/net-dns/lib/Net/DNS/Resolver/Base.pm 2014-10-20 08:46:37.360403000 +0100 --- Base.pm 2014-11-17 08:07:19.650295389 +0000 *************** *** 1489,1494 **** --- 1489,1495 ---- for (shift) { return 1 if /^[:0-9a-f]+:[0-9a-f]*$/i; # mixed : and hexdigits + return 1 if /^[:0-9a-f]+:[0-9a-f]*[%].+$/i; # RFC4007 scoped address return 1 if /^[:0-9a-f]+:[0-9.]+$/i; # prefix + dotted digits }
Patch in trunk and will be in release 0.82.