summary refs log tree commit diff
path: root/pkgs/development/perl-modules/mod_perl2-PL_hash_seed.patch
diff options
context:
space:
mode:
authorStig Palmquist <stig@stig.io>2021-08-13 15:10:35 +0200
committerStig Palmquist <stig@stig.io>2021-08-13 15:16:35 +0200
commitc4095d0e4129dd7914a885a0f4088b2ff8f0b2c5 (patch)
tree803ea690f35a316812b21772591fb3da7200f516 /pkgs/development/perl-modules/mod_perl2-PL_hash_seed.patch
parent5e5e7444496a3cf47e8aa5844ef10bee9a0a627d (diff)
downloadnixpkgs-c4095d0e4129dd7914a885a0f4088b2ff8f0b2c5.tar
nixpkgs-c4095d0e4129dd7914a885a0f4088b2ff8f0b2c5.tar.gz
nixpkgs-c4095d0e4129dd7914a885a0f4088b2ff8f0b2c5.tar.bz2
nixpkgs-c4095d0e4129dd7914a885a0f4088b2ff8f0b2c5.tar.lz
nixpkgs-c4095d0e4129dd7914a885a0f4088b2ff8f0b2c5.tar.xz
nixpkgs-c4095d0e4129dd7914a885a0f4088b2ff8f0b2c5.tar.zst
nixpkgs-c4095d0e4129dd7914a885a0f4088b2ff8f0b2c5.zip
perlPackages.mod_perl2: fix build on perl-5.34.0
Diffstat (limited to 'pkgs/development/perl-modules/mod_perl2-PL_hash_seed.patch')
-rw-r--r--pkgs/development/perl-modules/mod_perl2-PL_hash_seed.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/pkgs/development/perl-modules/mod_perl2-PL_hash_seed.patch b/pkgs/development/perl-modules/mod_perl2-PL_hash_seed.patch
new file mode 100644
index 00000000000..a8aac88de31
--- /dev/null
+++ b/pkgs/development/perl-modules/mod_perl2-PL_hash_seed.patch
@@ -0,0 +1,13 @@
+From https://github.com/Perl/perl5/issues/18617#issuecomment-822056978 by Leont
+
+--- a/src/modules/perl/modperl_perl.c
++++ a/src/modules/perl/modperl_perl.c
+@@ -268,7 +268,7 @@
+ #ifdef MP_NEED_HASH_SEED_FIXUP
+     if (MP_init_hash_seed_set) {
+ #if MP_PERL_VERSION_AT_LEAST(5, 17, 6)
+-        memcpy(&PL_hash_seed, &MP_init_hash_seed,
++        memcpy(PL_hash_seed, &MP_init_hash_seed,
+                 sizeof(PL_hash_seed) > sizeof(MP_init_hash_seed) ?
+                     sizeof(MP_init_hash_seed) : sizeof(PL_hash_seed));
+         PL_hash_seed_set   = MP_init_hash_seed_set;