pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk Allow CONFIG_STATUS_OVERRIDE to override config.sta...
details: https://anonhg.NetBSD.org/pkgsrc/rev/52b9107a858b
branches: trunk
changeset: 466494:52b9107a858b
user: jlam <jlam%pkgsrc.org@localhost>
date: Mon Jan 19 15:04:05 2004 +0000
description:
Allow CONFIG_STATUS_OVERRIDE to override config.status scripts generated
by GNU configure scripts at CONFIGURE_POSTREQ time. The new config.status
scripts merely return success. This prevents newer Makefiles from
re-running the configure script with the wrong shell environment if we've
touched some GNU autotool-related files during the patch stage.
We might want to always do this, i.e. make this opt-out instead of opt-in.
However, we start with opt-in so that no existing packages can break.
diffstat:
mk/bsd.pkg.mk | 16 +++++++++++++++-
1 files changed, 15 insertions(+), 1 deletions(-)
diffs (30 lines):
diff -r 7511901d06b7 -r 52b9107a858b mk/bsd.pkg.mk
--- a/mk/bsd.pkg.mk Mon Jan 19 14:54:26 2004 +0000
+++ b/mk/bsd.pkg.mk Mon Jan 19 15:04:05 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1347 2004/01/19 14:54:26 jlam Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1348 2004/01/19 15:04:05 jlam Exp $
#
# This file is in the public domain.
#
@@ -2401,6 +2401,20 @@
. endif
.endif
+.if defined(CONFIG_STATUS_OVERRIDE)
+_CONFIGURE_POSTREQ+= do-config-status-override
+.PHONY: do-config-status-override
+do-config-status-override:
+. for file in ${CONFIG_STATUS_OVERRIDE}
+ ${_PKG_SILENT}${_PKG_DEBUG} \
+ if [ -f ${file} ]; then \
+ ${RM} -f ${file}; \
+ ( ${ECHO} '#!${SH}'; ${ECHO} 'exit 0' ) > ${file}; \
+ ${CHMOD} +x ${file}; \
+ fi
+. endfor
+.endif
+
.PHONY: post-configure
post-configure: ${_CONFIGURE_POSTREQ}
Home |
Main Index |
Thread Index |
Old Index