pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/go-bin go-bin: Remove code signatures on Darwin/a...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2d8348ebb30c
branches:  trunk
changeset: 455916:2d8348ebb30c
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Wed Jul 14 14:31:21 2021 +0000

description:
go-bin: Remove code signatures on Darwin/aarch64.

This causes problems executing inside a chroot.  Bump PKGREVISION.

diffstat:

 lang/go-bin/Makefile |  10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 28db7b41d48d -r 2d8348ebb30c lang/go-bin/Makefile
--- a/lang/go-bin/Makefile      Wed Jul 14 13:23:16 2021 +0000
+++ b/lang/go-bin/Makefile      Wed Jul 14 14:31:21 2021 +0000
@@ -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 @@
 
 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    \



Home | Main Index | Thread Index | Old Index