GNU bug report logs - #36477
Add Guix System cross-compilation support

Previous Next

Package: guix-patches;

Reported by: Mathieu Othacehe <m.othacehe <at> gmail.com>

Date: Tue, 2 Jul 2019 15:19:02 UTC

Severity: normal

Done: Mathieu Othacehe <m.othacehe <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Ludovic Courtès <ludo <at> gnu.org>
To: Mathieu Othacehe <m.othacehe <at> gmail.com>
Cc: mbakke <at> fastmail.com, 36477 <at> debbugs.gnu.org
Subject: [bug#36477] [PATCH v3 03/48] gnu: texinfo: Fix cross-compilation.
Date: Wed, 04 Sep 2019 14:54:05 +0200
Mathieu Othacehe <m.othacehe <at> gmail.com> skribis:

> * 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.

[...]

> +    (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)

Simply: (arguments (if (%current-target-system) …)).

> +    ;; When cross-compiling, texinfo will build some of it's own binaries with

s/it’s/its/

> +    ;; the native compiler. This means ncurses is needed both in both inputs
> +    ;; and native-inputs.
> +    (native-inputs `(("perl" ,perl)
> +                     ("ncurses" ,ncurses)))

Could you check whether that triggers a full rebuild?  If it doesn’t,
you can push to master.

Ludo’.




This bug report was last modified 5 years and 270 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.