summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorseb <seb>2006-10-16 19:02:53 +0000
committerseb <seb>2006-10-16 19:02:53 +0000
commitc6ea71472091082869ee81ba8abedd61e1627a5f (patch)
treeaef671627f92a978edbe0f7d0f8b825246458779 /mk
parent578b5928e1e6f93397bcfff2f17bef09ba4ed175 (diff)
downloadpkgsrc-c6ea71472091082869ee81ba8abedd61e1627a5f.tar.gz
Since 2006/10/09 the ${PLIST} file does not contain the full
pathnames anymore. Therefore cd to ${PREFIX} to correctly resolve the relative pathnames. While here unbreak CHECK_WRKREF for another reason: Append to ${ERROR_DIR}/${.TARGET} otherwise the "_NONZERO_FILESIZE_P" check is always false...
Diffstat (limited to 'mk')
-rw-r--r--mk/check/check-wrkref.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/mk/check/check-wrkref.mk b/mk/check/check-wrkref.mk
index 72d3636273b..b1ba80e702e 100644
--- a/mk/check/check-wrkref.mk
+++ b/mk/check/check-wrkref.mk
@@ -1,4 +1,4 @@
-# $NetBSD: check-wrkref.mk,v 1.5 2006/10/09 12:25:44 joerg Exp $
+# $NetBSD: check-wrkref.mk,v 1.6 2006/10/16 19:02:53 seb Exp $
.if defined(PKG_DEVELOPER)
CHECK_WRKREF?= tools
@@ -45,6 +45,7 @@ check-wrkref: error-check
${_PKG_SILENT}${_PKG_DEBUG}${RM} -f ${ERROR_DIR}/${.TARGET}
${_PKG_SILENT}${_PKG_DEBUG} \
exec 1>${ERROR_DIR}/${.TARGET}; \
+ cd ${PREFIX}; \
${_CHECK_WRKREF_FILELIST_CMD} | ${SORT} | \
while read file; do \
${_CHECK_WRKREF_SKIP_FILTER}; \
@@ -63,7 +64,7 @@ check-wrkref: error-check
esac; \
done
${_PKG_SILENT}${_PKG_DEBUG} \
- exec 1>${ERROR_DIR}/${.TARGET}; \
+ exec 1>>${ERROR_DIR}/${.TARGET}; \
if ${_NONZERO_FILESIZE_P} ${ERROR_DIR}/${.TARGET}; then \
${ECHO} "*** The above files still have references to the build directory."; \
${ECHO} " This is possibly an error that should be fixed by unwrapping"; \