From f3f4c752574313b73ea15a91a9690dcba84dbe3b Mon Sep 17 00:00:00 2001 From: sketch Date: Mon, 9 Jun 2008 14:47:03 +0000 Subject: Wrap expansion of local patches inside LOCALPATCHES, given that it is undefined by default. Previous behaviour would try to echo / which leads to interesting behaviour when /net is an autofs map... Reduces runtime of mk/bulk/printdepends by 5.25 days on my test system. --- mk/patch/bsd.patch-vars.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mk') diff --git a/mk/patch/bsd.patch-vars.mk b/mk/patch/bsd.patch-vars.mk index b34d9a2d2b2..43707b28799 100644 --- a/mk/patch/bsd.patch-vars.mk +++ b/mk/patch/bsd.patch-vars.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.patch-vars.mk,v 1.6 2007/08/16 16:29:27 jlam Exp $ +# $NetBSD: bsd.patch-vars.mk,v 1.7 2008/06/09 14:47:03 sketch Exp $ # # This Makefile fragment is included separately by bsd.pkg.mk and # defines some variables which must be defined earlier than where @@ -28,7 +28,9 @@ PATCHFILES?= # none pkgsrc_patches= ${:!echo ${PATCHDIR}/patch-* ${PATCHDIR}/emul-*-patch-*!:N*\*} +.if !empty(LOCALPATCHES) local_patches= ${:!echo ${LOCALPATCHES}/${PKGPATH}/*!:N*/CVS:N*/\*} +.endif .if !empty(PATCHFILES) || !empty(pkgsrc_patches) || !empty(local_patches) USE_TOOLS+= patch -- cgit v1.2.3