me
/
guix
Archived
1
0
Fork 0

gnu: netcdf-parallel-openmpi: Allow compilation with GCC 10.

* gnu/packages/maths.scm (netcdf)[source]: Add 'modules' and 'snippet'.
master
Ludovic Courtès 2021-09-11 17:05:23 +02:00
parent 12a664a90e
commit 7be2b83102
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 7 additions and 0 deletions

View File

@ -1667,6 +1667,13 @@ similar to MATLAB, GNU Octave or SciPy.")
(sha256
(base32
"1a2fpp15a2rl1m50gcvvzd9y6bavl6vjf9zzf63sz5gdmq06yiqf"))
(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")))
(patches (search-patches "netcdf-date-time.patch"))))
(build-system gnu-build-system)
(native-inputs