pkgsrc-Changes archive

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

CVS commit: pkgsrc/mk



Module Name:    pkgsrc
Committed By:   tron
Date:           Tue Oct 25 06:59:05 UTC 2022

Modified Files:
        pkgsrc/mk: bsd.pkg.clean.mk

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 pkgsrc/mk/bsd.pkg.clean.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/mk/bsd.pkg.clean.mk
diff -u pkgsrc/mk/bsd.pkg.clean.mk:1.14 pkgsrc/mk/bsd.pkg.clean.mk:1.15
--- pkgsrc/mk/bsd.pkg.clean.mk:1.14     Sat Jun  1 19:31:52 2013
+++ pkgsrc/mk/bsd.pkg.clean.mk  Tue Oct 25 06:59:05 2022
@@ -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
 



Home | Main Index | Thread Index | Old Index