diff options
| author | Ian Eure <ian@retrospec.tv> | 2025-02-16 13:42:46 -0800 |
|---|---|---|
| committer | Andreas Enge <andreas@enge.fr> | 2025-08-17 22:34:42 +0200 |
| commit | a1d9c3a3528a41eb974a9e3b66a6a80859872012 (patch) | |
| tree | 9a30d8520702540bb4b9b58160a7625edc5c00d5 /gnu/packages | |
| parent | caeed438825ad2b1d46abe7526ce7a3934434f23 (diff) | |
gnu: nss: Store the package release date in an environment variable.
* gnu/packages/nss.scm (nss): Store the package release date in an environment
variable.
Change-Id: Ic3708c0a32e2fc15b0400e42611735f33839b78b
Diffstat (limited to 'gnu/packages')
| -rw-r--r-- | gnu/packages/nss.scm | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/gnu/packages/nss.scm b/gnu/packages/nss.scm index 2834e5664d9..519b8926865 100644 --- a/gnu/packages/nss.scm +++ b/gnu/packages/nss.scm @@ -171,6 +171,13 @@ in the Mozilla clients.") (target-ppc32?))) #:phases #~(modify-phases %standard-phases + ;; The "PayPalEE.cert" certificate expires every six months, leading + ;; to test failures: + ;; <https://bugzilla.mozilla.org/show_bug.cgi?id=609734>. To work + ;; around that, set the time to roughly the release date. + (add-after 'unpack 'set-release-date + (lambda _ + (setenv "GUIX_NSS_RELEASE_DATE" "2024-01-23"))) (replace 'configure (lambda _ (setenv "CC" #$(cc-for-target)) @@ -211,12 +218,12 @@ in the Mozilla clients.") (("SOURCE_DIR=.*") (string-append "SOURCE_DIR=" (getcwd) "/nss\n"))))) - ;; The "PayPalEE.cert" certificate expires every six months, - ;; leading to test failures: - ;; <https://bugzilla.mozilla.org/show_bug.cgi?id=609734>. To - ;; work around that, set the time to roughly the release date. - (invoke #$(if (target-64bit?) "faketime" "datefudge") - "2024-01-23" "./nss/tests/all.sh")) + + (let ((release-date (getenv "GUIX_NSS_RELEASE_DATE"))) + (when (string=? "" release-date) + (raise-exception "`GUIX_NSS_RELEASE_DATE' unset")) + (invoke #$(if (target-64bit?) "faketime" "datefudge") + release-date "./nss/tests/all.sh"))) (format #t "test suite not run~%")))) (replace 'install (lambda* (#:key outputs #:allow-other-keys) |
