lol

Merge pull request #187357 from mweinelt/nss-drop-patches

nss: drop multiple patches

authored by

ajs124 and committed by
GitHub
51422b18 c90a48c2

+9 -35
-11
pkgs/development/libraries/nss/ckpem.patch
··· 1 - --- nss/lib/ckfw/pem/ckpem.h 2018-01-03 13:36:12.000000000 -0800 2 - +++ nss/lib/ckfw/pem/ckpem.h 2018-01-03 13:36:20.000000000 -0800 3 - @@ -156,8 +156,6 @@ 4 - NSS_EXTERN_DATA pemInternalObject nss_pem_data[]; 5 - NSS_EXTERN_DATA const PRUint32 nss_pem_nObjects; 6 - 7 - - PRBool logged_in; 8 - - 9 - /* our raw object data array */ 10 - NSS_EXTERN_DATA pemInternalObject nss_pem_data[]; 11 - NSS_EXTERN_DATA const PRUint32 nss_pem_nObjects;
···
+9 -24
pkgs/development/libraries/nss/generic.nix
··· 19 }: 20 21 let 22 - nssPEM = fetchurl { 23 - url = "http://dev.gentoo.org/~polynomial-c/mozilla/nss-3.15.4-pem-support-20140109.patch.xz"; 24 - sha256 = "10ibz6y0hknac15zr6dw4gv9nb5r5z9ym6gq18j3xqx7v7n3vpdw"; 25 - }; 26 - 27 underscoreVersion = lib.replaceStrings [ "." ] [ "_" ] version; 28 in 29 stdenv.mkDerivation rec { ··· 44 45 propagatedBuildInputs = [ nspr ]; 46 47 - prePatch = '' 48 - # strip the trailing whitespace from the patch line and the renamed CKO_NETSCAPE_ enum to CKO_NSS_ 49 - xz -d < ${nssPEM} | sed \ 50 - -e 's/-DIRS = builtins $/-DIRS = . builtins/g' \ 51 - -e 's/CKO_NETSCAPE_/CKO_NSS_/g' \ 52 - -e 's/CKT_NETSCAPE_/CKT_NSS_/g' \ 53 - | patch -p1 54 - 55 - patchShebangs nss 56 - 57 - for f in nss/coreconf/config.gypi nss/build.sh nss/coreconf/config.gypi; do 58 - substituteInPlace "$f" --replace "/usr/bin/env" "${buildPackages.coreutils}/bin/env" 59 - done 60 - 61 - substituteInPlace nss/coreconf/config.gypi --replace "/usr/bin/grep" "${buildPackages.coreutils}/bin/env grep" 62 - ''; 63 - 64 patches = [ 65 # Based on http://patch-tracker.debian.org/patch/series/dl/nss/2:3.15.4-1/85_security_load.patch 66 (if (lib.versionOlder version "3.77") then ··· 68 else 69 ./85_security_load_3.77+.patch 70 ) 71 - ./ckpem.patch 72 ./fix-cross-compilation.patch 73 ]; 74 75 patchFlags = [ "-p0" ]; 76 77 - postPatch = lib.optionalString stdenv.hostPlatform.isDarwin '' 78 substituteInPlace nss/coreconf/Darwin.mk --replace '@executable_path/$(notdir $@)' "$out/lib/\$(notdir \$@)" 79 substituteInPlace nss/coreconf/config.gypi --replace "'DYLIB_INSTALL_NAME_BASE': '@executable_path'" "'DYLIB_INSTALL_NAME_BASE': '$out/lib'" 80 '';
··· 19 }: 20 21 let 22 underscoreVersion = lib.replaceStrings [ "." ] [ "_" ] version; 23 in 24 stdenv.mkDerivation rec { ··· 39 40 propagatedBuildInputs = [ nspr ]; 41 42 patches = [ 43 # Based on http://patch-tracker.debian.org/patch/series/dl/nss/2:3.15.4-1/85_security_load.patch 44 (if (lib.versionOlder version "3.77") then ··· 46 else 47 ./85_security_load_3.77+.patch 48 ) 49 ./fix-cross-compilation.patch 50 ]; 51 52 patchFlags = [ "-p0" ]; 53 54 + postPatch = '' 55 + patchShebangs nss 56 + 57 + for f in nss/coreconf/config.gypi nss/build.sh nss/coreconf/config.gypi; do 58 + substituteInPlace "$f" --replace "/usr/bin/env" "${buildPackages.coreutils}/bin/env" 59 + done 60 + 61 + substituteInPlace nss/coreconf/config.gypi --replace "/usr/bin/grep" "${buildPackages.coreutils}/bin/env grep" 62 + '' + lib.optionalString stdenv.hostPlatform.isDarwin '' 63 substituteInPlace nss/coreconf/Darwin.mk --replace '@executable_path/$(notdir $@)' "$out/lib/\$(notdir \$@)" 64 substituteInPlace nss/coreconf/config.gypi --replace "'DYLIB_INSTALL_NAME_BASE': '@executable_path'" "'DYLIB_INSTALL_NAME_BASE': '$out/lib'" 65 '';