pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk bsd.pkg.clean.mk: Fix "clean-depends" on NetBSD usi...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/35d210e61a91
branches:  trunk
changeset: 387200:35d210e61a91
user:      tron <tron%pkgsrc.org@localhost>
date:      Tue Oct 25 06:59:05 2022 +0000

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

diffstat:

 mk/bsd.pkg.clean.mk |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r f694ef5d8d2b -r 35d210e61a91 mk/bsd.pkg.clean.mk
--- a/mk/bsd.pkg.clean.mk       Mon Oct 24 19:52:35 2022 +0000
+++ b/mk/bsd.pkg.clean.mk       Tue Oct 25 06:59:05 2022 +0000
@@ -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 @@
        ${RUN}                                                          \
        ${_DEPENDS_WALK_CMD} ${PKGPATH} |                               \
        while read dir; do                                              \
-               cd ${.CURDIR}/../../$$dir &&                            \
+               cd ${.CURDIR}/../.. && cd $$dir &&                      \
                ${RECURSIVE_MAKE} ${MAKEFLAGS} CLEANDEPENDS=no clean;   \
        done
 



Home | Main Index | Thread Index | Old Index