summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authoragc <agc>1999-08-04 13:49:02 +0000
committeragc <agc>1999-08-04 13:49:02 +0000
commit54b1d01148575025d651783c55323351d440b53b (patch)
tree310f785296dd755e069c501d3e58e3bfc6fb63ae /mk
parente85dd59b4845b1f75fbd8ce58b52fa459d889de2 (diff)
downloadpkgsrc-54b1d01148575025d651783c55323351d440b53b.tar.gz
Ignore result of ${RM} command in do-extract target - the original ${LN} -fs
command was split into two specific commands: ${RM} -f, then ${LN} -s, for Solaris ln(1) behaviour, and, as pointed out by Julian Coleman, this can have an unfortunate side-effect on read-only filesystems.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 26e8d13931a..9678d6d9785 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.307 1999/07/28 10:58:30 agc Exp $
+# $NetBSD: bsd.pkg.mk,v 1.308 1999/08/04 13:49:02 agc Exp $
#
# This file is in the public domain.
#
@@ -967,7 +967,7 @@ do-extract:
${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${WRKDIR}
.ifdef WRKOBJDIR
${_PKG_SILENT}${_PKG_DEBUG} \
- ${RM} -f ${WRKDIR_BASENAME}; \
+ ${RM} -f ${WRKDIR_BASENAME} || ${TRUE}; \
if ${LN} -s ${WRKDIR} ${WRKDIR_BASENAME} 2>/dev/null; then \
${ECHO} "${WRKDIR_BASENAME} -> ${WRKDIR}"; \
fi