pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/check Since 2006/10/09 the ${PLIST} file does not c...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1771f142baf7
branches:  trunk
changeset: 520173:1771f142baf7
user:      seb <seb%pkgsrc.org@localhost>
date:      Mon Oct 16 19:02:53 2006 +0000

description:
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:

 mk/check/check-wrkref.mk |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 65872d4309ee -r 1771f142baf7 mk/check/check-wrkref.mk
--- a/mk/check/check-wrkref.mk  Mon Oct 16 18:20:29 2006 +0000
+++ b/mk/check/check-wrkref.mk  Mon Oct 16 19:02:53 2006 +0000
@@ -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 @@
        ${_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 @@
                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"; \



Home | Main Index | Thread Index | Old Index