summaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorMark Linimon <linimon@FreeBSD.org>2010-06-30 14:43:12 +0000
committerMark Linimon <linimon@FreeBSD.org>2010-06-30 14:43:12 +0000
commitbc2d32d59528c4ba2b9c8d345798d4a81a57bbbd (patch)
tree935a10b52338a8d7ab8ca3ee59ef63ca46d3f719 /Tools
parent- Update to 2.4. (diff)
The previous refactoring was too agressive. SRCBASE and friends are used
on both the client side and server side. Pointy hat to: self Feature safe: yes
Notes
Notes: svn path=/head/; revision=257210
Diffstat (limited to 'Tools')
-rw-r--r--Tools/portbuild/scripts/buildenv35
1 files changed, 20 insertions, 15 deletions
diff --git a/Tools/portbuild/scripts/buildenv b/Tools/portbuild/scripts/buildenv
index 5cba30d99068..4d3e9dee6222 100644
--- a/Tools/portbuild/scripts/buildenv
+++ b/Tools/portbuild/scripts/buildenv
@@ -71,20 +71,7 @@ buildenv () {
branch=$3
builddir=$4
- buildenv.common ${pb} ${arch}
-
- # Have to use realpath because 'make index' doesn't deal with
- # symlinks in PORTSDIR - kk 020311
- if [ -d ${builddir}/ports/ ]; then
- export PORTSDIR=$(realpath ${builddir}/ports)
- else
- export PORTSDIR=/nonexistent
- fi
- if [ -d ${builddir}/src/ ]; then
- export SRCBASE=$(realpath ${builddir}/src)
- else
- export SRCBASE=/nonexistent
- fi
+ buildenv.common ${pb} ${arch} ${branch} ${builddir}
# override things destined for bsd.port.mk
export LOCALBASE=/usr/local
@@ -113,8 +100,10 @@ buildenv () {
buildenv.client() {
pb=$1
arch=$2
+ branch=$3
+ builddir=$4
- buildenv.common ${pb} ${arch}
+ buildenv.common ${pb} ${arch} ${branch} ${builddir}
# Don't pick up host OPTIONS
export PORT_DBDIR=/nonexistent
@@ -134,6 +123,21 @@ buildenv.client() {
buildenv.common() {
pb=$1
arch=$2
+ branch=$3
+ builddir=$4
+
+ # Have to use realpath because 'make index' doesn't deal with
+ # symlinks in PORTSDIR - kk 020311
+ if [ -d ${builddir}/ports/ ]; then
+ export PORTSDIR=$(realpath ${builddir}/ports)
+ else
+ export PORTSDIR=/nonexistent
+ fi
+ if [ -d ${builddir}/src/ ]; then
+ export SRCBASE=$(realpath ${builddir}/src)
+ else
+ export SRCBASE=/nonexistent
+ fi
if [ -f ${SRCBASE}/sys/sys/param.h ]; then
export OSVERSION=$(awk '/^#define __FreeBSD_version/ {print $3}' < ${SRCBASE}/sys/sys/param.h)
@@ -147,4 +151,5 @@ buildenv.common() {
export MACHINE_ARCH=${arch}
export BATCH=1
+ export PACKAGE_BUILDING=1
}