Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Feb 2016 20:39:12 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r295332 - user/cperciva/freebsd-update-build/scripts
Message-ID:  <201602052039.u15KdCLI050106@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: glebius
Date: Fri Feb  5 20:39:11 2016
New Revision: 295332
URL: https://svnweb.freebsd.org/changeset/base/295332

Log:
  We need the world.tgz regardless on what arch the build host runs.

Modified:
  user/cperciva/freebsd-update-build/scripts/build.subr

Modified: user/cperciva/freebsd-update-build/scripts/build.subr
==============================================================================
--- user/cperciva/freebsd-update-build/scripts/build.subr	Fri Feb  5 20:38:09 2016	(r295331)
+++ user/cperciva/freebsd-update-build/scripts/build.subr	Fri Feb  5 20:39:11 2016	(r295332)
@@ -349,30 +349,26 @@ extractiso () {
 		    tar -xpzf - -C ${WORKDIR}/release/R/trees/src/${C}
 	done
 
-	# If the release ISO we're handling belongs to the platform
-	# we're running right now, create a world image for future use.
-	if [ ${TARGET} = ${HOSTPLATFORM} ]; then
-		log "Constructing world+src image"
+	log "Constructing world+src image"
 
-		# Create directory for world
-		mkdir ${WORKDIR}/world/
+	# Create directory for world
+	mkdir ${WORKDIR}/world/
 
-		# Extract world and source distributions
-		for C in ${WORLDPARTS}; do
-			cat ${WORKDIR}/iso/usr/freebsd-dist/${C}.txz |
-			    tar -xpzf - -C ${WORKDIR}/world/
-		done
-		for C in ${SOURCEPARTS}; do
-			cat ${WORKDIR}/iso/usr/freebsd-dist/${C}.txz |
-			    tar -xpzf - -C ${WORKDIR}/world/
-		done
+	# Extract world and source distributions
+	for C in ${WORLDPARTS}; do
+		cat ${WORKDIR}/iso/usr/freebsd-dist/${C}.txz |
+		    tar -xpzf - -C ${WORKDIR}/world/
+	done
+	for C in ${SOURCEPARTS}; do
+		cat ${WORKDIR}/iso/usr/freebsd-dist/${C}.txz |
+		    tar -xpzf - -C ${WORKDIR}/world/
+	done
 
-		# build a single tarball of them.
-		tar -czf ${WORKDIR}/../world.tgz -C ${WORKDIR}/world .
+	# build a single tarball of them.
+	tar -czf ${WORKDIR}/../world.tgz -C ${WORKDIR}/world .
 
-		# clean up
-		nuke world
-	fi
+	# clean up
+	nuke world
 
 	# Unmount and detach the ISO image md(4).
 	umount ${WORKDIR}/iso



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