[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
11/64: gnu: texinfo: Fix cross-compilation.
From: |
guix-commits |
Subject: |
11/64: gnu: texinfo: Fix cross-compilation. |
Date: |
Fri, 23 Aug 2019 04:10:16 -0400 (EDT) |
mothacehe pushed a commit to branch wip-cross-system
in repository guix.
commit 0497f33945c4f8be9eebee94779395baa5329af1
Author: Mathieu Othacehe <address@hidden>
Date: Tue Jul 2 07:45:26 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..c93c7fc 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 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.
- 31/64: gnu: glibc-utf8-locales: Fix cross-compilation., (continued)
- 31/64: gnu: glibc-utf8-locales: Fix cross-compilation., guix-commits, 2019/08/23
- 41/64: gnu: procps: Fix cross-compilation., guix-commits, 2019/08/23
- 45/64: gnu: libtool: Fix cross-compilation., guix-commits, 2019/08/23
- 47/64: packages: Set outputs field as thunked., guix-commits, 2019/08/23
- 44/64: gnu: guile-gcrypt: Fix cross-compilation., guix-commits, 2019/08/23
- 05/64: gnu: libxslt: Fix cross-compilation., guix-commits, 2019/08/23
- 03/64: gnu: tcl: Fix cross-compilation., guix-commits, 2019/08/23
- 09/64: gnu: http-parser: Fix cross-compilation., guix-commits, 2019/08/23
- 10/64: gnu: openssl: Fix cross-compilation., guix-commits, 2019/08/23
- 13/64: gnu: libgit2: Fix cross compilation., guix-commits, 2019/08/23
- 11/64: gnu: texinfo: Fix cross-compilation.,
guix-commits <=
- 27/64: gnu: pkg-config: Fix cross-compilation., guix-commits, 2019/08/23
- 24/64: gnu: xmlto: Fix cross-compilation., guix-commits, 2019/08/23
- 28/64: gnu: mkfontdir: Fix aarch64 cross-compilation., guix-commits, 2019/08/23
- 35/64: gnu: nghttp2: Fix cross-compilation., guix-commits, 2019/08/23
- 38/64: gnu: swig: Fix cross-compilation., guix-commits, 2019/08/23
- 37/64: gnu: openldap: Fix cross-compilation., guix-commits, 2019/08/23
- 57/64: gnu: linux-libre: Enable built-in ext4 support., guix-commits, 2019/08/23
- 61/64: build: vm: Fix arm32 support., guix-commits, 2019/08/23
- 16/64: gnu: groff: Fix cross compilation., guix-commits, 2019/08/23
- 34/64: gnu: lvm2: Fix cross-compilation., guix-commits, 2019/08/23