pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/go14 go14: prevent spurious recompiles of standar...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/18430e88104f
branches:  trunk
changeset: 447387:18430e88104f
user:      bsiegert <bsiegert%pkgsrc.org@localhost>
date:      Sat Feb 20 13:54:46 2021 +0000

description:
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.

diffstat:

 lang/go14/Makefile |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (33 lines):

diff -r cab5e1a5b909 -r 18430e88104f lang/go14/Makefile
--- a/lang/go14/Makefile        Sat Feb 20 13:46:07 2021 +0000
+++ b/lang/go14/Makefile        Sat Feb 20 13:54:46 2021 +0000
@@ -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 @@
 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 @@
        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"



Home | Main Index | Thread Index | Old Index