git.iko.soy/typeable/nixpkgs
on master help sign in
nss: 3.26 -> 3.27.1
commit1624f7f17474bbcfe68ac6d78bbe62ae6bd57462 authorEelco Dolstra <edolstra@gmail.com> dateTue 15 Nov 2016, 16:33 (10 years ago) parent76b1413
2 files changed+27−31
pkgs/development/libraries/nss/85_security_load.patch+24−28 pkgs/development/libraries/nss/default.nix+3−3
pkgs/development/libraries/nss/85_security_load.patch+24−28
@@ -1,8 +1,7 @@
1−diff --git a/nss/cmd/shlibsign/shlibsign.c b/nss/cmd/shlibsign/shlibsign.c
2−index 63a4836..a128c1d 100644
3−--- a/nss/cmd/shlibsign/shlibsign.c
4−+++ b/nss/cmd/shlibsign/shlibsign.c
5−@@ -862,6 +862,8 @@ int main(int argc, char **argv)
1+diff -ru -x '*~' nss-3.27.1-orig/nss/cmd/shlibsign/shlibsign.c nss-3.27.1/nss/cmd/shlibsign/shlibsign.c
2+--- nss-3.27.1-orig/nss/cmd/shlibsign/shlibsign.c 2016-10-03 16:55:58.000000000 +0200
3++++ nss-3.27.1/nss/cmd/shlibsign/shlibsign.c 2016-11-15 16:28:07.308117900 +0100
4+@@ -871,6 +871,8 @@
65 libname = PR_GetLibraryName(NULL, "softokn3");
76 assert(libname != NULL);
87 lib = PR_LoadLibrary(libname);
@@ -11,22 +10,20 @@ index 63a4836..a128c1d 100644
1110 assert(lib != NULL);
1211 PR_FreeLibraryName(libname);
1312
14−diff --git a/nss/coreconf/config.mk b/nss/coreconf/config.mk
15−index 61d757b..b58a98b 100644
16−--- a/nss/coreconf/config.mk
17−+++ b/nss/coreconf/config.mk
18−@@ -205,3 +205,6 @@ $(error Setting NSS_ENABLE_TLS_1_3 and NSS_DISABLE_ECC isn't a good idea.)
19− endif
20− DEFINES += -DNSS_ENABLE_TLS_1_3
13+diff -ru -x '*~' nss-3.27.1-orig/nss/coreconf/config.mk nss-3.27.1/nss/coreconf/config.mk
14+--- nss-3.27.1-orig/nss/coreconf/config.mk 2016-10-03 16:55:58.000000000 +0200
15++++ nss-3.27.1/nss/coreconf/config.mk 2016-11-15 16:28:07.308117900 +0100
16+@@ -217,3 +217,6 @@
17+ ifdef NSS_NO_PKCS11_BYPASS
18+ DEFINES += -DNO_PKCS11_BYPASS
2119 endif
2220+
2321+# Nix specific stuff.
2422+DEFINES += -DNIX_NSS_LIBDIR=\"$(out)/lib/\"
25−diff --git a/nss/lib/pk11wrap/pk11load.c b/nss/lib/pk11wrap/pk11load.c
26−index 5c5d2ca..026e528 100644
27−--- a/nss/lib/pk11wrap/pk11load.c
28−+++ b/nss/lib/pk11wrap/pk11load.c
29−@@ -429,6 +429,13 @@ secmod_LoadPKCS11Module(SECMODModule *mod, SECMODModule **oldModule) {
23+diff -ru -x '*~' nss-3.27.1-orig/nss/lib/pk11wrap/pk11load.c nss-3.27.1/nss/lib/pk11wrap/pk11load.c
24+--- nss-3.27.1-orig/nss/lib/pk11wrap/pk11load.c 2016-10-03 16:55:58.000000000 +0200
25++++ nss-3.27.1/nss/lib/pk11wrap/pk11load.c 2016-11-15 16:28:07.308117900 +0100
26+@@ -429,6 +429,13 @@
3027 * unload the library if anything goes wrong from here on out...
3128 */
3229 library = PR_LoadLibrary(mod->dllName);
@@ -40,11 +37,10 @@ index 5c5d2ca..026e528 100644
4037 mod->library = (void *)library;
4138
4239 if (library == NULL) {
43−diff --git a/nss/lib/util/secload.c b/nss/lib/util/secload.c
44−index eb8a9ec..f94f67d 100644
45−--- a/nss/lib/util/secload.c
46−+++ b/nss/lib/util/secload.c
47−@@ -69,9 +69,14 @@ loader_LoadLibInReferenceDir(const char *referencePath, const char *name)
40+diff -ru -x '*~' nss-3.27.1-orig/nss/lib/util/secload.c nss-3.27.1/nss/lib/util/secload.c
41+--- nss-3.27.1-orig/nss/lib/util/secload.c 2016-10-03 16:55:58.000000000 +0200
42++++ nss-3.27.1/nss/lib/util/secload.c 2016-11-15 16:29:50.482259746 +0100
43+@@ -70,9 +70,14 @@
4844
4945 /* Remove the trailing filename from referencePath and add the new one */
5046 c = strrchr(referencePath, PR_GetDirectorySeparator());
@@ -55,12 +51,12 @@ index eb8a9ec..f94f67d 100644
5551+ }
5652 if (c) {
5753 size_t referencePathSize = 1 + c - referencePath;
58−- fullName = (char*) PORT_Alloc(strlen(name) + referencePathSize + 1);
54+- fullName = (char*)PORT_Alloc(strlen(name) + referencePathSize + 1);
5955+ fullName = (char*) PORT_Alloc(strlen(name) + referencePathSize + 5);
6056 if (fullName) {
6157 memcpy(fullName, referencePath, referencePathSize);
62− strcpy(fullName + referencePathSize, name);
63−@@ -81,6 +86,11 @@ loader_LoadLibInReferenceDir(const char *referencePath, const char *name)
58+ strcpy(fullName + referencePathSize, name);
59+@@ -82,6 +87,11 @@
6460 #endif
6561 libSpec.type = PR_LibSpec_Pathname;
6662 libSpec.value.pathname = fullName;
@@ -71,9 +67,9 @@ index eb8a9ec..f94f67d 100644
7167+ strcpy(fullName + referencePathSize, name);
7268 dlh = PR_LoadLibraryWithFlags(libSpec, PR_LD_NOW | PR_LD_LOCAL
7369 #ifdef PR_LD_ALT_SEARCH_PATH
74− /* allow library's dependencies to be found in the same directory
75−@@ -88,6 +98,10 @@ loader_LoadLibInReferenceDir(const char *referencePath, const char *name)
76− | PR_LD_ALT_SEARCH_PATH
70+ /* allow library's dependencies to be found in the same directory
71+@@ -89,6 +99,10 @@
72+ | PR_LD_ALT_SEARCH_PATH
7773 #endif
7874 );
7975+ if (! dlh) {
pkgs/development/libraries/nss/default.nix+3−3
@@ -9,11 +9,11 @@ let
99
1010in stdenv.mkDerivation rec {
1111 name = "nss-${version}";
12− version = "3.26";
12+ version = "3.27.1";
1313
1414 src = fetchurl {
15− url = "mirror://mozilla/security/nss/releases/NSS_3_26_RTM/src/${name}.tar.gz";
16− sha256 = "0r65s5q8kk0vr48s0zr8xi610k7h072lgkkpp4z6jlxr19bkly4i";
15+ url = "mirror://mozilla/security/nss/releases/NSS_3_27_1_RTM/src/${name}.tar.gz";
16+ sha256 = "fd3637a1930cd838239a89633a7ed9a18859ae9b599043f3a18f726dc4ec2a6b";
1717 };
1818
1919 buildInputs = [ nspr perl zlib sqlite ];