[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
11/14: gnu: guile-3.0: Fix building on powerpc-linux.
From: |
guix-commits |
Subject: |
11/14: gnu: guile-3.0: Fix building on powerpc-linux. |
Date: |
Mon, 15 Mar 2021 06:05:50 -0400 (EDT) |
efraim pushed a commit to branch wip-ppc
in repository guix.
commit 5102754bc596d6824ec134d9472541474fb30cdf
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Mon Mar 8 22:13:56 2021 +0200
gnu: guile-3.0: Fix building on powerpc-linux.
* gnu/packages/guile.scm (guile-3.0)[arguments]: On powerpc add two
phases to adjust for 32-bit big-endian systems.
---
gnu/packages/guile.scm | 21 ++++++++++++++++++++-
1 file changed, 20 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/guile.scm b/gnu/packages/guile.scm
index 21f1329..f0158f8 100644
--- a/gnu/packages/guile.scm
+++ b/gnu/packages/guile.scm
@@ -304,7 +304,26 @@ without requiring the source code to be rewritten.")
(substitute-keyword-arguments (package-arguments guile-2.2)
((#:configure-flags flags ''())
`(cons "--disable-jit" ,flags)))
- (package-arguments guile-2.2)))
+ (if (string-prefix? "powerpc-" (%current-system))
+ (substitute-keyword-arguments (package-arguments guile-2.2)
+ ((#:phases phases)
+ `(modify-phases ,phases
+ (add-after 'unpack 'adjust-bootstrap-flags
+ (lambda _
+ ;; Upstream not yet notified about suggested solution.
+ ;; See existing bug reports:
+ ;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=45214
+ ;;
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=977223
+ (substitute* "bootstrap/Makefile.in"
+ (("^GUILE_OPTIMIZATIONS.*")
+ "GUILE_OPTIMIZATIONS = -O1 -Oresolve-primitives
-Ocps\n"))
+ #t))
+ (add-after 'unpack 'remove-failing-tests
+ (lambda _
+ ;; TODO: Discover why this test fails on powerpc-linux
+ (delete-file "test-suite/standalone/test-out-of-memory")
+ #t)))))
+ (package-arguments guile-2.2))))
(native-search-paths
(list (search-path-specification
(variable "GUILE_LOAD_PATH")
- branch wip-ppc created (now 8e77d49), guix-commits, 2021/03/15
- 06/14: gnu: american-fuzzy-lop: Add support for powerpc-linux., guix-commits, 2021/03/15
- 08/14: gnu: mercurial: Skip tests on powerpc-linux., guix-commits, 2021/03/15
- 01/14: gnu: gd: Update to 2.3.2., guix-commits, 2021/03/15
- 10/14: gnu: glibc: Fix ldd path on powerpc*., guix-commits, 2021/03/15
- 11/14: gnu: guile-3.0: Fix building on powerpc-linux.,
guix-commits <=
- 13/14: gnu: binutils: Adjust test suite on powerpc-linux., guix-commits, 2021/03/15
- 02/14: gnu: bootstrap: Add support for powerpc-linux., guix-commits, 2021/03/15
- 14/14: gnu: libffi: Don't apply patch twice., guix-commits, 2021/03/15
- 04/14: gnu: mesa: Add support for powerpc-linux., guix-commits, 2021/03/15
- 05/14: gnu: Add mac-fdisk., guix-commits, 2021/03/15
- 12/14: gnu: findutils-boot0: Fix test suite on some systems., guix-commits, 2021/03/15
- 07/14: build: qemu-command: Add support for powerpc., guix-commits, 2021/03/15
- 09/14: gnu: nss: Skip tests on powerpc-linux., guix-commits, 2021/03/15
- 03/14: gnu: binutils-final: Provide bash for binary on powerpc-linux., guix-commits, 2021/03/15