From c6ea71472091082869ee81ba8abedd61e1627a5f Mon Sep 17 00:00:00 2001 From: seb Date: Mon, 16 Oct 2006 19:02:53 +0000 Subject: 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... --- mk/check/check-wrkref.mk | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mk') 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"; \ -- cgit v1.2.3