summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2021-07-14 10:18:28 +0000
committerjperkin <jperkin@pkgsrc.org>2021-07-14 10:18:28 +0000
commitc343d08ab9acda02febfcea7f843a85fe5acb3a9 (patch)
tree12b37358503071a00b81bdbafb2869c2d4eb7863 /lang
parent448a2ab239ae923775f470f18c4f0dad7114078f (diff)
downloadpkgsrc-c343d08ab9acda02febfcea7f843a85fe5acb3a9.tar.gz
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.
Diffstat (limited to 'lang')
-rw-r--r--lang/go/bootstrap.mk9
1 files changed, 8 insertions, 1 deletions
diff --git a/lang/go/bootstrap.mk b/lang/go/bootstrap.mk
index 7c83be88a5b..3fab1687f8b 100644
--- a/lang/go/bootstrap.mk
+++ b/lang/go/bootstrap.mk
@@ -1,9 +1,16 @@
-# $NetBSD: bootstrap.mk,v 1.5 2020/12/12 11:08:26 maya Exp $
+# $NetBSD: bootstrap.mk,v 1.6 2021/07/14 10:18:28 jperkin Exp $
.if !defined(GOROOT_BOOTSTRAP) || !exists(${GOROOT_BOOTSTRAP}/bin/go)
. if ${MACHINE_ARCH} == "aarch64"
BUILD_DEPENDS+= go-bin-[0-9]*:../../lang/go-bin
GOROOT_BOOTSTRAP= ${PREFIX}/go-bin
+. if ${OPSYS} == "Darwin"
+pre-build: remove-codesign
+remove-codesign:
+ @for f in ${PREFIX}/go-bin/bin/* ${PREFIX}/go-bin/pkg/tool/darwin_arm64/*; do \
+ /usr/bin/codesign --remove-signature $$f; \
+ done
+. endif
. else
BUILD_DEPENDS+= go14-1.4*:../../lang/go14
GOROOT_BOOTSTRAP= ${PREFIX}/go14