summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2021-07-14 14:31:21 +0000
committerjperkin <jperkin@pkgsrc.org>2021-07-14 14:31:21 +0000
commit0d1756918d88ba7340e4726711d5a60eee781dac (patch)
treeb311184180d5e0e19469c3ed0aa60add69f943be /lang
parent00c99e8ecaea6184e0ec310900679cf9449eb331 (diff)
downloadpkgsrc-0d1756918d88ba7340e4726711d5a60eee781dac.tar.gz
go-bin: Remove code signatures on Darwin/aarch64.
This causes problems executing inside a chroot. Bump PKGREVISION.
Diffstat (limited to 'lang')
-rw-r--r--lang/go-bin/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/lang/go-bin/Makefile b/lang/go-bin/Makefile
index 09dd3a6bf57..89ad9a21986 100644
--- a/lang/go-bin/Makefile
+++ b/lang/go-bin/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.6 2021/06/14 17:23:12 schmonz Exp $
+# $NetBSD: Makefile,v 1.7 2021/07/14 14:31:21 jperkin Exp $
PKGNAME= go-bin-1.14.2
-PKGREVISION= 3
+PKGREVISION= 4
CATEGORIES= lang
MASTER_SITES= https://dl.google.com/go/
@@ -85,6 +85,12 @@ INSTALLATION_DIRS+= go-bin
do-install:
cd ${WRKSRC} && ${PAX} -rw . ${DESTDIR}${PREFIX}/go-bin
+.if !empty(MACHINE_PLATFORM:MDarwin-*-aarch64)
+ for f in ${DESTDIR}${PREFIX}/go-bin/bin/* \
+ ${DESTDIR}${PREFIX}/go-bin/pkg/tool/darwin_arm64/*; do \
+ /usr/bin/codesign --remove-signature $$f; \
+ done
+.endif
post-install:
cd ${DESTDIR}${PREFIX} && find go-bin -type f -print \