diff options
author | dougb <dougb@FreeBSD.org> | 2006-08-23 13:45:44 +0800 |
---|---|---|
committer | dougb <dougb@FreeBSD.org> | 2006-08-23 13:45:44 +0800 |
commit | b6dc0abad20a13ac83ad40c0250188f5ab5918ad (patch) | |
tree | ee4822e353aa276d1bd88061a99612c1a3da52bf | |
parent | 52c5d076f0347137cb92d96c7205373302a09e13 (diff) | |
download | freebsd-ports-gnome-b6dc0abad20a13ac83ad40c0250188f5ab5918ad.tar.gz freebsd-ports-gnome-b6dc0abad20a13ac83ad40c0250188f5ab5918ad.tar.zst freebsd-ports-gnome-b6dc0abad20a13ac83ad40c0250188f5ab5918ad.zip |
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
-rw-r--r-- | ports-mgmt/portmaster/files/portmaster.sh.in | 24 | ||||
-rw-r--r-- | sysutils/portmaster/files/portmaster.sh.in | 24 |
2 files changed, 38 insertions, 10 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 '' diff --git a/sysutils/portmaster/files/portmaster.sh.in b/sysutils/portmaster/files/portmaster.sh.in index 4b9468da4c25..6840aff9e99e 100644 --- a/sysutils/portmaster/files/portmaster.sh.in +++ b/sysutils/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 '' |