summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorseb <seb@pkgsrc.org>2006-10-16 19:02:53 +0000
committerseb <seb@pkgsrc.org>2006-10-16 19:02:53 +0000
commit24fa002d660e698f778816b300b21932554d0978 (patch)
treeaef671627f92a978edbe0f7d0f8b825246458779 /mk
parentb4b72659fdec22684a6d4a648b68ea6cc67a48a7 (diff)
downloadpkgsrc-24fa002d660e698f778816b300b21932554d0978.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"; \