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 | 5920d66c36299e123254c3cf827b6c18116a8b3d (patch) | |
tree | 6e25e642c0c39816fce8f85609ff4bb74d388e52 /mk | |
parent | bd28a894fdab8732b238155548941e99a1fd6f0c (diff) | |
download | pkgsrc-5920d66c36299e123254c3cf827b6c18116a8b3d.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 ###################################################################### ### |