summaryrefslogtreecommitdiff
path: root/ports-mgmt/portmaster
diff options
context:
space:
mode:
authorDoug Barton <dougb@FreeBSD.org>2006-08-23 05:45:44 +0000
committerDoug Barton <dougb@FreeBSD.org>2006-08-23 05:45:44 +0000
commit07a24c904bedb73f30ad921d79eb5a1ae15e90cc (patch)
tree096eb96338990ff6b681e1f32e333209ab1c6067 /ports-mgmt/portmaster
parentSupport code for editing reStructuredText with Emacs. (diff)
New Feature
=========== If a port is marked IGNORE, don't do all the dependency/checksum work, instead bomb out with a helpful message Minor Fixes =========== 1. Add some whitespace to make the "dependency check complete" message stand out better 2. Tell the user when we start pkg_delete in -s mode, just like in -e Bug Fixes ========= 1. Export MAKE_ARGS so that the child checksum processes can see them 2. Move the "just in case" cd back to $portdir up one line so it's before 'make clean', just in case
Notes
Notes: svn path=/head/; revision=171243
Diffstat (limited to 'ports-mgmt/portmaster')
-rw-r--r--ports-mgmt/portmaster/files/portmaster.sh.in24
1 files changed, 19 insertions, 5 deletions
diff --git a/ports-mgmt/portmaster/files/portmaster.sh.in b/ports-mgmt/portmaster/files/portmaster.sh.in
index 4b9468da4c25..6840aff9e99e 100644
--- a/ports-mgmt/portmaster/files/portmaster.sh.in
+++ b/ports-mgmt/portmaster/files/portmaster.sh.in
@@ -1,6 +1,6 @@
#!/bin/sh
-# Local version: 1.110
+# Local version: 1.112
# $FreeBSD$
# Copyright (c) 2005-2006 Douglas Barton, All rights reserved
@@ -521,6 +521,7 @@ dependency_check () {
echo "===>>> Recursive 'make config' check complete for $portdir"
else
echo "===>>> Dependency check complete for $portdir"
+ echo ''
fi
}
@@ -677,7 +678,10 @@ while getopts 'CDGLabde:fghilm:nop:r:suv' COMMAND_LINE_ARGUMENT ; do
h) usage 0 ;;
i) INTERACTIVE_UPDATE=yes; ARGS="-i $ARGS" ;;
l) LIST=yes ;;
- m) MAKE_ARGS=$OPTARG; ARGS="-m $MAKE_ARGS $ARGS" ;;
+ m) MAKE_ARGS=$OPTARG
+ export MAKE_ARGS # For 'make checksum'
+ ARGS="-m $MAKE_ARGS $ARGS"
+ ;;
n) NO_ACTION=yes ;;
o) REPLACE_ORIGIN=yes ;;
p) portdir="${OPTARG#$pd/}" ;;
@@ -791,6 +795,7 @@ if [ -n "$CLEAN_STALE" ]; then
case "$YESNO" in
[yY]) [ -n "$BACKUP" ] && backup_package $iport
+ echo "===>>> Running pkg_delete -f $iport"
pkg_delete -f ${iport}
if [ -z "$DONT_SCRUB_DISTFILES" ]; then
delete_all_distfiles $origin
@@ -1001,6 +1006,15 @@ fi
cd $pd/$portdir || usage
+ignore=`make -V IGNORE`
+if [ -n "$ignore" ]; then
+ echo "===>>> This port is marked IGNORE:"
+ echo "===>>> $portdir $ignore"
+ echo "===>>> If you are sure you can build the port successfully,"
+ echo " remove the IGNORE line in the Makefile and try again."
+ safe_exit 1
+fi
+
if [ -n "$CONFIG_ONLY" ]; then
echo "===>>> Launching 'make checksum' for $portdir in background"
fetchlog=`mktemp -t fetchlog-${PARENT_PID}-${portdir##*/}`
@@ -1090,13 +1104,13 @@ if [ -n "$NO_ACTION" ]; then
safe_exit
fi
+# In case we went elsewhere in the dependency check
+cd $pd/$portdir
+
case "$DONT_PRE_CLEAN" in
'') make $MAKE_ARGS clean NOCLEANDEPENDS=yes || fail 'make clean failed' ;;
esac
-# In case we went elsewhere in the dependency check
-cd $pd/$portdir
-
fl_read=`echo ${TMPDIR:-/tmp}/fetchlog-${PARENT_PID}-${portdir##*/}.*`
while [ -f "$fl_read" ]; do
echo ''