pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/flavor/pkg Remove the +BUILD_DEFS file before overw...
details: https://anonhg.NetBSD.org/pkgsrc/rev/33a61b4ca789
branches: trunk
changeset: 519728:33a61b4ca789
user: rillig <rillig%pkgsrc.org@localhost>
date: Sun Oct 08 20:25:43 2006 +0000
description:
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:
mk/flavor/pkg/metadata.mk | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (22 lines):
diff -r f3c10023bad8 -r 33a61b4ca789 mk/flavor/pkg/metadata.mk
--- a/mk/flavor/pkg/metadata.mk Sun Oct 08 20:24:03 2006 +0000
+++ b/mk/flavor/pkg/metadata.mk Sun Oct 08 20:25:43 2006 +0000
@@ -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 @@
${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
######################################################################
###
Home |
Main Index |
Thread Index |
Old Index