diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-07-16 20:28:56 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-07-16 20:28:56 +0100 |
commit | 987b9af5156256fe9cdeebc0c97a5ea22f571927 (patch) | |
tree | dc433b25f1612e1e59245e17f2bda5c986f8d2f1 | |
parent | Add smbldap-config.pl.patch from Bug 505544 (diff) | |
download | patches-987b9af5156256fe9cdeebc0c97a5ea22f571927.tar.bz2 patches-987b9af5156256fe9cdeebc0c97a5ea22f571927.tar.xz patches-987b9af5156256fe9cdeebc0c97a5ea22f571927.zip |
Perl workaround
-rw-r--r-- | dev-lang/perl/revert-const-core-magic-vtables.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/dev-lang/perl/revert-const-core-magic-vtables.patch b/dev-lang/perl/revert-const-core-magic-vtables.patch new file mode 100644 index 0000000..7fbd9a2 --- /dev/null +++ b/dev-lang/perl/revert-const-core-magic-vtables.patch @@ -0,0 +1,19 @@ +reverted: +--- b/perl.h ++++ a/perl.h +@@ -5558,7 +5558,14 @@ + EXTCONST runops_proc_t PL_runops_dbg + INIT(Perl_runops_debug); + ++/* PERL_GLOBAL_STRUCT_PRIVATE wants to keep global data like the ++ * magic vtables const, but this is incompatible with SWIG which ++ * does want to modify the vtables. */ ++#ifdef PERL_GLOBAL_STRUCT_PRIVATE ++# define EXT_MGVTBL EXTCONST MGVTBL ++#else ++# define EXT_MGVTBL EXT MGVTBL ++#endif +-#define EXT_MGVTBL EXTCONST MGVTBL + + #define PERL_MAGIC_READONLY_ACCEPTABLE 0x40 + #define PERL_MAGIC_VALUE_MAGIC 0x80 |