[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
18/33: gnu: texinfo: Fix cross-compilation.
From: |
guix-commits |
Subject: |
18/33: gnu: texinfo: Fix cross-compilation. |
Date: |
Tue, 24 Sep 2019 02:17:48 -0400 (EDT) |
mothacehe pushed a commit to branch core-updates-next
in repository guix.
commit 5a2f58d52caea7a2a94a8ff18ef1ce9bebab7166
Author: Mathieu Othacehe <address@hidden>
Date: Wed Sep 4 18:25:17 2019 +0200
gnu: texinfo: Fix cross-compilation.
* gnu/packages/texinfo.scm (texinfo)[arguments]: Do not reset environment
before running configure with the native compiler, in a cross-compilation
context,
[inputs]: move perl from here ...
[native-inputs]: ... to here. Also add ncurses that is needed in a
cross-compilation context to build texinfo native tools.
---
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 befdd78..9b96d2d 100644
--- a/gnu/packages/texinfo.scm
+++ b/gnu/packages/texinfo.scm
@@ -41,8 +41,28 @@
(base32
"0rixv4c301djr0d0cnsxs8c1wjndi6bf9vi5axz6mwjkv80cmfcv"))))
(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 its 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.
- 12/33: gnu: help2man: Fix cross-compilation., (continued)
- 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, 2019/09/24
- 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 <=
- 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
- 16/33: gnu: pkg-config: Fix cross-compilation., guix-commits, 2019/09/24
- 19/33: gnu: texinfo-5: Fix cross-compilation., guix-commits, 2019/09/24
- 25/33: gnu: libsamplerate: Fix aarch64 cross-compilation., guix-commits, 2019/09/24
- 17/33: gnu: alsa-utils: Fix cross-compilation., guix-commits, 2019/09/24
- 11/33: gnu: mit-krb5: Fix cross-compilation., guix-commits, 2019/09/24