Index: user/nwhitehorn/condorports/stagebuildfiles.sh =================================================================== --- user/nwhitehorn/condorports/stagebuildfiles.sh (revision 267294) +++ user/nwhitehorn/condorports/stagebuildfiles.sh (revision 267295) @@ -1,56 +1,56 @@ #!/bin/sh # Build tarball of interesting subset of ports tree, relevant distfiles, # dependent packages? mkdir -p $(dirname $5) exec 2>&1 exec 1>$5.log set -e export UNAME_p=$3 export __MAKE_CONF=/dev/null export OSVERSION=$4 DISTHORDE=$6 export PORT_DBDIR=/var/empty export PORTSDIR=$7 export PACKAGE_BUILDING=1 +export LOCALBASE=/var/empty +export CLEAN_FETCH_ENV=1 # Fetch distfiles if unfetched cd $1 make -d e -DBATCH checksum DISTDIR=$DISTHORDE make -d e -DBATCH package-links PACKAGES=$2 mkdir -p $2/All - -export LOCALBASE=/var/empty # Delay this since make checksum and package-links depend on pkg # Make a tarball containing all the bits we need to build: the distfiles, # relevant sections of the ports tree, all dependent packages # Need POST script to clean up TARBALL=$5 mkdir -p $(dirname $TARBALL) # Find distfiles DIST_SUBDIR=$DISTHORDE/$(make -V DIST_SUBDIR) ALLFILES=$(for f in `make -V ALLFILES`; do echo $DIST_SUBDIR/$f; done) # Find packages DEPENDS=`make all-depends-list` PKGLIST=$(for x in $DEPENDS; do make -C $x PACKAGES=$2 -V PKGFILE; done) rm -rf $TARBALL-dir mkdir -p $TARBALL-dir/packages $TARBALL-dir/distfiles/$(make -V DIST_SUBDIR) if [ -n "$ALLFILES" ]; then ln -s $ALLFILES $TARBALL-dir/distfiles/$(make -V DIST_SUBDIR) fi if [ -n "$PKGLIST" ]; then ln -s $PKGLIST $TARBALL-dir/packages fi echo 'Building tarball' tar -c -C $TARBALL-dir -v -L -f $TARBALL distfiles packages rm -rf $TARBALL-dir set +e rm $5.log