[bug#64448,2/2] gnu: hdf5-1.14: Remove spurious include directories.
Commit Message
* gnu/packages/maths.scm (hdf5-1.14)[arguments]: Use
'substitute-keyword-arguments' to add 'remove-subfiling-cppflags phase.
---
gnu/packages/maths.scm | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
@@ -1672,7 +1672,18 @@ (define-public hdf5-1.14
(base32 "181bdh8hp7v9xqwcby3lknr92lxlicc2hqscba3f5nhf8lrr9rz4"))
(modules '((guix build utils)))
(snippet hdf5-snippet)
- (patches (search-patches "hdf5-config-date.patch"))))))
+ (patches (search-patches "hdf5-config-date.patch"))))
+ (arguments
+ (substitute-keyword-arguments (package-arguments hdf5-1.10)
+ ((#:phases phases)
+ #~(modify-phases #$phases
+ ;; Remove include flag to directory in source tree
+ (add-after 'configure 'remove-subfiling-cppflags
+ (lambda _
+ (substitute* '("src/libhdf5.settings"
+ "bin/h5cc"
+ "c++/src/h5c++")
+ (("-I.*/src/H5FDsubfiling") ""))))))))))
(define-public hdf5
;; Default version of HDF5.