diff options
author | rillig <rillig@pkgsrc.org> | 2006-10-08 20:25:43 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2006-10-08 20:25:43 +0000 |
commit | b52b81957abad61a5b62367d9e1dd83684754dc5 (patch) | |
tree | 6e25e642c0c39816fce8f85609ff4bb74d388e52 /mk | |
parent | 28003a7775586ff73d03782006e2246a5da8e650 (diff) | |
download | pkgsrc-b52b81957abad61a5b62367d9e1dd83684754dc5.tar.gz |
Remove the +BUILD_DEFS file before overwriting it. This is necessary to
allow most of the packages to be created as unprivileged user, since the
+BUILD_DEFS file is created by the privileged user in the "install"
phase.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/flavor/pkg/metadata.mk | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/mk/flavor/pkg/metadata.mk b/mk/flavor/pkg/metadata.mk index fd057d7328f..17576364edd 100644 --- a/mk/flavor/pkg/metadata.mk +++ b/mk/flavor/pkg/metadata.mk @@ -1,4 +1,4 @@ -# $NetBSD: metadata.mk,v 1.10 2006/08/04 14:11:29 reed Exp $ +# $NetBSD: metadata.mk,v 1.11 2006/10/08 20:25:43 rillig Exp $ ###################################################################### ### The targets below are all PRIVATE. @@ -93,8 +93,10 @@ ${_BUILD_INFO_FILE}: plist ${ECHO} "REQUIRES=$$req" >> ${.TARGET}.tmp; \ done .endif - ${_PKG_SILENT}${_PKG_DEBUG} \ - ${SORT} ${.TARGET}.tmp > ${.TARGET} && ${RM} -f ${.TARGET}.tmp + ${_PKG_SILENT}${_PKG_DEBUG} set -e; \ + rm -f ${.TARGET}; \ + sort ${.TARGET}.tmp > ${.TARGET}; \ + rm -f ${.TARGET}.tmp ###################################################################### ### |