[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/08: wip: Fix texinfo cross-compilation.
From: |
guix-commits |
Subject: |
03/08: wip: Fix texinfo cross-compilation. |
Date: |
Tue, 2 Jul 2019 11:19:13 -0400 (EDT) |
mothacehe pushed a commit to branch wip-cross-system
in repository guix.
commit 23e1a30d68e40ff57c3f131463b5083e959122b0
Author: Mathieu Othacehe <address@hidden>
Date: Tue Jul 2 07:45:26 2019 +0200
wip: Fix texinfo cross-compilation.
---
gnu/packages/texinfo.scm | 24 ++++++++++++++++++++++--
1 file changed, 22 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/texinfo.scm b/gnu/packages/texinfo.scm
index fa98bd5..36bb913 100644
--- a/gnu/packages/texinfo.scm
+++ b/gnu/packages/texinfo.scm
@@ -42,8 +42,28 @@
(base32
"0qjzvbvnv9003xdrcpi3jp7y68j4hq2ciw9frh2hghh698zlnxvp"))))
(build-system gnu-build-system)
- (inputs `(("ncurses" ,ncurses)
- ("perl" ,perl)))
+ (arguments
+ ;; When cross-compiling, the package is configured twice: once with the
+ ;; native compiler and once with the cross-compiler. During the configure
+ ;; with the native compiler, the environment is reset. This leads to
+ ;; multiple environment variables missing. Do not reset the environment
+ ;; to prevent that.
+ `(,@(if (%current-target-system)
+ '(#:phases
+ (modify-phases %standard-phases
+ (add-before 'configure 'fix-cross-configure
+ (lambda _
+ (substitute* "configure"
+ (("env -i")
+ "env "))
+ #t))))
+ '())))
+ (inputs `(("ncurses" ,ncurses)))
+ ;; When cross-compiling, texinfo will build some of it's own binaries with
+ ;; the native compiler. This means ncurses is needed both in both inputs
+ ;; and native-inputs.
+ (native-inputs `(("perl" ,perl)
+ ("ncurses" ,ncurses)))
(native-search-paths
;; This is the variable used by the standalone Info reader.
- branch wip-cross-system updated (6e59bb8 -> c68d23b), guix-commits, 2019/07/02
- 04/08: gnu: cmake: Extend CMAKE_PREFIX_PATH to non-native inputs., guix-commits, 2019/07/02
- 06/08: gnu: ath9k-htc-firmware: Fix cross compilation., guix-commits, 2019/07/02
- 01/08: gnu: http-parser: Fix cross-compilation., guix-commits, 2019/07/02
- 08/08: gnu: groff: Fix cross compilation., guix-commits, 2019/07/02
- 05/08: gnu: libgit2: Fix cross compilation., guix-commits, 2019/07/02
- 07/08: gnu: libpaper: Fix aarch64 cross-compilation., guix-commits, 2019/07/02
- 03/08: wip: Fix texinfo cross-compilation.,
guix-commits <=
- 02/08: gnu: openssl: Fix cross-compilation., guix-commits, 2019/07/02