Subject: bug#20239: closed (Re: bug#20239: [PATCH 1/4] services: Add qemu-binfmt.)

From: [email-masked] (GNU bug Tracking System)
Date: Thu, 11 Jan 2018 13:47:03 +0000

Your bug report

#20239: [wishlist] Add build hook to build for other platforms using qemu

which was filed against the guix package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
20239: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=20239
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#20239: [PATCH 1/4] services: Add qemu-binfmt.
From: [email-masked] (Ludovic Courtès)
To: [email-masked]
Date: Thu, 11 Jan 2018 14:46:15 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Hello,

Ludovic Courtès <[email-masked]> skribis:

> * gnu/services/virtualization.scm (<qemu-platform>): New record type.
> (bv): New macro.
> (%i386, %i486, %alpha, %arm, %armeb, %sparc, %sparc32plus)
> (%ppc, %ppc64, %ppc64le, %m68k, %mips, %mipsel, %mipsn32el)
> (%mips64, %mips64el, %sh4, %sh4eb, %s390x, %aarch64, %hppa)
> (%qemu-platforms): New variables.
> (lookup-qemu-platforms): New procedure.
> (<qemu-binfmt-configuration>): New record type.
> (qemu-platform->binfmt): New procedures.
> (%binfmt-mount-point, %binfmt-register-file, %binfmt-file-system)
> (qemu-binfmt-service-type): New variables.
> (qemu-binfmt-shepherd-services): New procedures.
> * doc/guix.texi (Virtualization Services): Add "Transparent Emulation
> with QEMU" heading.

I fixed a couple of bugs here:

  - open the “…/register” file once for each platform instead of once
    for all;
  - hex-encode all the characters in the magic and mask fields of
    binfmt_misc (before that binfmt_misc would ignore everything after
    the first NUL).

I also added cross-references under the description of --system in the
manual, and a note about the ‘F’ flag of binfmt_misc.

Pushed now!

Thanks,
Ludo’.

Subject: [wishlist] Add build hook to build for other platforms using qemu
From: Mark H Weaver <[email-masked]>
To: [email-masked]
Date: Tue, 31 Mar 2015 17:37:07 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

It would be great if we had a build hook to enable guix-daemon to
natively build packages for any system supported by qemu, by running the
build processes within qemu.

     Mark