aboutsummaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/portbuild/scripts/dopackages6
-rwxr-xr-xTools/portbuild/scripts/makeworld12
-rwxr-xr-xTools/portbuild/scripts/portbuild7
3 files changed, 16 insertions, 9 deletions
diff --git a/Tools/portbuild/scripts/dopackages b/Tools/portbuild/scripts/dopackages
index 2dbe6388d2fa..2288565a06db 100755
--- a/Tools/portbuild/scripts/dopackages
+++ b/Tools/portbuild/scripts/dopackages
@@ -52,6 +52,7 @@ datestamp=$4
shift 4
. ${pb}/conf/server.conf
+. ${pb}/conf/common.conf
. ${pb}/scripts/buildenv
validate_env ${arch} ${branch} || usage
@@ -479,9 +480,9 @@ if [ "$skipstart" = 0 ]; then
if [ ${nosrc} -eq 0 ]; then
if [ -L ${builddir}/src -o ${srccvs} -eq 1 ]; then
echo "================================================"
- echo "running cvs update -PAd on ${SRCBASE}"
+ echo "running cvs update -PAd on ${SRC_BASE}"
echo "================================================"
- cd ${SRCBASE}
+ cd ${SRC_BASE}
if [ -z "${updated}" ]; then
# Don't overwrite/create .updated if we didn't set it
# with the ports update
@@ -557,6 +558,7 @@ if [ "$skipstart" = 0 ]; then
olderrors=$(readlink ${builddir}/errors)
oldlogs=$(readlink ${builddir}/logs)
+ # XXX MCL hardcoding of archive/errorlogs
newerrors=${pb}/${arch}/archive/errorlogs/e.${branch}.${buildid}
newlogs=${pb}/${arch}/archive/errorlogs/a.${branch}.${buildid}
diff --git a/Tools/portbuild/scripts/makeworld b/Tools/portbuild/scripts/makeworld
index d07f6f65f90d..d04641d59062 100755
--- a/Tools/portbuild/scripts/makeworld
+++ b/Tools/portbuild/scripts/makeworld
@@ -4,9 +4,6 @@
# XXX lockfile and interlock with mkbindist to avoid overlapping
# builds
-pb=/var/portbuild
-. ${pb}/conf/server.conf
-
if [ $# -lt 3 ]; then
echo "usage: makeworld arch branch buildid [args]"
exit 1
@@ -17,9 +14,12 @@ branch=$2
buildid=$3
shift 3
+pb=/var/portbuild
+
builddir=${pb}/${arch}/${branch}/builds/${buildid}
. ${pb}/conf/server.conf
+. ${pb}/conf/common.conf
. ${pb}/${arch}/portbuild.conf
# NB: we can't use buildenv because it sets ARCH and MACHINE_ARCH that
# confuses cross-builds
@@ -49,13 +49,13 @@ done
# XXX MCL I don't know what this is supposed to do.
if [ "$client" = "1" ]; then
- SRCBASE=${pb}/${arch}/src-client
+ SRC_BASE=${pb}/${arch}/src-client
shift 1
else
- SRCBASE=${builddir}/src
+ SRC_BASE=${builddir}/src
export __MAKE_CONF=/dev/null
fi
-cd ${SRCBASE}
+cd ${SRC_BASE}
if [ "$nocvs" = "0" ]; then
echo "==> Updating source tree"
diff --git a/Tools/portbuild/scripts/portbuild b/Tools/portbuild/scripts/portbuild
index 692bf234e3f7..24896a065ce5 100755
--- a/Tools/portbuild/scripts/portbuild
+++ b/Tools/portbuild/scripts/portbuild
@@ -65,6 +65,7 @@ shift 4
nice=0
. ${pb}/${arch}/client.conf
+. ${pb}/${arch}/common.conf
# note: should NOT need anything from server.conf
. ${pb}/${arch}/portbuild.conf
. ${pb}/${arch}/portbuild.$(hostname)
@@ -117,6 +118,9 @@ BD=$4
RD=$5
builddir=${pb}/${arch}/${branch}/builds/${buildid}
+
+# has to be here to affect the setup of OSVERSION and BRANCH in buildenv.client
+export SRC_BASE=${CLIENT_SRCBASE}
buildenv.client ${pb} ${arch} ${branch} ${builddir}
# Want to use the /etc/make.conf in the chroot
@@ -141,7 +145,6 @@ export PACKAGES=${CLIENT_PACKAGES_LOCATION}
# don't pass -j, -k etc. to sub-makes
unset MAKEFLAGS
unset PORTSDIR
-export SRCBASE=${CLIENT_SRCBASE}
# wait 2 hours before killing build with no output
export BUILD_TIMEOUT=${CLIENT_BUILD_TIMEOUT}
@@ -275,11 +278,13 @@ done
set x $ED $FD $PD $BD $RD
shift 1
while [ $# -gt 0 ]; do
+ # XXX MCL more hard-coding
if [ ! -f ${chroot}/tmp/depends/$1 ]; then
echo "copying package $1 for ${pkgname}"
copypkg ${pb} ${CLIENT_UPLOAD_HOST} $1 ${chroot}/tmp/depends "${http_proxy}"
# Test for copy failure and bail
+ # XXX MCL more hard-coding
if [ ! -f ${chroot}/tmp/depends/$1 ]; then
echo "ERROR: Couldn't copy $1" | tee -a ${chroot}/tmp/${pkgname}.log
bailout ${chroot} ${clean} 255 ${pkgname}