summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbsiegert <bsiegert@pkgsrc.org>2021-02-20 13:54:46 +0000
committerbsiegert <bsiegert@pkgsrc.org>2021-02-20 13:54:46 +0000
commitecb6521cea55fc4c419179a4251d63d6bb36bdd7 (patch)
tree815c0603d7ab4e82495f03b15f2df6c7857577d4
parent40451fd0c2941d5816e851cd5d7c9c52305a5719 (diff)
downloadpkgsrc-ecb6521cea55fc4c419179a4251d63d6bb36bdd7.tar.gz
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.
-rw-r--r--lang/go14/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/lang/go14/Makefile b/lang/go14/Makefile
index 32db677a991..9445fb14c91 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"