Message ID | f61be8e525617e20e7bacf1f5f415ba8a4fd487d.1645528089.git.efraim@flashner.co.il |
---|---|
State | New |
Headers | show |
Series | [bug#54105] build-system/go: Use different default go on powerpc-linux. | expand |
Context | Check | Description |
---|---|---|
cbaines/comparison | success | View comparision |
cbaines/git branch | success | View Git branch |
cbaines/applying patch | success | View Laminar job |
cbaines/issue | success | View issue |
Hi Efraim, Is this patch still actually to be applied? -- Oleg
On Thu, Sep 12, 2024 at 03:43:21PM +0100, Sharlatan Hellseher wrote: > > Hi Efraim, > > Is this patch still actually to be applied? Let me get back to you about that. I thought I had a newer version of that patch somewhere. I'll have to double-check that x86_64 -> ppc32 and ppc32->x86_64 both use gccgo. I think I had to do something also with go-std also, which isn't needed with gccgo.
diff --git a/guix/build-system/go.scm b/guix/build-system/go.scm index 5e0e5bbad3..8330d3aa8e 100644 --- a/guix/build-system/go.scm +++ b/guix/build-system/go.scm @@ -3,7 +3,7 @@ ;;; Copyright © 2017 Leo Famulari <leo@famulari.name> ;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net> ;;; Copyright © 2021-2022 Ludovic Courtès <ludo@gnu.org> -;;; Copyright © 2021 Efraim Flashner <efraim@flashner.co.il> +;;; Copyright © 2021, 2022 Efraim Flashner <efraim@flashner.co.il> ;;; Copyright © 2021 Sarah Morgensen <iskarian@mgsn.dev> ;;; ;;; This file is part of GNU Guix. @@ -110,8 +110,11 @@ (define %go-build-system-modules (define (default-go) ;; Lazily resolve the binding to avoid a circular dependency. - (let ((go (resolve-interface '(gnu packages golang)))) - (module-ref go 'go))) + (let ((gcc (resolve-interface '(gnu packages gcc))) + (golang (resolve-interface '(gnu packages golang)))) + (if (target-ppc32?) + (module-ref gcc 'gccgo-11) + (module-ref golang 'go)))) (define (make-go-std) (module-ref (resolve-interface '(gnu packages golang)) 'make-go-std))