Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Oct 2013 13:06:50 +0000 (UTC)
From:      Chris Rees <crees@FreeBSD.org>
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
Message-ID:  <201310131306.r9DD6oZx058192@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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})



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310131306.r9DD6oZx058192>