Wed Jul 14 10:18:28 2021 UTC ()
go: Remove go-bin code signatures on Darwin/aarch64.

Fixes the build of go116 when inside a chroot as the signatures cannot be
verified for some reason.


(jperkin)
diff -r1.5 -r1.6 pkgsrc/lang/go/bootstrap.mk

cvs diff -r1.5 -r1.6 pkgsrc/lang/go/bootstrap.mk (expand / switch to unified diff)

--- pkgsrc/lang/go/bootstrap.mk 2020/12/12 11:08:26 1.5
+++ pkgsrc/lang/go/bootstrap.mk 2021/07/14 10:18:28 1.6
@@ -1,11 +1,18 @@ @@ -1,11 +1,18 @@
1# $NetBSD: bootstrap.mk,v 1.5 2020/12/12 11:08:26 maya Exp $ 1# $NetBSD: bootstrap.mk,v 1.6 2021/07/14 10:18:28 jperkin Exp $
2 2
3.if !defined(GOROOT_BOOTSTRAP) || !exists(${GOROOT_BOOTSTRAP}/bin/go) 3.if !defined(GOROOT_BOOTSTRAP) || !exists(${GOROOT_BOOTSTRAP}/bin/go)
4. if ${MACHINE_ARCH} == "aarch64" 4. if ${MACHINE_ARCH} == "aarch64"
5BUILD_DEPENDS+= go-bin-[0-9]*:../../lang/go-bin 5BUILD_DEPENDS+= go-bin-[0-9]*:../../lang/go-bin
6GOROOT_BOOTSTRAP= ${PREFIX}/go-bin 6GOROOT_BOOTSTRAP= ${PREFIX}/go-bin
 7. if ${OPSYS} == "Darwin"
 8pre-build: remove-codesign
 9remove-codesign:
 10 @for f in ${PREFIX}/go-bin/bin/* ${PREFIX}/go-bin/pkg/tool/darwin_arm64/*; do \
 11 /usr/bin/codesign --remove-signature $$f; \
 12 done
 13. endif
7. else 14. else
8BUILD_DEPENDS+= go14-1.4*:../../lang/go14 15BUILD_DEPENDS+= go14-1.4*:../../lang/go14
9GOROOT_BOOTSTRAP= ${PREFIX}/go14 16GOROOT_BOOTSTRAP= ${PREFIX}/go14
10. endif 17. endif
11.endif 18.endif