[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/10: gnu: guile-3.0: Fix building on powerpc-linux.
From: |
guix-commits |
Subject: |
02/10: gnu: guile-3.0: Fix building on powerpc-linux. |
Date: |
Mon, 26 Apr 2021 05:28:43 -0400 (EDT) |
efraim pushed a commit to branch wip-ppc
in repository guix.
commit 302193daca757351a8f5eedf3cd5062b71b26ee9
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 | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/guile.scm b/gnu/packages/guile.scm
index fdda6cd..01dbf1c 100644
--- a/gnu/packages/guile.scm
+++ b/gnu/packages/guile.scm
@@ -305,7 +305,22 @@ 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 knows about suggested solution.
+ ;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=45214
+ (substitute* "bootstrap/Makefile.in"
+ (("^GUILE_OPTIMIZATIONS.*")
+ "GUILE_OPTIMIZATIONS = -O1 -Oresolve-primitives
-Ocps\n"))))
+ (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"))))))
+ (package-arguments guile-2.2))))
(native-search-paths
(list (search-path-specification
(variable "GUILE_LOAD_PATH")
- branch wip-ppc created (now c3b3bd5), guix-commits, 2021/04/26
- 01/10: gnu: bootstrap: Add support for powerpc-linux., guix-commits, 2021/04/26
- 02/10: gnu: guile-3.0: Fix building on powerpc-linux.,
guix-commits <=
- 04/10: gnu: binutils: Fix bug in test suite in libiberty., guix-commits, 2021/04/26
- 06/10: gnu: Add mac-fdisk., guix-commits, 2021/04/26
- 03/10: gnu: gcc-boot0: Use 128-bit long-double on powerpc-linux., guix-commits, 2021/04/26
- 05/10: gnu: mesa: Add support for powerpc-linux., guix-commits, 2021/04/26
- 07/10: build: qemu-command: Add support for powerpc., guix-commits, 2021/04/26
- 08/10: gnu: mercurial: Skip tests on powerpc-linux., guix-commits, 2021/04/26
- 09/10: gnu: nss: Skip tests on powerpc-linux., guix-commits, 2021/04/26
- 10/10: build-system/copy: Avoid use of 'set!'., guix-commits, 2021/04/26