Bug#759329: libnet-dns-perl: lintian fails with Too late to run INIT block

2014-08-26 Thread Jonas Smedegaard
Package: libnet-dns-perl
Version: 0.79-1
Severity: important

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

running lintian (against libfurl-perl, if that matters) fails:

jonas@bastian:~$ lintian *.changes
Too late to run INIT block at /usr/lib/x86_64-linux-gnu/perl5/5.20/Net/DNS.pm 
line 209.


 - Jonas

- -- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.14-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=da_DK.UTF-8, LC_CTYPE=da_DK.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libnet-dns-perl depends on:
ii  libc6   2.19-9
ii  libdigest-hmac-perl 1.03+dfsg-1
ii  libio-socket-inet6-perl 2.72-1
ii  libnet-ip-perl  1.26-1
ii  perl [libmime-base64-perl]  5.20.0-4
ii  perl-base [perlapi-5.20.0]  5.20.0-4

libnet-dns-perl recommends no packages.

libnet-dns-perl suggests no packages.

- -- no debconf information

-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQF8BAEBCgBmBQJT/GeTXxSAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ3NjQ4ODQwMTIyRTJDNTBFQzUxRDQwRTI0
RUMxQjcyMjM3NEY5QkQ2AAoJEE7BtyI3T5vWCE8IAMQkt/S7V/7T87n1MNnmcNJy
oMFP3mJtsw6Nim7bqwTu9wVoBhdLL/sWYb8bqArowyKRq430z2fWDVIF+DhqJpm6
khFZslsevx9TSFx6j4Tu4LiAjPpC44Xt/59dqeQPrpryHJG3Y628h7fdc8CF3hvg
Quy0CVP24a2c+NFfbHda2sWp8pmGJ02QM8VkAWh/S5lreWASpboc0fOCoFDKrwcj
2IFljROLSNAwFd4QAzlL0HvN1WXA62cKcxETC2RQxEz/W03zQa7XViijf1oKpv2X
dI9WVFJdMRv0kxTw4y3/qwzM+RbYiQffSaA2V0uy2VLt8gKjEv+cXzq+iBfyClA=
=yhq3
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#759329: libnet-dns-perl: lintian fails with Too late to run INIT block

2014-08-26 Thread Jonas Smedegaard
severity 759329 minor
thanks

Quoting Jonas Smedegaard (2014-08-26 12:55:15)
 running lintian (against libfurl-perl, if that matters) fails:
 
 jonas@bastian:~$ lintian *.changes
 Too late to run INIT block at /usr/lib/x86_64-linux-gnu/perl5/5.20/Net/DNS.pm 
 line 209.

Whoops, sorry - doesn't fail, that package simply had no lintian issues 
(I wrongly assumed it was a binary-arch package with hardening flaws).


 - Jonas

-- 
 * Jonas Smedegaard - idealist  Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private


signature.asc
Description: signature


Bug#759329: libnet-dns-perl: lintian fails with Too late to run INIT block

2014-08-26 Thread Axel Beckert
Hi,

Jonas Smedegaard wrote:
 Quoting Jonas Smedegaard (2014-08-26 12:55:15)
  running lintian (against libfurl-perl, if that matters) fails:
  
  jonas@bastian:~$ lintian *.changes
  Too late to run INIT block at 
  /usr/lib/x86_64-linux-gnu/perl5/5.20/Net/DNS.pm line 209.
 
 Whoops, sorry - doesn't fail, that package simply had no lintian issues 
 (I wrongly assumed it was a binary-arch package with hardening flaws).

I saw that with other (IIRC non-perl) packages, too. Looks like a
lintian issue with the new Net::DNS or the new Perl 5.20 or a
combination thereof.

Regards, Axel
-- 
 ,''`.  |  Axel Beckert a...@debian.org, http://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE
  `-|  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#759329: libnet-dns-perl: lintian fails with Too late to run INIT block

2014-08-26 Thread Axel Beckert
Control: reassign -1 lintian 2.5.25
Control: retitle -1 lintian: Too late to run INIT block at 
/usr/lib/x86_64-linux-gnu/perl5/5.20/Net/DNS.pm line 209.
Control: severity -1 normal

Dear Lintian Hackers,

the following is likely not an issue with the checked package but with
lintian itself:

Axel Beckert wrote:
 Jonas Smedegaard wrote:
  Quoting Jonas Smedegaard (2014-08-26 12:55:15)
   running lintian (against libfurl-perl, if that matters) fails:
   
   jonas@bastian:~$ lintian *.changes
   Too late to run INIT block at 
   /usr/lib/x86_64-linux-gnu/perl5/5.20/Net/DNS.pm line 209.
  
  Whoops, sorry - doesn't fail, that package simply had no lintian issues 
  (I wrongly assumed it was a binary-arch package with hardening flaws).
 
 I saw that with other (IIRC non-perl) packages, too. Looks like a
 lintian issue with the new Net::DNS or the new Perl 5.20 or a
 combination thereof.

I saw it with the zsh package just uploaded to experimental, too:

% lintian /var/cache/pbuilder/result/zsh_5.0.5-dev-3-1_allonly.changes
Too late to run INIT block at /usr/lib/x86_64-linux-gnu/perl5/5.20/Net/DNS.pm 
line 209.
[...]

I'm reassigning to lintian hence. Even if the message comes from
Net::DNS, Net::DNS's recent disruptive changes IIRC may require some
changes to code using it to work properly with current versions of
Net::DNS. (Feel free to correct me if I got that wrong.)

Regards, Axel
-- 
 ,''`.  |  Axel Beckert a...@debian.org, http://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE
  `-|  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#759329: libnet-dns-perl: lintian fails with Too late to run INIT block

2014-08-26 Thread Axel Beckert
Control: reassign -1 libnet-dns-perl 0.79-1
Control: retitle -1 libnet-dns-perl: Too late to run INIT block at 
/usr/lib/x86_64-linux-gnu/perl5/5.20/Net/DNS.pm line 209.

Hi again,

Axel Beckert wrote:
 the following is likely not an issue with the checked package but with
 lintian itself:

Sorry for the noise, I can reproduce it outside lintian with just

$ perl -w -e 'require Net::DNS'
Too late to run INIT block at /usr/lib/x86_64-linux-gnu/perl5/5.20/Net/DNS.pm 
line 209.

So it's not the disruptive changes in Net::DNS I suspected:

 I'm reassigning to lintian hence. Even if the message comes from
 Net::DNS, Net::DNS's recent disruptive changes IIRC may require some
 changes to code using it to work properly with current versions of
 Net::DNS. (Feel free to correct me if I got that wrong.)

Sorry for the noise.

Thanks to Damyan for looking into it, too.

Regards, Axel
-- 
 ,''`.  |  Axel Beckert a...@debian.org, http://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE
  `-|  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#759329: libnet-dns-perl: lintian fails with Too late to run INIT block

2014-08-26 Thread Axel Beckert
Control: forwarded -1 https://rt.cpan.org/Public/Bug/Display.html?id=96119

Axel Beckert wrote:
 I can reproduce it outside lintian with just
 
 $ perl -w -e 'require Net::DNS'
 Too late to run INIT block at /usr/lib/x86_64-linux-gnu/perl5/5.20/Net/DNS.pm 
 line 209.

https://rt.cpan.org/Public/Bug/Display.html?id=96119 has some
background as Damyan pointed out. Actually there is also comment from
today, that the issue is back with 0.79 and Perl 5.20.


The relevant code part is:


#   Net::DNS::SEC 0.17 compatibility


use constant OLDDNSSEC = Net::DNS::RR-COMPATIBLE;

if (OLDDNSSEC) {
require Net::DNS::RR::RRSIG;## pre-load RRs
foreach my $type (qw(SIG DS DLV DNSKEY KEY NXT NSEC)) {
new Net::DNS::RR( type = $type );
}

eval {
#no warnings 'void';## DIY patch to suppress Too late to 
run INIT block ...

sub INIT {  ## only needed to satisfy DNSSEC 
t/00-load.t
return unless OLDDNSSEC;

# attempt to pre-load RRs which have circular 
dependence problems
foreach my $type (qw(NSEC3 NSEC3PARAM)) {
new Net::DNS::RR( type = $type );
}
}
};
}


The Changes file says about this:

 0.77 Jun 13, 2014

[...]

Fix rt.cpan.org #96119

Too late to run INIT block warning for require Net::DNS
 
[...]

Fix inefficient Net::DNS::SEC compatibility code


(Not sure if the last line is related.)

Regards, Axel
-- 
 ,''`.  |  Axel Beckert a...@debian.org, http://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE
  `-|  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org