gnu: hdf4: Fix compiling with gfortran 10.

* gnu/packages/maths.scm (hdf4)[arguments]: Add 'allow-argument-mismatch' flag
  for gfortran in 'configure-flags'. Fix regexp in 'patch-settings' phase.
This commit is contained in:
Guillaume Le Vaillant 2021-08-20 13:45:49 +02:00
parent f91097c509
commit 979611d4dd
No known key found for this signature in database
GPG key ID: 6BE8208ADF21FE3F

View file

@ -1083,6 +1083,8 @@ (define-public hdf4
(arguments
`(#:parallel-tests? #f
#:configure-flags (list "--enable-shared"
"FCFLAGS=-fallow-argument-mismatch"
"FFLAGS=-fallow-argument-mismatch"
(string-append "CPPFLAGS=-I"
(assoc-ref %build-inputs "libtirpc")
"/include/tirpc"))
@ -1116,7 +1118,7 @@ (define-public hdf4
;; .so-files. We truncate the hashes to avoid
;; unnecessary store references to those compilers:
(substitute* "libhdf4.settings"
(("(/gnu/store/)([a-Z0-9]*)" all prefix hash)
(("(/gnu/store/)([0-9A-Za-z]*)" all prefix hash)
(string-append prefix (string-take hash 10) "...")))
#t))
(add-after 'install 'provide-absolute-libjpeg-reference