gnu: python-scipy: Fix build on i686-linux.

* gnu/packages/patches/python-scipy-i686.patch: Add patch.
* gnu/local.mk (dist_patch_DATA): Add it.
* gnu/packages/python-science.scm (python-scipy): Add phase to apply the patch.

Fixes guix/guix#2989
Change-Id: I6c5d807bd2ed23fca6e94b28cb6927c154bde0e8
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Dariqq 2025-09-26 09:26:37 +00:00 committed by Sharlatan Hellseher
parent bef09e93b3
commit 5bb84e0b97
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5
3 changed files with 59 additions and 0 deletions

View file

@ -3108,6 +3108,15 @@ cross-validation.")
(list
#:phases
#~(modify-phases %standard-phases
#$@(if (target-x86-32?)
#~((add-after 'unpack 'apply-i686-patch
(lambda _
(let ((patch-file
#$(local-file
(search-patch "python-scipy-i686.patch"))))
(invoke "patch" "--force" "-p1" "-i"
patch-file)))))
#~())
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?