From 27d03adaa334a857163f9db7a5b194a977048ef7 Mon Sep 17 00:00:00 2001 From: bsiegert Date: Sat, 20 Feb 2021 13:54:46 +0000 Subject: [PATCH] go14: prevent spurious recompiles of standard library packages This touches all compiled std library files after installation, to avoid extra recompilations when a dependent package (most likely a newer Go release) is being built. Patch from mlelstv@ in PR pkg/55900. --- lang/go14/Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lang/go14/Makefile b/lang/go14/Makefile index 32db677a991a..9445fb14c913 100644 --- a/lang/go14/Makefile +++ b/lang/go14/Makefile @@ -1,10 +1,10 @@ -# $NetBSD: Makefile,v 1.23 2020/10/20 11:22:27 nia Exp $ +# $NetBSD: Makefile,v 1.24 2021/02/20 13:54:46 bsiegert Exp $ .include "../../lang/go/version.mk" DISTNAME= go${GO14_VERSION}.src PKGNAME= go14-${GO14_VERSION} -PKGREVISION= 11 +PKGREVISION= 12 CATEGORIES= lang MASTER_SITES= https://storage.googleapis.com/golang/ PATCH_SITES= https://codereview.appspot.com/download/ @@ -15,7 +15,7 @@ COMMENT= The Go programming language LICENSE= modified-bsd WRKSRC= ${WRKDIR}/go -USE_TOOLS+= bash:run perl:run pax +USE_TOOLS+= bash:run perl:run pax touch # uses ulimit -T BUILD_DEPENDS+= bash>=4.2nb3:../../shells/bash @@ -88,5 +88,7 @@ do-install: cd ${WRKSRC} && rm -rf .hgignore .hgtags pkg/obj cd ${WRKDIR}/go && pax -rw * ${DESTDIR}${GOROOT_FINAL} find ${DESTDIR}${GOROOT_FINAL} -name \*.orig -exec rm {} \; + find ${DESTDIR}${GOROOT_FINAL} -type f -exec ${TOUCH} -r ${DESTDIR}${GOROOT_FINAL} {} \; + .include "../../mk/bsd.pkg.mk"