diff options
author | linimon <linimon@FreeBSD.org> | 2010-06-30 22:43:12 +0800 |
---|---|---|
committer | linimon <linimon@FreeBSD.org> | 2010-06-30 22:43:12 +0800 |
commit | f5ee807a4621d690437f7f70ebc7cb5a7689cf7a (patch) | |
tree | 852f36c489aeb26cfc17247e2403f97bfa89982b | |
parent | 393acf3032350b69078ebaba88986c53472ac05e (diff) | |
download | freebsd-ports-gnome-f5ee807a4621d690437f7f70ebc7cb5a7689cf7a.tar.gz freebsd-ports-gnome-f5ee807a4621d690437f7f70ebc7cb5a7689cf7a.tar.zst freebsd-ports-gnome-f5ee807a4621d690437f7f70ebc7cb5a7689cf7a.zip |
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
-rw-r--r-- | Tools/portbuild/scripts/buildenv | 35 |
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 } |