From owner-svn-ports-head@FreeBSD.ORG Sun Oct 13 13:06:51 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 1FE9E905; Sun, 13 Oct 2013 13:06:51 +0000 (UTC) (envelope-from crees@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id F2D8C22E6; Sun, 13 Oct 2013 13:06:50 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r9DD6oFu058195; Sun, 13 Oct 2013 13:06:50 GMT (envelope-from crees@svn.freebsd.org) Received: (from crees@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r9DD6oZx058192; Sun, 13 Oct 2013 13:06:50 GMT (envelope-from crees@svn.freebsd.org) Message-Id: <201310131306.r9DD6oZx058192@svn.freebsd.org> From: Chris Rees Date: Sun, 13 Oct 2013 13:06:50 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r330228 - in head/ports-mgmt/tinderbox: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Oct 2013 13:06:51 -0000 Author: crees Date: Sun Oct 13 13:06:50 2013 New Revision: 330228 URL: http://svnweb.freebsd.org/changeset/ports/330228 Log: Fix chroot SRCBASE more reliably Modified: head/ports-mgmt/tinderbox/Makefile head/ports-mgmt/tinderbox/files/patch-chroot Modified: head/ports-mgmt/tinderbox/Makefile ============================================================================== --- head/ports-mgmt/tinderbox/Makefile Sun Oct 13 13:03:03 2013 (r330227) +++ head/ports-mgmt/tinderbox/Makefile Sun Oct 13 13:06:50 2013 (r330228) @@ -3,7 +3,7 @@ PORTNAME= tinderbox PORTVERSION= 4.0.1 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= ports-mgmt MASTER_SITES= http://tinderbox.marcuscom.com/ \ http://T32.TecNik93.com/FreeBSD/ports/${PORTNAME}/sources/ Modified: head/ports-mgmt/tinderbox/files/patch-chroot ============================================================================== --- head/ports-mgmt/tinderbox/files/patch-chroot Sun Oct 13 13:03:03 2013 (r330227) +++ head/ports-mgmt/tinderbox/files/patch-chroot Sun Oct 13 13:06:50 2013 (r330228) @@ -363,6 +363,7 @@ diff -u -r1.176 tc_command.sh } addPortToBuild () { + ? .fslckout ? .fslckout-mjFA3F63973 Index: lib/tc_command.sh @@ -371,40 +372,34 @@ RCS file: /space/cvs/marcuscom-cvs/ports retrieving revision 1.177 diff -u -r1.177 tc_command.sh --- lib/tc_command.sh 8 Oct 2013 16:06:48 -0000 1.177 -+++ lib/tc_command.sh 12 Oct 2013 11:27:28 -0000 -@@ -1973,6 +1973,8 @@ - # Need to do this in a subshell so as to only hide the host - # environment during makefile creation - ( -+ # Everything is done in chroot, so SRCBASE is relative to / -+ export SRCBASE=/usr/src - export PORTBUILD_ARGS="$(echo ${pbargs})" - buildenvNoHost ${build} - buildenv ${jail} ${portstree} ${build} -@@ -2102,6 +2104,8 @@ - if [ -n "${SRCBASE}" ]; then - save_SRCBASE=${SRCBASE} - fi -+ # Everything is done in chroot, so SRCBASE is relative to / -+ export SRCBASE=/usr/src ++++ lib/tc_command.sh 13 Oct 2013 12:54:19 -0000 +@@ -1418,6 +1418,10 @@ + # Finalize environment + cp /etc/resolv.conf ${BUILD_DIR}/etc || touch ${BUILD_DIR}/etc/resolv.conf + ++ # This works around the SRCBASE issue... this needs fixing properly ++ mkdir -p ${BUILD_DIR}/${SRCBASE%/*} ++ ln -s ${BUILD_DIR}/usr/src ${BUILD_DIR}/${SRCBASE} ++ + return 0 + } - buildenv ${jail} ${portsTree} ${build} - buildenvNoHost ${build} Index: lib/tinderlib.sh =================================================================== RCS file: /space/cvs/marcuscom-cvs/portstools/tinderbox/lib/tinderlib.sh,v retrieving revision 1.85 diff -u -r1.85 tinderlib.sh --- lib/tinderlib.sh 7 Oct 2013 16:36:54 -0000 1.85 -+++ lib/tinderlib.sh 12 Oct 2013 11:27:29 -0000 -@@ -506,7 +506,9 @@ ++++ lib/tinderlib.sh 13 Oct 2013 12:54:19 -0000 +@@ -506,7 +506,10 @@ save_IFS=${IFS} IFS=' ' - # Do not set SRCBASE here-- we use chroots nowadays so /usr/src is there ++ + # Allow SRCBASE to be overridden + eval "export SRCBASE=${SRCBASE:-`realpath $(tinderLoc jail ${jail})/src`}" \ -+ >/dev/null 2>&1 ++ >/dev/null 2>&1 # Set ARCH (needed for cross-building) export ARCH=$(${tc} getJailArch -j ${jail})