gnu: netcdf: Update to 4.9.0.
* gnu/packages/maths.scm (netcdf): Update to 4.9.0. [source]: Use new URI. [inputs]: Add libxml2 and unzip. [arguments]: Update 'configure-flags'. Add 'fix-test-rcmerge' phase. Signed-off-by: Guillaume Le Vaillant <glv@posteo.net>
This commit is contained in:
parent
dd4eee5581
commit
66188398c4
|
@ -58,6 +58,7 @@
|
||||||
;;; Copyright © 2022 Liliana Marie Prikler <liliana.prikler@gmail.com>
|
;;; Copyright © 2022 Liliana Marie Prikler <liliana.prikler@gmail.com>
|
||||||
;;; Copyright © 2022 Maximilian Heisinger <mail@maxheisinger.at>
|
;;; Copyright © 2022 Maximilian Heisinger <mail@maxheisinger.at>
|
||||||
;;; Copyright © 2022 Akira Kyle <akira@akirakyle.com>
|
;;; Copyright © 2022 Akira Kyle <akira@akirakyle.com>
|
||||||
|
;;; Copyright © 2022 Roman Scherer <roman.scherer@burningswell.com>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -1852,16 +1853,16 @@ (define-public itpp
|
||||||
(define-public netcdf
|
(define-public netcdf
|
||||||
(package
|
(package
|
||||||
(name "netcdf")
|
(name "netcdf")
|
||||||
(version "4.7.4")
|
(version "4.9.0")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (string-append
|
(uri (string-append
|
||||||
"https://www.unidata.ucar.edu/downloads/netcdf/ftp/"
|
"https://downloads.unidata.ucar.edu/netcdf-c/" version
|
||||||
"netcdf-c-" version ".tar.gz"))
|
"/netcdf-c-" version ".tar.gz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1a2fpp15a2rl1m50gcvvzd9y6bavl6vjf9zzf63sz5gdmq06yiqf"))
|
"0j8b814mjdqvqanzmrxpq8hn33n22cdzb3gf9vhya24wnwi615ac"))
|
||||||
(modules '((guix build utils)))
|
(modules '((guix build utils)))
|
||||||
(snippet
|
(snippet
|
||||||
;; Make sure this variable is defined only once. Failing to do so
|
;; Make sure this variable is defined only once. Failing to do so
|
||||||
|
@ -1874,13 +1875,18 @@ (define-public netcdf
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list m4 doxygen graphviz))
|
(list m4 doxygen graphviz))
|
||||||
(inputs
|
(inputs
|
||||||
`(("hdf4" ,hdf4-alt)
|
`(("curl" ,curl)
|
||||||
|
("hdf4" ,hdf4-alt)
|
||||||
("hdf5" ,hdf5)
|
("hdf5" ,hdf5)
|
||||||
("curl" ,curl)
|
("libjpeg" ,libjpeg-turbo)
|
||||||
("zlib" ,zlib)
|
("libxml2" ,libxml2)
|
||||||
("libjpeg" ,libjpeg-turbo)))
|
("unzip" ,unzip)
|
||||||
|
("zlib" ,zlib)))
|
||||||
(arguments
|
(arguments
|
||||||
`(#:configure-flags '("--enable-doxygen" "--enable-dot" "--enable-hdf4")
|
`(#:configure-flags '("--enable-doxygen"
|
||||||
|
"--enable-dot"
|
||||||
|
"--enable-hdf4"
|
||||||
|
"--disable-dap-remote-tests")
|
||||||
|
|
||||||
#:phases (modify-phases %standard-phases
|
#:phases (modify-phases %standard-phases
|
||||||
(add-before 'configure 'fix-source-date
|
(add-before 'configure 'fix-source-date
|
||||||
|
@ -1891,8 +1897,7 @@ (define-public netcdf
|
||||||
;; package not reproducible.
|
;; package not reproducible.
|
||||||
(substitute* "./configure"
|
(substitute* "./configure"
|
||||||
(("date -u -d \"\\$\\{SOURCE_DATE_EPOCH\\}\"")
|
(("date -u -d \"\\$\\{SOURCE_DATE_EPOCH\\}\"")
|
||||||
"date --date='@0'"))
|
"date --date='@0'"))))
|
||||||
#t))
|
|
||||||
(add-after 'configure 'patch-settings
|
(add-after 'configure 'patch-settings
|
||||||
(lambda _
|
(lambda _
|
||||||
;; libnetcdf.settings contains the full filename of the compilers
|
;; libnetcdf.settings contains the full filename of the compilers
|
||||||
|
@ -1901,8 +1906,11 @@ (define-public netcdf
|
||||||
;; store items.
|
;; store items.
|
||||||
(substitute* "libnetcdf.settings"
|
(substitute* "libnetcdf.settings"
|
||||||
(("(/gnu/store/)([0-9A-Za-z]*)" all prefix hash)
|
(("(/gnu/store/)([0-9A-Za-z]*)" all prefix hash)
|
||||||
(string-append prefix (string-take hash 10) "...")))
|
(string-append prefix (string-take hash 10) "...")))))
|
||||||
#t)))
|
(add-before 'check 'fix-test-rcmerge
|
||||||
|
(lambda _
|
||||||
|
;; Set HOME, to fix the test-rcmerge test.
|
||||||
|
(setenv "HOME" "/tmp"))))
|
||||||
|
|
||||||
#:parallel-tests? #f)) ;various race conditions
|
#:parallel-tests? #f)) ;various race conditions
|
||||||
(home-page "https://www.unidata.ucar.edu/software/netcdf/")
|
(home-page "https://www.unidata.ucar.edu/software/netcdf/")
|
||||||
|
|
Loading…
Reference in a new issue