andreas pushed a commit to branch core-packages-team
in repository guix.

commit 2b4898e0f0ab2befcc2762bffdeac54b21de81eb
Author: Janneke Nieuwenhuizen <jann...@gnu.org>
AuthorDate: Sun Jan 5 18:00:44 2025 +0100

    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
---
 gnu/packages/python-xyz.scm | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 15b1a523ad..6df35429dc 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -3914,7 +3914,14 @@ library.")
               (when tests?
                 (setenv "H5PY_TEST_CHECK_FILTERS" "1")
                 (with-directory-excursion (site-packages inputs outputs)
-                  (invoke "pytest" "-vv"))))))))
+                  (invoke "pytest" "-vv")))))
+          (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))
     (native-inputs

Reply via email to