From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:45835) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iFayN-00064c-Hk for guix-patches@gnu.org; Wed, 02 Oct 2019 05:31:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iFayM-0004A1-89 for guix-patches@gnu.org; Wed, 02 Oct 2019 05:31:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54795) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iFayL-00049p-Vj for guix-patches@gnu.org; Wed, 02 Oct 2019 05:31:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iFayL-0008Bh-QY for guix-patches@gnu.org; Wed, 02 Oct 2019 05:31:01 -0400 Subject: [bug#36477] [PATCH v3 46/48] system: vm: Support cross-compilation. Resent-Message-ID: References: <20190902153333.11190-1-m.othacehe@gmail.com> <20190902153333.11190-47-m.othacehe@gmail.com> <878sr444b8.fsf@gnu.org> From: Mathieu Othacehe In-reply-to: <878sr444b8.fsf@gnu.org> Date: Wed, 02 Oct 2019 11:30:23 +0200 Message-ID: <87k19n8pg0.fsf@gmail.com> 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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: mbakke@fastmail.com, 36477@debbugs.gnu.org > Uh, passing =E2=80=98os=E2=80=99 to =E2=80=98system-linux-image-file-name= =E2=80=99 never worked, right? Right! > All these inputs are added to $PATH just after, which shows that we run > them natively. Thus, they must all be native. > > IOW, all we have to do is replace #$ by #+. Yes that's true for expression->derivation-in-linux-vm where inputs are added to PATH an turned to be native-inputs. > Same here: this is added to $PATH so it must be native. > >> (let ((inputs >> - '#$(append (list qemu parted e2fsprogs dosfstools) >> + '#$(append (list util-linux parted e2fsprogs dosfstoo= ls) >> (map canonical-package >> (list sed grep coreutils findutils ga= wk)))) >> + (native-inputs '#+(list qemu)) > > Likewise. However, here, those inputs are added to PATH, but this is the PATH on the running VM, so they are supposed to be inputs and not native-inputs. The issue I have is that qemu is not cross-compilable for now, plus it is useless on the running VM. So I just removed it from both inputs list. Mathieu