Received: by mail.netbsd.org (Postfix, from userid 605) id 5C03884DE2; Wed, 8 Jul 2020 12:37:14 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id D62A984D61 for ; Wed, 8 Jul 2020 12:37:13 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id dT983Fw7Mx7t for ; Wed, 8 Jul 2020 12:37:13 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 5126784D3F for ; Wed, 8 Jul 2020 12:37:13 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 49FACFB28; Wed, 8 Jul 2020 12:37:13 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_159421183382830" MIME-Version: 1.0 Date: Wed, 8 Jul 2020 12:37:13 +0000 From: "Jonathan Perkin" Subject: CVS commit: pkgsrc/mk/install To: pkgsrc-changes@NetBSD.org Reply-To: jperkin@netbsd.org X-Mailer: log_accum Message-Id: <20200708123713.49FACFB28@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_159421183382830 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: jperkin Date: Wed Jul 8 12:37:13 UTC 2020 Modified Files: pkgsrc/mk/install: bsd.install-vars.mk install.mk Log Message: mk: Skip unnecessary dirs for CTF/debug conversion. There won't (or at least should never!) be any files under share/ or man/ that require conversion for CTF or debug support, so set sensible defaults for both CTF_FILES_SKIP and STRIP_FILES_SKIP. Further additions are welcome. While here rearrange the ordering of the debug skips to match CTF and deliver a small performance improvement by avoiding unnecessary file tests. Combined, these reduce the runtime for "make install-ctf install-strip-debug" in lang/rust down from wall/user/sys 10m33s/2m34s/9m30s to 1m13s/0m46s/1m4s. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 pkgsrc/mk/install/bsd.install-vars.mk cvs rdiff -u -r1.78 -r1.79 pkgsrc/mk/install/install.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_159421183382830 Content-Disposition: inline Content-Length: 1958 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/mk/install/bsd.install-vars.mk diff -u pkgsrc/mk/install/bsd.install-vars.mk:1.9 pkgsrc/mk/install/bsd.install-vars.mk:1.10 --- pkgsrc/mk/install/bsd.install-vars.mk:1.9 Mon Nov 12 14:22:58 2018 +++ pkgsrc/mk/install/bsd.install-vars.mk Wed Jul 8 12:37:13 2020 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.install-vars.mk,v 1.9 2018/11/12 14:22:58 jperkin Exp $ +# $NetBSD: bsd.install-vars.mk,v 1.10 2020/07/08 12:37:13 jperkin Exp $ # # This Makefile fragment is included separately by bsd.pkg.mk and # defines some variables which must be defined earlier than where @@ -63,10 +63,11 @@ TOOLS_CREATE+= ctfconvert TOOLS_PATH.ctfconvert= ${TOOLS_PLATFORM.ctfconvert} TOOLS_ARGS.ctfconvert?= -i CTFCONVERT?= ctfconvert -CTF_FILES_SKIP?= # none +CTF_FILES_SKIP?= share/* ${PKGMANDIR}/* .endif -STRIP_DEBUG?= no +STRIP_DEBUG?= no +STRIP_FILES_SKIP?= share/* ${PKGMANDIR}/* .if !empty(_MANCOMPRESSED:M[yY][eE][sS]) && empty(_MANZ:M[yY][eE][sS]) USE_TOOLS+= gunzip Index: pkgsrc/mk/install/install.mk diff -u pkgsrc/mk/install/install.mk:1.78 pkgsrc/mk/install/install.mk:1.79 --- pkgsrc/mk/install/install.mk:1.78 Fri Sep 6 09:00:35 2019 +++ pkgsrc/mk/install/install.mk Wed Jul 8 12:37:13 2020 @@ -1,4 +1,4 @@ -# $NetBSD: install.mk,v 1.78 2019/09/06 09:00:35 jperkin Exp $ +# $NetBSD: install.mk,v 1.79 2020/07/08 12:37:13 jperkin Exp $ # # This file provides the code for the "install" phase. # @@ -374,11 +374,11 @@ install-strip-debug: plist @${STEP_MSG} "Automatic stripping of debug information" ${RUN}cd ${DESTDIR:Q}${PREFIX:Q}; \ ${CAT} ${_PLIST_NOKEYWORDS} | while read f; do \ - [ ! -h "$${f}" ] || continue; \ case "$${f}" in \ ${STRIP_FILES_SKIP:@p@${p}) continue;;@} \ *) ;; \ esac; \ + [ ! -h "$${f}" ] || continue; \ tmp_f="$${f}.XXX"; \ if ${STRIP_DBG} -o "$${tmp_f}" "$${f}" 2>/dev/null; then \ if [ -f "$${tmp_f}" -a -f "$${f}" ]; then \ --_----------=_159421183382830--