From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Offloading to a VM Date: Mon, 29 Aug 2016 14:54:02 +0200 Message-ID: <87r3974txx.fsf@gnu.org> References: <87bn0pp58b.fsf@gnu.org> <877fb12cf7.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]:59941) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1beM4o-00061U-3l for guix-devel@gnu.org; Mon, 29 Aug 2016 08:54:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1beM4k-0006Dx-0J for guix-devel@gnu.org; Mon, 29 Aug 2016 08:54:09 -0400 In-Reply-To: (David Craven's message of "Sun, 28 Aug 2016 16:38:59 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: David Craven Cc: guix-devel David Craven skribis: >> --8<---------------cut here---------------start------------->8--- >> $ qemu-arm $(guix build coreutils -s armhf-linux |grep -v debug)/bin/una= me -a >> Linux pluto 4.7.0-gnu #1 SMP 1 armv7l GNU/Linux >> $ uname -a >> Linux pluto 4.7.0-gnu #1 SMP 1 x86_64 GNU/Linux >> --8<---------------cut here---------------end--------------->8--- > > If I understand correctly this only works when there is a substitute > already. If it's a new package for example that would fail with "not > an armhf system" right? The =E2=80=9Cbuild hook=E2=80=9D is the mechanism by which the daemon asks = an external program whether it can build a derivation for some system. Our (guix scripts offload) is such a program; it replies positively if there=E2=80=99s a machine that matches the target system. What I was suggesting is to have another build hook that would reply positively as long as the target system can be emulated by QEMU. Does that makes sense? Thanks, Ludo=E2=80=99.