tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: [PATCH] go-bin for macOS on Apple Silicon



On Fri, Dec 18, 2020 at 08:20:09PM +0000, Benny Siegert wrote:
> Hi!
> 
> The Go team has released Go 1.16 beta 1 with a binary release for
> darwin/arm64. I tried adding it to go-bin, but I am not sure if I am doing
> it right. I left the other architectures at 1.14.2 as before and override
> PKGNAME on darwin/arm64.
> 
> What's more, I have no ARM Mac to test this. I would be grateful if someone
> could try it on theirs.
> 
> Any comments? It would be awesome if we could get this in before the branch.

Would this be too wild?

Index: version.mk
===================================================================
RCS file: /cvsroot/pkgsrc/lang/go/version.mk,v
retrieving revision 1.105
diff -u -r1.105 version.mk
--- version.mk	13 Nov 2020 18:45:50 -0000	1.105
+++ version.mk	18 Dec 2020 21:36:56 -0000
@@ -23,6 +23,8 @@
 # https://github.com/golang/go/issues/23122
 # darwin version 13.4 is osx 10.9.5
 GO_VERSION_DEFAULT?=	110
+.elif !empty(MACHINE_PLATFORM:MDarwin-*-arm64)
+GO_VERSION_DEFAULT?=	-bin
 .else
 GO_VERSION_DEFAULT?=	115
 .endif



Home | Main Index | Thread Index | Old Index