summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2022-10-25 06:59:05 +0000
committertron <tron@pkgsrc.org>2022-10-25 06:59:05 +0000
commit85470551bef9cd7a77d0263b5b8db88fd4cf0dad (patch)
tree55ce4a87cc61d94db736a746b4e12a7887d99941
parent5d04d5b473b572686190353b5a801553c58582fe (diff)
downloadpkgsrc-85470551bef9cd7a77d0263b5b8db88fd4cf0dad.tar.gz
bsd.pkg.clean.mk: Fix "clean-depends" on NetBSD using amd(8)
On a NetBSD system using "pkgsrc" mounted via automounter the path to the dependency directories ends up as an absolute path. Prepending "../.." to it creates an invalid path to the directory. Avoid this by executing two separate "cd" commands.
-rw-r--r--mk/bsd.pkg.clean.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/bsd.pkg.clean.mk b/mk/bsd.pkg.clean.mk
index d71aaad2e1d..d57221a6b40 100644
--- a/mk/bsd.pkg.clean.mk
+++ b/mk/bsd.pkg.clean.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.clean.mk,v 1.14 2013/06/01 19:31:52 rillig Exp $
+# $NetBSD: bsd.pkg.clean.mk,v 1.15 2022/10/25 06:59:05 tron Exp $
#
# This Makefile fragment is included to bsd.pkg.mk and defines the
# relevant variables and targets for the "clean" phase.
@@ -38,7 +38,7 @@ clean-depends:
${RUN} \
${_DEPENDS_WALK_CMD} ${PKGPATH} | \
while read dir; do \
- cd ${.CURDIR}/../../$$dir && \
+ cd ${.CURDIR}/../.. && cd $$dir && \
${RECURSIVE_MAKE} ${MAKEFLAGS} CLEANDEPENDS=no clean; \
done