[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
33/33: gnu: libtool: Fix cross-compilation.
From: |
guix-commits |
Subject: |
33/33: gnu: libtool: Fix cross-compilation. |
Date: |
Tue, 24 Sep 2019 02:17:51 -0400 (EDT) |
mothacehe pushed a commit to branch core-updates-next
in repository guix.
commit 647cfcf68184e8558fcea751ef6d95b6e5d86ae1
Author: Pierre-Moana Levesque <address@hidden>
Date: Thu Jul 4 19:18:48 2019 +0200
gnu: libtool: Fix cross-compilation.
* gnu/packages/autotools.scm (libtool)[arguments]: Do not run tests and use
bash from native-inputs when cross-compiling.
---
gnu/packages/autotools.scm | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/gnu/packages/autotools.scm b/gnu/packages/autotools.scm
index ceb70df..98f31f6 100644
--- a/gnu/packages/autotools.scm
+++ b/gnu/packages/autotools.scm
@@ -9,6 +9,7 @@
;;; Copyright © 2017, 2019 Efraim Flashner <address@hidden>
;;; Copyright © 2018 Tobias Geerinckx-Rice <address@hidden>
;;; Copyright © 2018 Ricardo Wurmus <address@hidden>
+;;; Copyright © 2019 Pierre-Moana Levesque <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -354,21 +355,22 @@ Makefile, simplifying the entire process for the
developer.")
;; XXX: There are test failures on mips64el-linux starting from 2.4.4:
;; <http://hydra.gnu.org/build/181662>.
- #:tests? ,(not (string-prefix? "mips64"
- (or (%current-target-system)
+ ;; Also, do not run tests when cross compiling
+ #:tests? ,(not (or (%current-target-system)
+ (string-prefix? "mips64"
(%current-system))))
#:phases
(modify-phases %standard-phases
(add-before 'check 'pre-check
- (lambda* (#:key inputs #:allow-other-keys)
+ (lambda* (#:key inputs native-inputs #:allow-other-keys)
;; Run the test suite in parallel, if possible.
(setenv "TESTSUITEFLAGS"
(string-append
"-j"
(number->string (parallel-job-count))))
;; Patch references to /bin/sh.
- (let ((bash (assoc-ref inputs "bash")))
+ (let ((bash (assoc-ref (or native-inputs inputs) "bash")))
(substitute* "tests/testsuite"
(("/bin/sh")
(string-append bash "/bin/sh")))
- 05/33: gnu: libxslt: Fix cross-compilation., (continued)
- 05/33: gnu: libxslt: Fix cross-compilation., guix-commits, 2019/09/24
- 08/33: gnu: http-parser: Fix cross-compilation., guix-commits, 2019/09/24
- 09/33: gnu: libgit2: Fix cross compilation., guix-commits, 2019/09/24
- 13/33: gnu: xmlto: Fix cross-compilation., guix-commits, 2019/09/24
- 10/33: gnu: ath9k-htc-firmware: Fix cross compilation., guix-commits, 2019/09/24
- 12/33: gnu: help2man: Fix cross-compilation., guix-commits, 2019/09/24
- 24/33: gnu: indent: Fix aarch64 cross-compilation., guix-commits, 2019/09/24
- 23/33: gnu: libpaper: Fix aarch64 cross-compilation., guix-commits, 2019/09/24
- 27/33: gnu: lvm2: Fix cross-compilation., guix-commits, 2019/09/24
- 07/33: gnu: python: Further cross-compilation fixes., guix-commits, 2019/09/24
- 33/33: gnu: libtool: Fix cross-compilation.,
guix-commits <=
- 21/33: gnu: guile-xcb: Fix cross-compilation., guix-commits, 2019/09/24
- 30/33: gnu: console-setup: Fix cross-compilation., guix-commits, 2019/09/24
- 15/33: gnu: tcsh: Fix cross-compilation., guix-commits, 2019/09/24
- 14/33: gnu: libarchive: Fix cross-compilation., guix-commits, 2019/09/24
- 18/33: gnu: texinfo: Fix cross-compilation., guix-commits, 2019/09/24
- 26/33: gnu: mkfontdir: Fix aarch64 cross-compilation., guix-commits, 2019/09/24
- 22/33: gnu: libgpg-error: Fix cross compilation., guix-commits, 2019/09/24
- 29/33: gnu: procps: Fix cross-compilation., guix-commits, 2019/09/24
- 20/33: gnu: texinfo-4: Fix cross compilation, guix-commits, 2019/09/24
- 28/33: gnu: nghttp2: Fix cross-compilation., guix-commits, 2019/09/24