~ruther/guix-local

8f78f61c029bb45c39fa782f8ac2c6962e44cdab — Maxim Cournoyer 5 years ago b832405
gnu: nss: Update to 3.71.

This is made in an attempt to get rid of non-deterministic test failures,
namely:

  [  FAILED  ] TlsConnectDatagram13.AeadLimit

* gnu/packages/nss.scm (nss): Update comment about nss-certs.  Update to 3.71.
[phases]{check}: Update faketime date.
[inputs]{sqlite}: Use the regular version.
* gnu/packages/certs.scm (nss-certs): Inherit version and source from nss.
2 files changed, 8 insertions(+), 20 deletions(-)

M gnu/packages/certs.scm
M gnu/packages/nss.scm
M gnu/packages/certs.scm => gnu/packages/certs.scm +2 -12
@@ 128,18 128,8 @@ that was originally contributed to Debian.")
(define-public nss-certs
  (package
    (name "nss-certs")
    (version "3.67")
    (source (origin
              (method url-fetch)
              (uri (let ((version-with-underscores
                          (string-join (string-split version #\.) "_")))
                     (string-append
                      "https://ftp.mozilla.org/pub/mozilla.org/security/nss/"
                      "releases/NSS_" version-with-underscores "_RTM/src/"
                      "nss-" version ".tar.gz")))
              (sha256
               (base32
                "0zyfi27lbdz1bmk9dmsivcya4phx25rzlxqcnjab69yd928rlm7n"))))
    (version (package-version nss))
    (source (package-source nss))
    (build-system gnu-build-system)
    (outputs '("out"))
    (native-inputs

M gnu/packages/nss.scm => gnu/packages/nss.scm +6 -8
@@ 94,12 94,12 @@ platform-neutral API for system level and libc-like functions.  It is used
in the Mozilla clients.")
    (license license:mpl2.0)))

;;; Note: When updating, also update the nss-certs package, which cannot
;;; inherit from here.
;;; Note: When updating, verify that the nss-certs package still builds fine
;;; as it inherits its source from the nss package.
(define-public nss
  (package
    (name "nss")
    (version "3.67")
    (version "3.71")
    (source (origin
              (method url-fetch)
              (uri (let ((version-with-underscores


@@ 110,7 110,7 @@ in the Mozilla clients.")
                      "nss-" version ".tar.gz")))
              (sha256
               (base32
                "0zyfi27lbdz1bmk9dmsivcya4phx25rzlxqcnjab69yd928rlm7n"))
                "0ly2l3dv6z5hlxs72h5x6796ni3x1bq60saavaf42ddgv4ax7b4r"))
              ;; Create nss.pc and nss-config.
              (patches (search-patches "nss-3.56-pkgconfig.patch"
                                       "nss-getcwd-nonnull.patch"


@@ 163,7 163,7 @@ in the Mozilla clients.")
                   ;; 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 "faketime" "2021-06-01" "./nss/tests/all.sh"))
                   (invoke "faketime" "2021-09-30" "./nss/tests/all.sh"))
                 (format #t "test suite not run~%"))))
         (replace 'install
           (lambda* (#:key outputs #:allow-other-keys)


@@ 187,9 187,7 @@ in the Mozilla clients.")
               (copy-recursively (string-append obj "/bin") bin)
               (copy-recursively (string-append obj "/lib") lib)))))))
    (inputs
     `(;; XXX: Build with SQLite 3.33 to work around
       ;; https://bugzilla.mozilla.org/show_bug.cgi?id=1714874
       ("sqlite" ,sqlite-3.33)
     `(("sqlite" ,sqlite)
       ("zlib" ,zlib)))
    (propagated-inputs
     `(("nspr" ,nspr)))                 ;required by nss.pc.