summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorMarius Bergmann <marius@yeai.de>2018-04-01 10:47:35 +0200
committerBjørn Forsman <bjorn.forsman@gmail.com>2018-04-14 18:00:35 +0200
commit4d7da18f5c09f04249a125143d49c3da5117b951 (patch)
treea5d578aa4a729f61aee6ca636a744ae3113ba6e4 /pkgs
parent5a3495f5fbfe522fedcc3365172b7dddb627aa82 (diff)
downloadnixlib-4d7da18f5c09f04249a125143d49c3da5117b951.tar
nixlib-4d7da18f5c09f04249a125143d49c3da5117b951.tar.gz
nixlib-4d7da18f5c09f04249a125143d49c3da5117b951.tar.bz2
nixlib-4d7da18f5c09f04249a125143d49c3da5117b951.tar.lz
nixlib-4d7da18f5c09f04249a125143d49c3da5117b951.tar.xz
nixlib-4d7da18f5c09f04249a125143d49c3da5117b951.tar.zst
nixlib-4d7da18f5c09f04249a125143d49c3da5117b951.zip
perlPackages.Socket6: fix sv_undef compilation error
Socket6.xs redefines `PV_sv_undef`, which breaks compilation from
306d5cdf03ad ("perlPackages: Add cross-compilation support."). I added a patch
to remove this redefinition. Compilation is now working again.
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/perl-modules/Socket6-sv_undef.patch18
-rw-r--r--pkgs/top-level/perl-packages.nix1
2 files changed, 19 insertions, 0 deletions
diff --git a/pkgs/development/perl-modules/Socket6-sv_undef.patch b/pkgs/development/perl-modules/Socket6-sv_undef.patch
new file mode 100644
index 000000000000..3ed4b61b6d3e
--- /dev/null
+++ b/pkgs/development/perl-modules/Socket6-sv_undef.patch
@@ -0,0 +1,18 @@
+diff --git a/Socket6.xs b/Socket6.xs
+index 05c791c..058e9d9 100644
+--- a/Socket6.xs
++++ b/Socket6.xs
+@@ -105,10 +105,6 @@ const struct in6_addr in6addr_loopback = IN6ADDR_LOOPBACK_INIT;
+ #define	HAVE_INET_PTON		1
+ #endif
+ 
+-#ifndef HAVE_PL_SV_UNDEF
+-#define	PL_sv_undef		sv_undef
+-#endif
+-
+ static int
+ not_here(char *s)
+ {
+-- 
+2.16.3
+
diff --git a/pkgs/top-level/perl-packages.nix b/pkgs/top-level/perl-packages.nix
index 8ab8def15c61..2034fd81c87b 100644
--- a/pkgs/top-level/perl-packages.nix
+++ b/pkgs/top-level/perl-packages.nix
@@ -13549,6 +13549,7 @@ let self = _self // overrides; _self = with self; {
     };
     setOutputFlags = false;
     buildInputs = [ pkgs.which ];
+    patches = [ ../development/perl-modules/Socket6-sv_undef.patch ];
     meta = {
       description = "IPv6 related part of the C socket.h defines and structure manipulators";
       license = stdenv.lib.licenses.bsd3;