HACK: patch out broken Perl version compatability check on macOS

Change-Id: I85cfc3863299d06f36138753e8f1f0206a6a6964
This commit is contained in:
Qyriad
2026-06-22 17:58:20 +02:00
parent 20453629ab
commit 3f7bc8ffb8
2 changed files with 14 additions and 0 deletions
+13
View File
@@ -9,6 +9,19 @@
#include "perl.h"
#include "XSUB.h"
// HACK, XXX(Qyriad): I do not know why the Perl version compatability check on macOS
// is raising, but as far as I can tell it is wrong.
// So instead we will replace the "check calling convention and get args" macro with
// the "unchecked get args" macro.
// If someone knows why when this file is compiled with Nixpkgs Perl 5.42.0,
// and then loaded with Nixpkgs Perl 5.42.0, it raises:
// lib/Nix/Store.cc: loadable library and perl binaries are mismatched (got first handshake key 0x10200080, needed 0xff80080
// please let me know.
#if defined(__APPLE__) && __APPLE__
#undef dXSBOOTARGSAPIVERCHK
#define dXSBOOTARGSAPIVERCHK dXSARGS
#endif
#undef NDEBUG
/* Prevent a clash between some Perl and libstdc++ macros. */
+1
View File
@@ -3,6 +3,7 @@ store_xs_cpp = custom_target(
output : 'Store.cc',
command : [
xsubpp,
'-noversioncheck',
'@INPUT@',
'-output',
'@OUTPUT@',