svn commit: r221148 - user/dougb/portmaster
Doug Barton
dougb at FreeBSD.org
Thu Apr 28 05:48:33 UTC 2011
Author: dougb
Date: Thu Apr 28 05:48:32 2011
New Revision: 221148
URL: http://svn.freebsd.org/changeset/base/221148
Log:
In the event that an invalid combination of configuration options causes
a port to be BROKEN, etc. it is useful to run --force-config and try again
Modified:
user/dougb/portmaster/portmaster
Modified: user/dougb/portmaster/portmaster
==============================================================================
--- user/dougb/portmaster/portmaster Thu Apr 28 03:33:12 2011 (r221147)
+++ user/dougb/portmaster/portmaster Thu Apr 28 05:48:32 2011 (r221148)
@@ -3116,9 +3116,17 @@ echo "===>>> Port directory: $pd/$portdi
if [ -n "$PM_FIRST_PASS" -a -z "$FETCH_ONLY" ]; then
if [ -z "$PM_INDEX_ONLY" ]; then
if ! check_state; then
- echo " ===>>> If you are sure you can build it, remove the"
- echo " $state line in the Makefile and try again."
- safe_exit 1
+ check_state_fail=check_state_fail
+ if [ -n "$PM_FORCE_CONFIG" ]; then
+ sleep 4
+ make_config
+ check_state && unset check_state_fail
+ fi
+ if [ -n "$check_state_fail" ]; then
+ echo " ===>>> If you are sure you can build it, remove the"
+ echo " $state line in the Makefile and try again."
+ safe_exit 1
+ fi
fi
fi
More information about the svn-src-user
mailing list