From 5bb84e0b9793b5ce0ff682ae60b692e9d893e6ab Mon Sep 17 00:00:00 2001 From: Dariqq Date: Fri, 26 Sep 2025 09:26:37 +0000 Subject: 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 --- gnu/packages/python-science.scm | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'gnu/packages/python-science.scm') diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index ad89a3940ae..c4399c9019e 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -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? -- cgit v1.3