summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/nss.scm24
-rw-r--r--gnu/packages/patches/nss-disable-broken-tests.patch33
2 files changed, 49 insertions, 8 deletions
diff --git a/gnu/packages/nss.scm b/gnu/packages/nss.scm
index 519b8926865..fb056248559 100644
--- a/gnu/packages/nss.scm
+++ b/gnu/packages/nss.scm
@@ -42,7 +42,9 @@
42 #:use-module (gnu packages compression) 42 #:use-module (gnu packages compression)
43 #:use-module (gnu packages perl) 43 #:use-module (gnu packages perl)
44 #:use-module (gnu packages sqlite) 44 #:use-module (gnu packages sqlite)
45 #:use-module (gnu packages time)) 45 #:use-module (gnu packages time)
46 #:use-module (srfi srfi-1)
47 #:use-module (srfi srfi-26))
46 48
47(define-public nspr 49(define-public nspr
48 (package 50 (package
@@ -103,7 +105,7 @@ in the Mozilla clients.")
103 ;; IMPORTANT: Also update and test the nss-certs package, which duplicates 105 ;; IMPORTANT: Also update and test the nss-certs package, which duplicates
104 ;; version and source to avoid a top-level variable reference & module 106 ;; version and source to avoid a top-level variable reference & module
105 ;; cycle. 107 ;; cycle.
106 (version "3.99") 108 (version "3.101.4")
107 (source (origin 109 (source (origin
108 (method url-fetch) 110 (method url-fetch)
109 (uri (let ((version-with-underscores 111 (uri (let ((version-with-underscores
@@ -114,11 +116,12 @@ in the Mozilla clients.")
114 "nss-" version ".tar.gz"))) 116 "nss-" version ".tar.gz")))
115 (sha256 117 (sha256
116 (base32 118 (base32
117 "1g89ig40gfi1sp02gybvl2z818lawcnrqjzsws36cdva834c5maw")) 119 "1sqvh49qi9vq55sbg42c5n0kz6w6ni383hgiyhaym6drsmbzb86a"))
118 ;; Create nss.pc and nss-config. 120 ;; Create nss.pc and nss-config.
119 (patches (search-patches "nss-3.56-pkgconfig.patch" 121 (patches (search-patches "nss-3.56-pkgconfig.patch"
120 "nss-getcwd-nonnull.patch" 122 "nss-getcwd-nonnull.patch"
121 "nss-increase-test-timeout.patch")) 123 "nss-increase-test-timeout.patch"
124 "nss-disable-broken-tests.patch"))
122 (modules '((guix build utils))) 125 (modules '((guix build utils)))
123 (snippet 126 (snippet
124 '(begin 127 '(begin
@@ -177,7 +180,7 @@ in the Mozilla clients.")
177 ;; around that, set the time to roughly the release date. 180 ;; around that, set the time to roughly the release date.
178 (add-after 'unpack 'set-release-date 181 (add-after 'unpack 'set-release-date
179 (lambda _ 182 (lambda _
180 (setenv "GUIX_NSS_RELEASE_DATE" "2024-01-23"))) 183 (setenv "GUIX_NSS_RELEASE_DATE" "2025-02-05")))
181 (replace 'configure 184 (replace 'configure
182 (lambda _ 185 (lambda _
183 (setenv "CC" #$(cc-for-target)) 186 (setenv "CC" #$(cc-for-target))
@@ -257,13 +260,15 @@ in the Mozilla clients.")
257 (properties '((timeout . 216000))) ;60 hours 260 (properties '((timeout . 216000))) ;60 hours
258 261
259 (home-page "https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS") 262 (home-page "https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS")
260 (synopsis "Network Security Services") 263 (synopsis "Network Security Services (ESR)")
261 (description 264 (description
262 "Network Security Services (@dfn{NSS}) is a set of libraries designed to 265 "Network Security Services (@dfn{NSS}) is a set of libraries designed to
263support cross-platform development of security-enabled client and server 266support cross-platform development of security-enabled client and server
264applications. Applications built with NSS can support SSL v2 and v3, TLS, 267applications. Applications built with NSS can support SSL v2 and v3, TLS,
265PKCS #5, PKCS #7, PKCS #11, PKCS #12, S/MIME, X.509 v3 certificates, and other 268PKCS #5, PKCS #7, PKCS #11, PKCS #12, S/MIME, X.509 v3 certificates, and other
266security standards.") 269security standards.
270
271This package tracks the Extended Support Release (ESR) channel.")
267 (license license:mpl2.0))) 272 (license license:mpl2.0)))
268 273
269;; nss-rapid tracks the rapid release channel. Unless your package requires a 274;; nss-rapid tracks the rapid release channel. Unless your package requires a
@@ -288,7 +293,10 @@ security standards.")
288 "nss-" version ".tar.gz"))) 293 "nss-" version ".tar.gz")))
289 (sha256 294 (sha256
290 (base32 295 (base32
291 "03qwl3ps3xgc9pkc07qrsa4vd2r57mjwicv3gb483gfk2ashdvxc")))) 296 "03qwl3ps3xgc9pkc07qrsa4vd2r57mjwicv3gb483gfk2ashdvxc"))
297 (patches
298 (remove (cut string-suffix? <> "nss-disable-broken-tests.patch")
299 (origin-patches (package-source nss))))))
292 (arguments 300 (arguments
293 (substitute-keyword-arguments (package-arguments nss) 301 (substitute-keyword-arguments (package-arguments nss)
294 ((#:phases phases) 302 ((#:phases phases)
diff --git a/gnu/packages/patches/nss-disable-broken-tests.patch b/gnu/packages/patches/nss-disable-broken-tests.patch
new file mode 100644
index 00000000000..8d6e1014713
--- /dev/null
+++ b/gnu/packages/patches/nss-disable-broken-tests.patch
@@ -0,0 +1,33 @@
1These tests are broken in 3.101.3.
2
3See https://bugzilla.mozilla.org/show_bug.cgi?id=1964304
4
5--- nss-3.101.3/nss/tests/tools/tools.sh 1969-12-31 16:00:01.000000000 -0800
6+++ nss-3.101.3/nss/tests/tools/tools.sh 2025-05-05 16:36:47.835447542 -0700
7@@ -540,26 +540,6 @@
8 ret=$?
9 html_msg $ret 0 "Importing private key pbmac1 hmac-sha-512 from PKCS#12 file"
10 check_tmpfile
11-
12- echo "${BINDIR}/pk12util -l ${TOOLSDIR}/data/pbmac1-invalid-bad-iter.p12 -d ${P_R_COPYDIR} -k ${R_PWFILE} -W '1234'"
13- ${BINDIR}/pk12util -l ${TOOLSDIR}/data/pbmac1-invalid-bad-iter.p12 -d ${P_R_COPYDIR} -k ${R_PWFILE} -W '1234' 2>&1
14- ret=$?
15- html_msg $ret 19 "Fail to list private key with bad iterator"
16- check_tmpfile
17-
18- echo "${BINDIR}/pk12util -l ${TOOLSDIR}/data/pbmac1-invalid-bad-salt.p12 -d ${P_R_COPYDIR} -k ${R_PWFILE} -W '1234'"
19- ${BINDIR}/pk12util -l ${TOOLSDIR}/data/pbmac1-invalid-bad-salt.p12 -d ${P_R_COPYDIR} -k ${R_PWFILE} -W '1234' 2>&1
20- ret=$?
21- echo "Fail to list private key with bad salt val=$ret"
22- html_msg $ret 19 "Fail to import private key with bad salt"
23- check_tmpfile
24-
25- echo "${BINDIR}/pk12util -l ${TOOLSDIR}/data/pbmac1-invalid-no-length.p12 -d ${P_R_COPYDIR} -k ${R_PWFILE} -W '1234'"
26- ${BINDIR}/pk12util -l ${TOOLSDIR}/data/pbmac1-invalid-no-length.p12 -d ${P_R_COPYDIR} -k ${R_PWFILE} -W '1234' 2>&1
27- ret=$?
28- echo "Fail to import private key with no length val=$ret"
29- html_msg $ret 19 "Fail to import private key with no length"
30- check_tmpfile
31 }
32
33 ############################## tools_p12 ############################### \ No newline at end of file