From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Cross-building GuixSD (and maybe using pre-built toolchains) Date: Sat, 03 Sep 2016 23:18:05 +0200 Message-ID: <87inuck7hu.fsf@gnu.org> References: <201608302326.38349.paul@boddie.org.uk> <201608312349.49957.paul@boddie.org.uk> <87shtkujko.fsf@gnu.org> <201609011751.42108.paul@boddie.org.uk> <87oa45nnup.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55416) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bgIKM-00016O-23 for help-guix@gnu.org; Sat, 03 Sep 2016 17:18:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bgIKH-0008UL-PD for help-guix@gnu.org; Sat, 03 Sep 2016 17:18:12 -0400 In-Reply-To: (David Craven's message of "Sat, 3 Sep 2016 14:59:54 +0200") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: David Craven Cc: help-guix@gnu.org David Craven skribis: >> It=E2=80=99s on purpose, and packages rarely (if even) need to refer to >> #:native-inputs; only a couple of phases in gnu-build-system.scm refer >> to #:native-inputs. >> >> In which context do you need to refer to #:native-inputs? > > Cross-compiling the linux kernel. > >> ;; Apply the neat patch. >> (system* "patch" "-p1" "--force" >> "-i" (assoc-ref inputs "patch/freedo+gnu")) This looks like a remnant of the past; nowadays it would work to add =E2=80=98%boot-logo=E2=80=99 to =E2=80=98patches=E2=80=99 in =E2=80=98origi= n=E2=80=99. We should do that. > and > >> (mit (assoc-ref inputs "module-init-tools"))) > > fail for no "real" reason. I could add a (if target native-inputs > inputs) but it seems ugly and think it might be a common problem? Hmm, I can see two occurrences of (assoc-ref (or native-inputs inputs) "bash") in gnu/packages/*.scm. Not ideal, but I=E2=80=99d suggest sticking to that for now. :-) Ludo=E2=80=99.