gnu: python-h5py: Fix build with gcc-14.

* gnu/packages/python-xyz.scm (python-h5py)[arguments]: Add phase
"relax-gcc-14-strictness".

Change-Id: Ib68eb41305d075069926323727fe35ca65fd2873
This commit is contained in:
Janneke Nieuwenhuizen 2025-01-05 18:00:44 +01:00
parent 82de420bd2
commit 2600337744
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -3214,7 +3214,14 @@ (define-public python-h5py
(add-after 'unpack 'fix-hdf5-paths
(lambda* (#:key inputs #:allow-other-keys)
(setenv "HDF5_DIR"
(assoc-ref inputs "hdf5")))))))
(assoc-ref inputs "hdf5"))))
(add-before 'build 'relax-gcc-14-strictness
(lambda _
(setenv
"CFLAGS"
(string-append
"-g -O2"
`" -Wno-error=incompatible-pointer-types")))))))
(propagated-inputs (list python-six python-numpy))
(inputs (list hdf5-1.10))
(native-inputs (list pkg-config python-cython python-ipython