From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:53230) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i5UoR-00051n-O9 for guix-patches@gnu.org; Wed, 04 Sep 2019 08:55:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i5UoQ-0004hJ-QR for guix-patches@gnu.org; Wed, 04 Sep 2019 08:55:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52194) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i5UoQ-0004hD-Mp for guix-patches@gnu.org; Wed, 04 Sep 2019 08:55:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i5UoQ-0005Ns-GZ for guix-patches@gnu.org; Wed, 04 Sep 2019 08:55:02 -0400 Subject: [bug#36477] [PATCH v3 03/48] gnu: texinfo: Fix cross-compilation. Resent-Message-ID: From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20190902153333.11190-1-m.othacehe@gmail.com> <20190902153333.11190-4-m.othacehe@gmail.com> Date: Wed, 04 Sep 2019 14:54:05 +0200 In-Reply-To: <20190902153333.11190-4-m.othacehe@gmail.com> (Mathieu Othacehe's message of "Mon, 2 Sep 2019 17:32:48 +0200") Message-ID: <87imq82pea.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Mathieu Othacehe Cc: 36477@debbugs.gnu.org Mathieu Othacehe 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 con= figure > + ;; with the native compiler, the environment is reset. This leads to > + ;; multiple environment variables missing. Do not reset the environ= ment > + ;; to prevent that. > + `(,@(if (%current-target-system) Simply: (arguments (if (%current-target-system) =E2=80=A6)). > + ;; When cross-compiling, texinfo will build some of it's own binarie= s with s/it=E2=80=99s/its/ > + ;; the native compiler. This means ncurses is needed both in both in= puts > + ;; and native-inputs. > + (native-inputs `(("perl" ,perl) > + ("ncurses" ,ncurses))) Could you check whether that triggers a full rebuild? If it doesn=E2=80=99= t, you can push to master. Ludo=E2=80=99.