From patchwork Sun Feb 3 15:46:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Danny Milosavljevic X-Patchwork-Id: 952 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 711A216B75; Sun, 3 Feb 2019 23:13:07 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 266EE16B6F for ; Sun, 3 Feb 2019 23:13:07 +0000 (GMT) Received: from localhost ([127.0.0.1]:33296 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gqQwk-000710-NL for patchwork@mira.cbaines.net; Sun, 03 Feb 2019 18:13:06 -0500 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 X-Loop: help-debbugs@gnu.org Subject: [bug#34304] [PATCH] doc: Document how to enable qemu binfmt service and how to use it. Resent-From: Danny Milosavljevic Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 03 Feb 2019 23:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 34304 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 34304@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15492355675465 (code B ref -1); Sun, 03 Feb 2019 23:13:02 +0000 Received: (at submit) by debbugs.gnu.org; 3 Feb 2019 23:12:47 +0000 Received: from localhost ([127.0.0.1]:57887 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gqQwR-0001Q5-9X for submit@debbugs.gnu.org; Sun, 03 Feb 2019 18:12:47 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43167) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gqQwQ-0001Ps-9i for submit@debbugs.gnu.org; Sun, 03 Feb 2019 18:12:46 -0500 Received: from lists.gnu.org ([209.51.188.17]:50694) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gqQwH-0000WK-Ia for submit@debbugs.gnu.org; Sun, 03 Feb 2019 18:12:38 -0500 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 Received: from dayas.3.home (77.117.158.165.wireless.dyn.drei.com [77.117.158.165]) by dd26836.kasserver.com (Postfix) with ESMTPSA id 46A793360650; Mon, 4 Feb 2019 00:12:16 +0100 (CET) From: Danny Milosavljevic Date: Sun, 3 Feb 2019 16:46:01 +0100 Message-Id: <20190203154601.32098-1-dannym@scratchpost.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Tags: patch X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * 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 errors it reports Make sure the package builds on your platform, using @code{guix build @var{package}}. +@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=armhf-linux --rounds=2 my-package +guix build --system=aarch64-linux --rounds=2 my-package +guix build --system=powerpc-linux --rounds=2 my-package +guix build --system=mips64el-linux --rounds=2 my-package +@end example + @item @cindex bundling Make sure the package does not use bundled copies of software already