svn commit: r228427 - projects/portbuild/scripts
Mark Linimon
linimon at FreeBSD.org
Sun Dec 11 21:26:50 UTC 2011
Author: linimon (doc,ports committer)
Date: Sun Dec 11 21:26:49 2011
New Revision: 228427
URL: http://svn.freebsd.org/changeset/base/228427
Log:
Add a new parameter, -unlimited-errors, that defeats the "qmanager
threshhold" check for runaway builds. You want this primarily when
doing a -restart of a build that you expect to mostly fail, or perhaps
a -trybroken run. By default, the threshhold check is done.
Modified:
projects/portbuild/scripts/dopackages
Modified: projects/portbuild/scripts/dopackages
==============================================================================
--- projects/portbuild/scripts/dopackages Sun Dec 11 21:10:11 2011 (r228426)
+++ projects/portbuild/scripts/dopackages Sun Dec 11 21:26:49 2011 (r228427)
@@ -38,6 +38,7 @@ usage () {
echo " -fetch-original : Fetch from original MASTER_SITE"
echo " -cdrom : Prepare a build for distribution on CDROM "
echo " -trybroken : Try to build BROKEN ports"
+ echo " -unlimited-errors : Keep building ports no matter what percentage fail"
echo " -target <file> : Build ports listed in file, rather than the whole ports tree"
exit 1
@@ -242,7 +243,11 @@ dobuild() {
echo "================================================"
echo "started at $(date)"
start=$(date +%s)
- ${pbc}/qmanager/packagebuild ${arch} ${branch} ${buildid} > ${builddir}/${journalname} 2>&1 < /dev/null
+ qm_args=""
+ if [ "${unlimited_errors}" -eq 1 ]; then
+ qm_args=" -unlimited-errors"
+ fi
+ ${pbc}/qmanager/packagebuild ${arch} ${branch} ${buildid} > ${builddir}/${journalname} ${qm_args} 2>&1 < /dev/null
result=$?
if [ $result -ne 0 ]; then
echo "ERROR: packagebuild ${arch} ${branch} ${buildid} failed: see ${builddir}/${journalname} for details"
@@ -294,6 +299,7 @@ trybroken=0
incremental=0
keep=0
nocleanup=0
+unlimited_errors=0
# optional arguments
while [ $# -gt 0 ]; do
@@ -362,6 +368,9 @@ while [ $# -gt 0 ]; do
x-nocleanup)
nocleanup=1
;;
+ x-unlimited-errors)
+ unlimited_errors=1
+ ;;
x-target)
shift
target=$(realpath $1)
More information about the svn-src-projects
mailing list