Received: by mail.netbsd.org (Postfix, from userid 605) id 4633984FA3; Wed, 14 Jul 2021 18:39:00 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 81CFB84EB6 for ; Wed, 14 Jul 2021 18:38:59 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id oC1ee62v_Vqa for ; Wed, 14 Jul 2021 18:38:59 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id CDC2284D55 for ; Wed, 14 Jul 2021 18:38:58 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id C6211FA95; Wed, 14 Jul 2021 18:38:58 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_162628793894940" MIME-Version: 1.0 Date: Wed, 14 Jul 2021 18:38:58 +0000 From: "Jonathan Perkin" Subject: CVS commit: pkgsrc/lang/go-bin To: pkgsrc-changes@NetBSD.org Reply-To: jperkin@netbsd.org X-Mailer: log_accum Message-Id: <20210714183858.C6211FA95@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_162628793894940 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: jperkin Date: Wed Jul 14 18:38:58 UTC 2021 Modified Files: pkgsrc/lang/go-bin: Makefile Log Message: go-bin: Hide the signing removal behind DARWIN_CHROOTED. Unfortunately stripping the signatures breaks running the binaries outside a chroot according to schmonz, so we're left with no choice but to make this user-configurable. It took a lot of effort for me not to name this variable something far ruder. This will still mean the go-bin package is ultimately useless when shipped as part of a package set, but really we only need it for bootstrapping a real version which should work fine. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 pkgsrc/lang/go-bin/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_162628793894940 Content-Disposition: inline Content-Length: 1000 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/lang/go-bin/Makefile diff -u pkgsrc/lang/go-bin/Makefile:1.7 pkgsrc/lang/go-bin/Makefile:1.8 --- pkgsrc/lang/go-bin/Makefile:1.7 Wed Jul 14 14:31:21 2021 +++ pkgsrc/lang/go-bin/Makefile Wed Jul 14 18:38:58 2021 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.7 2021/07/14 14:31:21 jperkin Exp $ +# $NetBSD: Makefile,v 1.8 2021/07/14 18:38:58 jperkin Exp $ PKGNAME= go-bin-1.14.2 PKGREVISION= 4 @@ -85,7 +85,12 @@ INSTALLATION_DIRS+= go-bin do-install: cd ${WRKSRC} && ${PAX} -rw . ${DESTDIR}${PREFIX}/go-bin -.if !empty(MACHINE_PLATFORM:MDarwin-*-aarch64) +# +# Removing the signatures is required to operate inside a chroot, but breaks +# running them outside. We're left with no choice but to make it configurable +# by the user. +# +.if !empty(MACHINE_PLATFORM:MDarwin-*-aarch64) && defined(DARWIN_CHROOTED) for f in ${DESTDIR}${PREFIX}/go-bin/bin/* \ ${DESTDIR}${PREFIX}/go-bin/pkg/tool/darwin_arm64/*; do \ /usr/bin/codesign --remove-signature $$f; \ --_----------=_162628793894940--