[PC-BSD Commits] r8085 - pcbsd/current/src-sh/pbi-manager

svn at pcbsd.org svn at pcbsd.org
Mon Nov 29 17:00:41 PST 2010


Author: kris
Date: 2010-11-29 17:00:41 -0800 (Mon, 29 Nov 2010)
New Revision: 8085

Modified:
   pcbsd/current/src-sh/pbi-manager/pbi-manager
Log:

Updated pbi-manager, to make sure freebsd sources get put in right location
with all .svn cruft



Modified: pcbsd/current/src-sh/pbi-manager/pbi-manager
===================================================================
--- pcbsd/current/src-sh/pbi-manager/pbi-manager	2010-11-29 21:09:48 UTC (rev 8084)
+++ pcbsd/current/src-sh/pbi-manager/pbi-manager	2010-11-30 01:00:41 UTC (rev 8085)
@@ -4800,7 +4800,10 @@
 		exit_err "Buildworld failed! Logfile saved: ${PBI_BUILDLOG}"
 	fi
 
-	cp -R ${PBI_BUILDSRC} ${PBI_BUILDTARGET}/usr/src
+	# Copy the source since some ports need kern sources
+	echo "Copying FreeBSD sources to chroot environment"
+	mkdir -p ${PBI_BUILDTARGET}/usr/src >/dev/null 2>/dev/null
+	tar cvf - -C "${PBI_BUILDSRC}" --exclude "\.svn/" . 2>/dev/null | tar xvf - -C "${PBI_BUILDTARGET}/usr/src" 2>/dev/null
 
 	echo "Creating chroot environment tarball"
 	tar cvjf ${PBI_CHROOTFILE} -C ${PBI_BUILDTARGET} . >>${PBI_BUILDLOG} 2>>${PBI_BUILDLOG}



More information about the Commits mailing list