mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-12 07:27:57 +00:00
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
This commit is contained in:
parent
c21f5cae29
commit
07a24c904b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=171243
@ -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 ''
|
||||
|
@ -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 ''
|
||||
|
Loading…
Reference in New Issue
Block a user