perlPackages.Socket6: fix sv_undef compilation error
Socket6.xs redefines `PV_sv_undef`, which breaks compilation from
306d5cdf03
("perlPackages: Add cross-compilation support."). I added a patch
to remove this redefinition. Compilation is now working again.
This commit is contained in:
parent
5a3495f5fb
commit
4d7da18f5c
18
pkgs/development/perl-modules/Socket6-sv_undef.patch
Normal file
18
pkgs/development/perl-modules/Socket6-sv_undef.patch
Normal file
@ -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
|
||||||
|
|
@ -13549,6 +13549,7 @@ let self = _self // overrides; _self = with self; {
|
|||||||
};
|
};
|
||||||
setOutputFlags = false;
|
setOutputFlags = false;
|
||||||
buildInputs = [ pkgs.which ];
|
buildInputs = [ pkgs.which ];
|
||||||
|
patches = [ ../development/perl-modules/Socket6-sv_undef.patch ];
|
||||||
meta = {
|
meta = {
|
||||||
description = "IPv6 related part of the C socket.h defines and structure manipulators";
|
description = "IPv6 related part of the C socket.h defines and structure manipulators";
|
||||||
license = stdenv.lib.licenses.bsd3;
|
license = stdenv.lib.licenses.bsd3;
|
||||||
|
Loading…
Reference in New Issue
Block a user