guix_mirror_bot pushed a commit to branch python-team
in repository guix.
commit 0d0f731df8096e697a758fb304207b810ef4d671
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Tue Dec 9 10:33:43 2025 +0000
gnu: netcdf: Update to 4.9.2.
* gnu/packages/maths.scm (netcdf): Update to 4.9.2.
[arguments] <configure-flags>: Remove not required GCC 1.14 workaround
options, silint "--enable-doxygen" for now; provide "--with-plugin-dir"
<phases>: Add 'fix-tests.
[inputs]: Remove unzip; add bzip2 and zstd.
[native-inputs]: Add unzip.
Change-Id: Ib82e80328d9b0d991e40c99e031a8612c915177f
---
gnu/packages/maths.scm | 38 +++++++++++++++++++++++++++-----------
1 file changed, 27 insertions(+), 11 deletions(-)
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 559b74fdf3..133a2b8fcb 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -2505,7 +2505,7 @@ similar to MATLAB, GNU Octave or SciPy.")
(define-public netcdf
(package
(name "netcdf")
- (version "4.9.0")
+ (version "4.9.2")
(source
(origin
(method url-fetch)
@@ -2514,35 +2514,51 @@ similar to MATLAB, GNU Octave or SciPy.")
"/netcdf-c-" version ".tar.gz"))
(sha256
(base32
- "0j8b814mjdqvqanzmrxpq8hn33n22cdzb3gf9vhya24wnwi615ac"))
+ "0j3c3amzvsd8bd52dqgqa8gkgl7n36qf0yahyl4kz5mrpnxvl4fg"))
(modules '((guix build utils)))
(snippet
;; Make sure this variable is defined only once. Failing to do so
;; would break builds of 'netcdf-parallel-openmpi' with a
;; multiple-definition link error with GCC 10.
'(substitute* "ncdump/ocprint.c"
- (("^int ocdebug") "static int ocdebug")))
+ (("^int ocdebug") "static int ocdebug")))
(patches (search-patches "netcdf-date-time.patch"))))
(build-system gnu-build-system)
(native-inputs
- (list doxygen graphviz m4))
+ (list doxygen
+ graphviz
+ m4
+ unzip))
(inputs
(list curl
- hdf4-alt
+ bzip2
+ hdf4-alt ;XXX: do we still need this?
hdf5
libaec
libjpeg-turbo
libxml2
- unzip
- zlib))
+ zlib
+ zstd))
(arguments
(list #:configure-flags
- #~'("CFLAGS=-g -O2 -Wno-error=incompatible-pointer-types"
- "--enable-doxygen" "--enable-dot"
- "--enable-hdf4" "--disable-dap-remote-tests")
-
+ #~(list "--disable-dap-remote-tests"
+ ;; XXX: ... docs/internal.md' does not exist
+ ;; "--enable-doxygen"
+ "--enable-dot"
+ "--enable-hdf4"
+ "--enable-netcdf-4"
+ (string-append "--with-plugin-dir=" #$output
"/lib/hdf5-plugins"))
#:phases
#~(modify-phases %standard-phases
+ (add-after 'unpack 'fix-tests
+ (lambda* (#:key inputs #:allow-other-keys)
+ ;; Network access is required for these tests.
+ (substitute* (list "ncdap_test/Makefile.am"
+ "ncdap_test/Makefile.in")
+ (("testurl.sh") ""))
+ (substitute* "nczarr_test/Makefile.in"
+ (("/bin/bash")
+ (search-input-file inputs "bin/bash")))))
(add-before 'configure 'fix-source-date
(lambda _
;; As we ${SOURCE_DATE_EPOCH} evaluates to "1" in the build