diff options
author | Ludovic Courtès <ludo@gnu.org> | 2017-05-08 11:47:28 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2017-05-08 16:29:23 +0200 |
commit | 1d248adb32a0b97637083c83f3af70966050dd1e (patch) | |
tree | c9a57222e660d6fbf8d4bce7c443920834b6251d /gnu/packages/patches/perl-net-dns-resolver-programmable-fix.patch | |
parent | 087efec496b91e3763be2e11e208d4a8f4ef3d43 (diff) | |
download | guix-1d248adb32a0b97637083c83f3af70966050dd1e.tar.gz |
gnu: perl-net-dns-resolver-programmable: Shorten patch file name.
This avoids a warning from GNU tar upon "make dist" about file names that are too long for POSIX tar. * gnu/packages/patches/perl-net-dns-resolver-programmable-Fix-broken-interface.patch: Rename to... * gnu/packages/patches/perl-net-dns-resolver-programmable-fix.patch: ... this. * gnu/local.mk (dist_patch_DATA): Adjust accordingly. * gnu/packages/networking.scm (perl-net-dns-resolver-programmable)[source]: Likewise.
Diffstat (limited to 'gnu/packages/patches/perl-net-dns-resolver-programmable-fix.patch')
-rw-r--r-- | gnu/packages/patches/perl-net-dns-resolver-programmable-fix.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/gnu/packages/patches/perl-net-dns-resolver-programmable-fix.patch b/gnu/packages/patches/perl-net-dns-resolver-programmable-fix.patch new file mode 100644 index 0000000000..371693dca1 --- /dev/null +++ b/gnu/packages/patches/perl-net-dns-resolver-programmable-fix.patch @@ -0,0 +1,30 @@ +perl-net-dns-resolver-programmable used the undocumented and internal +method Net::DNS::rcodesbyname [0], and that interface is no longer +exposed. + +This patch, copied from [1], makes the program check for the existence +of the method before trying to use it. + +[0] +<https://rt.cpan.org/Public/Bug/Display.html?id=95901> + +[1] +<https://rt.cpan.org/Public/Bug/Display.html?id=95901#txn-1575108> + +diff --git a/lib/Net/DNS/Resolver/Programmable.pm b/lib/Net/DNS/Resolver/Programmable.pm +index 1af72ce..e09a2f0 100644 +--- a/lib/Net/DNS/Resolver/Programmable.pm ++++ b/lib/Net/DNS/Resolver/Programmable.pm +@@ -203,8 +203,10 @@ sub send { + if (defined(my $resolver_code = $self->{resolver_code})) { + ($result, $aa, @answer_rrs) = $resolver_code->($domain, $rr_type, $class); + } +- +- if (not defined($result) or defined($Net::DNS::rcodesbyname{$result})) { ++ ++ if (not defined($result) ++ or defined($Net::DNS::Parameters::rcodebyname{$result}) ++ or defined($Net::DNS::rcodesbyname{$result})) { + # Valid RCODE, return a packet: + + $aa = TRUE if not defined($aa); |