From 40298c2071bf97f1095889e554bfd312c7739802 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Mon, 26 Jan 2026 11:38:31 +0200 Subject: [PATCH] gnu: python-numpy: Fix build on powerpc64le-linux. * gnu/packages/python-xyz.scm (python-numpy)[arguments]: Add a phase to fix the test suite when building on powerpc64le-linux. Change-Id: I124cab23263f72174b72f36c3fba08fa6d696b80 Signed-off-by: Efraim Flashner --- gnu/packages/python-xyz.scm | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 68db67f4c5..c8cf201025 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -14,7 +14,7 @@ ;;; Copyright © 2015, 2016, 2017, 2019, 2022 Leo Famulari ;;; Copyright © 2015, 2017 Ben Woodcroft ;;; Copyright © 2015, 2016 Erik Edrosa -;;; Copyright © 2015-2025 Efraim Flashner +;;; Copyright © 2015-2026 Efraim Flashner ;;; Copyright © 2015, 2017, 2020 Kyle Meyer ;;; Copyright © 2015, 2016 Chris Marusich ;;; Copyright © 2016 Danny Milosavljevic @@ -5309,7 +5309,7 @@ concepts.") (define-public python-hdf5storage ;; XXX: Use the latest commit containing compatability with Pytest and Python ;; 3.11, see: . - ;; + ;; ;; This package probably is sun setting, consider to remove when stops ;; building, see: . (let ((commit "7ee2a96de134b44beaa79c3a11c559f9ac87c5a6") @@ -11033,6 +11033,15 @@ writing C extensions for Python as easy as Python itself.") ;; Relay on python from the PATH instead of full reference ;; stored in built wheel. (("'py.full_path\\(\\)'") "'python'")))) + ;; This isn't architecture specific. + ;; TODO: Remove this conditional and apply for all builds. + #$@(if (target-ppc64le?) + #~((add-after 'unpack 'patch-bin-true + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "numpy/_core/tests/test_cpu_features.py" + (("/bin/true") + (search-input-file inputs "bin/true")))))) + #~()) (add-before 'build 'parallelize-build (lambda _ (setenv "OMP_NUM_THREAD"