GNU bug report logs - #48044
[PATCH] build/go: Support cross compiling.

Previous Next

Package: guix-patches;

Reported by: Efraim Flashner <efraim <at> flashner.co.il>

Date: Mon, 26 Apr 2021 18:34:02 UTC

Severity: normal

Tags: patch

Done: Efraim Flashner <efraim <at> flashner.co.il>

Bug is archived. No further changes may be made.

Full log


Message #20 received at 48044 <at> debbugs.gnu.org (full text, mbox):

From: Efraim Flashner <efraim <at> flashner.co.il>
To: Sarah Morgensen <iskarian <at> mgsn.dev>
Cc: 48044 <at> debbugs.gnu.org, leo <at> famulari.name
Subject: Re: [bug#48044] [PATCH v3] build/go: Support cross compiling.
Date: Mon, 23 Aug 2021 12:26:29 +0300
[Message part 1 (text/plain, inline)]
New version of the patch. I moved the logic to figure out GOOS/GOARCH to
the host side and added keywords to pass the information along to the
build side.

With a properly configured go package and perhaps some additional
qemu-binfmt targets packages like this should work:

(use-modules (guix packages)
             (gnu packages syncthing))
(package
  (inherit syncthing)
  (arguments
   `(,@(package-arguments syncthing)
     #:goos "plan9"
     #:goarch "amd64")))

-- 
Efraim Flashner   <efraim <at> flashner.co.il>   רנשלפ םירפא
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[v4-0001-build-go-Support-cross-compiling.patch (text/plain, attachment)]
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 3 years and 250 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.