ldns: Compat with perl 5.22

Changed files
+18 -3
pkgs
development
+6 -3
pkgs/development/libraries/ldns/default.nix
···
sha256 = "1kf8pkwhcssvgzhh6ha1pjjiziwvwmfaali7kaafh6118mcy124b";
};
-
patchPhase = ''
-
sed -i 's,\$(srcdir)/doc/doxyparse.pl,perl $(srcdir)/doc/doxyparse.pl,' Makefile.in
'';
-
buildInputs = [ openssl perl ];
configureFlags = [ "--with-ssl=${openssl}" "--with-drill" ];
···
sha256 = "1kf8pkwhcssvgzhh6ha1pjjiziwvwmfaali7kaafh6118mcy124b";
};
+
patches = [ ./perl-5.22-compat.patch ];
+
+
postPatch = ''
+
patchShebangs doc/doxyparse.pl
'';
+
nativeBuildInputs = [ perl ];
+
buildInputs = [ openssl ];
configureFlags = [ "--with-ssl=${openssl}" "--with-drill" ];
+12
pkgs/development/libraries/ldns/perl-5.22-compat.patch
···
···
+
diff -Naur old/doc/doxyparse.pl new/doc/doxyparse.pl
+
--- old/doc/doxyparse.pl 2014-01-11 06:04:41.000000000 +0900
+
+++ new/doc/doxyparse.pl 2015-08-08 22:29:34.216889652 +0900
+
@@ -273,7 +273,7 @@
+
+
print MAN $MAN_MIDDLE;
+
+
- if (defined(@$also)) {
+
+ if (@$also) {
+
print MAN "\n.SH SEE ALSO\n\\fI";
+
print MAN join "\\fR, \\fI", @$also;
+
print MAN "\\fR.\nAnd ";