From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:57772) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gqQwh-0006zv-6g for guix-patches@gnu.org; Sun, 03 Feb 2019 18:13:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gqQwg-0000jw-GL for guix-patches@gnu.org; Sun, 03 Feb 2019 18:13:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:58606) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gqQwg-0000jg-CT for guix-patches@gnu.org; Sun, 03 Feb 2019 18:13:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gqQwg-0001QZ-6u for guix-patches@gnu.org; Sun, 03 Feb 2019 18:13:02 -0500 Subject: [bug#34304] [PATCH] doc: Document how to enable qemu binfmt service and how to use it. Resent-Message-ID: Received: from eggs.gnu.org ([209.51.188.92]:57538) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gqQwG-0006ou-Oe for guix-patches@gnu.org; Sun, 03 Feb 2019 18:12:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gqQwE-0000VK-Ea for guix-patches@gnu.org; Sun, 03 Feb 2019 18:12:35 -0500 Received: from dd26836.kasserver.com ([85.13.145.193]:35924) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gqQwE-0000EQ-3s for guix-patches@gnu.org; Sun, 03 Feb 2019 18:12:34 -0500 From: Danny Milosavljevic Date: Sun, 3 Feb 2019 16:46:01 +0100 Message-Id: <20190203154601.32098-1-dannym@scratchpost.org> MIME-Version: 1.0 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: 34304@debbugs.gnu.org * doc/contributing.texi (Submitting Patches): Document how to enable qemu binfmt service and how to use it. --- doc/contributing.texi | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/doc/contributing.texi b/doc/contributing.texi index ecc20dabc..c086e3c9a 100644 --- a/doc/contributing.texi +++ b/doc/contributing.texi @@ -813,6 +813,29 @@ name of the new or modified package, and fix any err= ors it reports Make sure the package builds on your platform, using @code{guix build @var{package}}. =20 +@item +We recommend you also try to build the package on other platforms. We +do not presume that you have all the platforms, therefore we recommend +using the qemu binfmt service of GuixSD. In order to enable it, add +the following service to your operating-system configuration's services: + +@example +(service qemu-binfmt-service-type + (qemu-binfmt-configuration + (platforms (lookup-qemu-platforms "arm" "aarch64" "ppc" "mips64el")) + (guix-support? #t))) +@end example + +Then reconfigure your system. + +You can then build packages like the following, respectively: +@example +guix build --system=3Darmhf-linux --rounds=3D2 my-package +guix build --system=3Daarch64-linux --rounds=3D2 my-package +guix build --system=3Dpowerpc-linux --rounds=3D2 my-package +guix build --system=3Dmips64el-linux --rounds=3D2 my-package +@end example + @item @cindex bundling Make sure the package does not use bundled copies of software already