From 19391429b35afd41b347891a18fea103db9f064b Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 5 Nov 2025 11:29:04 +0000 Subject: [PATCH] gnu: python-pyhdf: Fix build with gcc-14. * gnu/packages/python-xyz.scm (python-pyhdf)[arguments] : Add 'relax-gcc-14-strictness. [native-inputs]: Remove python-numpy and python-wheel. Change-Id: I33b09ceaab56857420a4a1af1386a916b5a8e9d9 --- gnu/packages/python-xyz.scm | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 5d8c73757a0890bb297d486dab49685c13fe237d..793093a0aa2a2277bda952406750ab10f0e12f4c 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -5043,19 +5043,23 @@ Expressions are constructed from parsed strings or directly in Python.") #:test-flags #~(list "--pyargs" "pyhdf") #:phases #~(modify-phases %standard-phases + (add-before 'build 'relax-gcc-14-strictness + (lambda _ + (setenv "CFLAGS" (string-join + (list "-g" "-O2" + "-Wno-error=incompatible-pointer-types") + " ")))) (add-after 'check 'run-example-tests (lambda _ (invoke "python" "examples/runall.py")))))) (native-inputs - (list python-numpy - python-pytest + (list python-pytest python-setuptools - python-setuptools-scm - python-wheel)) - (inputs - (list hdf4 - libjpeg-turbo - zlib)) + python-setuptools-scm)) + (inputs + (list hdf4 + libjpeg-turbo + zlib)) (propagated-inputs (list python-numpy)) (home-page "https://github.com/fhs/pyhdf")