Merge pull request #295442 from OPNA2608/ppc64/pcre

pcre: Fetch patch for powerpc64-linux

authored by Rick van Schijndel and committed by GitHub 3db313a7 e41f310c

+12 -3
+12 -3
pkgs/development/libraries/pcre/default.nix
··· 1 - { lib, stdenv, fetchurl 1 + { lib, stdenv, fetchurl, fetchpatch 2 2 , pcre, windows ? null 3 3 , variant ? null 4 4 }: ··· 25 25 ] 26 26 ++ lib.optional (variant != null) "--enable-${variant}"; 27 27 28 - # https://bugs.exim.org/show_bug.cgi?id=2173 29 - patches = [ ./stacksize-detection.patch ]; 28 + patches = [ 29 + # https://bugs.exim.org/show_bug.cgi?id=2173 30 + ./stacksize-detection.patch 31 + 32 + # Fix segfaults & tests on powerpc64 33 + (fetchpatch { 34 + name = "sljit-ppc-icache-flush.patch"; 35 + url = "https://github.com/void-linux/void-packages/raw/d286e231ee680875ad8e80f90ea62e46f5edd812/srcpkgs/pcre/patches/ppc-icache-flush.patch"; 36 + hash = "sha256-pttmKwihLzKrAV6O4qVLp2pu4NwNJEFS/9Id8/b3nAU="; 37 + }) 38 + ]; 30 39 31 40 preCheck = '' 32 41 patchShebangs RunGrepTest