[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#36477] [PATCH v2 11/61] gnu: texinfo: Fix cross-compilation.
From: |
Mathieu Othacehe |
Subject: |
[bug#36477] [PATCH v2 11/61] gnu: texinfo: Fix cross-compilation. |
Date: |
Wed, 21 Aug 2019 10:54:05 +0200 |
* 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 befdd78551..c93c7fc353 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.
--
2.17.1
- [bug#36477] [PATCH v2 01/61] gnu: perl: Fix cross-compilation., Mathieu Othacehe, 2019/08/21
- [bug#36477] [PATCH v2 02/61] gnu: python: Fix cross compilation., Mathieu Othacehe, 2019/08/21
- [bug#36477] [PATCH v2 04/61] gnu: tk: Fix cross-compilation., Mathieu Othacehe, 2019/08/21
- [bug#36477] [PATCH v2 05/61] gnu: libxslt: Fix cross-compilation., Mathieu Othacehe, 2019/08/21
- [bug#36477] [PATCH v2 07/61] gnu: libgpg-error: Fix cross compilation., Mathieu Othacehe, 2019/08/21
- [bug#36477] [PATCH v2 03/61] gnu: tcl: Fix cross-compilation., Mathieu Othacehe, 2019/08/21
- [bug#36477] [PATCH v2 06/61] gnu: xorg: Fix cross-compilation of multiple packages., Mathieu Othacehe, 2019/08/21
- [bug#36477] [PATCH v2 08/61] gnu: python: Further cross-compilation fixes., Mathieu Othacehe, 2019/08/21
- [bug#36477] [PATCH v2 11/61] gnu: texinfo: Fix cross-compilation.,
Mathieu Othacehe <=
- [bug#36477] [PATCH v2 09/61] gnu: http-parser: Fix cross-compilation., Mathieu Othacehe, 2019/08/21
- [bug#36477] [PATCH v2 12/61] gnu: cmake: Fix cross-compilation., Mathieu Othacehe, 2019/08/21
- [bug#36477] [PATCH v2 13/61] gnu: libgit2: Fix cross compilation., Mathieu Othacehe, 2019/08/21
- [bug#36477] [PATCH v2 10/61] gnu: openssl: Fix cross-compilation., Mathieu Othacehe, 2019/08/21
- [bug#36477] [PATCH v2 14/61] gnu: ath9k-htc-firmware: Fix cross compilation., Mathieu Othacehe, 2019/08/21
- [bug#36477] [PATCH v2 15/61] gnu: libpaper: Fix aarch64 cross-compilation., Mathieu Othacehe, 2019/08/21
- [bug#36477] [PATCH v2 16/61] gnu: groff: Fix cross compilation., Mathieu Othacehe, 2019/08/21
- [bug#36477] [PATCH v2 19/61] gnu: indent: Fix aarch64 cross-compilation., Mathieu Othacehe, 2019/08/21
- [bug#36477] [PATCH v2 21/61] gnu: mit-krb5: Fix cross-compilation., Mathieu Othacehe, 2019/08/21
- [bug#36477] [PATCH v2 17/61] gnu: texinfo-5: Fix cross-compilation., Mathieu Othacehe, 2019/08/21