Subject: `make clean` also has `rm` troubles
To: None <tech-pkg@netbsd.org>
From: Julian Coleman <J.D.Coleman@newcastle.ac.uk>
List: tech-pkg
Date: 08/10/1999 12:27:51
Further to my previous message, a `make clean` on a read-only client stops
when there is a 'work' symlink on the server filesystem.

Suggested fix appended.

J

-- 
          NetBSD - the most widely ported operating system available

 ---8<---------------------------- Cut here ---------------------------->8---

--- /usr/pkgsrc/mk/bsd.pkg.mk	Thu Aug  5 12:51:50 1999
+++ bsd.pkg.mk	Tue Aug 10 12:25:42 1999
@@ -1579,7 +1579,7 @@
 .if !defined(NO_WRKDIR)
 .ifdef WRKOBJDIR
 	${_PKG_SILENT}${_PKG_DEBUG}${RM} -rf ${WRKOBJDIR}/${PKGSRC_SUBDIR}
-	${_PKG_SILENT}${_PKG_DEBUG}${RM} -f ${WRKDIR_BASENAME}
+	${_PKG_SILENT}${_PKG_DEBUG}${RM} -f ${WRKDIR_BASENAME} || $(TRUE)
 .else
 	${_PKG_SILENT}${_PKG_DEBUG}if [ -d ${WRKDIR} ]; then		\
 		if [ -w ${WRKDIR} ]; then				\