GNU bug report logs -
#34304
[PATCH] doc: Document how to enable qemu binfmt service and how to use it.
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 34304 in the body.
You can then email your comments to 34304 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#34304
; Package
guix-patches
.
(Sun, 03 Feb 2019 23:13:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Danny Milosavljevic <dannym <at> scratchpost.org>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Sun, 03 Feb 2019 23:13:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
* 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
Information forwarded
to
guix-patches <at> gnu.org
:
bug#34304
; Package
guix-patches
.
(Mon, 04 Feb 2019 00:00:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 34304 <at> debbugs.gnu.org (full text, mbox):
Danny Milosavljevic <dannym <at> scratchpost.org> writes:
> * doc/contributing.texi (Submitting Patches): Document how to enable qemu
> binfmt service and how to use it.
Sounds good to me!
> +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:
How about this:
--8<---------------cut here---------------start------------->8---
We recommend you also try building the package on other supported
platforms. As you may not have access to actual hardware platforms, we
recommend using the @code{qemu-binfmt-service-type} to emulate them. In
order to enable it, add the following service to the list of services in
your @code{operating-system} configuration:
--8<---------------cut here---------------end--------------->8---
> +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
How about:
--8<---------------cut here---------------start------------->8---
You can then build packages for different platforms by specifying the
@code{--system} option. For example, to build the “hello” package for
the armhf, aarch64, powerpc, or mips64 architectures, you would run the
following commands, respectively:
@example
guix build --system=armhf-linux --rounds=2 hello
guix build --system=aarch64-linux --rounds=2 hello
guix build --system=powerpc-linux --rounds=2 hello
guix build --system=mips64el-linux --rounds=2 hello
@end example
--8<---------------cut here---------------end--------------->8---
Reply sent
to
Danny Milosavljevic <dannym <at> scratchpost.org>
:
You have taken responsibility.
(Mon, 04 Feb 2019 16:59:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Danny Milosavljevic <dannym <at> scratchpost.org>
:
bug acknowledged by developer.
(Mon, 04 Feb 2019 16:59:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 34304-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi Ricardo,
On Mon, 04 Feb 2019 00:59:08 +0100
Ricardo Wurmus <rekado <at> elephly.net> wrote:
>[improved version]
Thanks! Pushed with improved text to guix master as 89339a35bd8610ec585da36f3da6ddf116c3fe89.
[Message part 2 (application/pgp-signature, inline)]
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 05 Mar 2019 12:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 5 years and 46 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.