From owner-svn-src-user@freebsd.org Fri Feb 5 20:39:13 2016 Return-Path: Delivered-To: svn-src-user@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6D7F6A9C1DB for ; Fri, 5 Feb 2016 20:39:13 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 253BC1A83; Fri, 5 Feb 2016 20:39:13 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u15KdCMf050107; Fri, 5 Feb 2016 20:39:12 GMT (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u15KdCLI050106; Fri, 5 Feb 2016 20:39:12 GMT (envelope-from glebius@FreeBSD.org) Message-Id: <201602052039.u15KdCLI050106@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: glebius set sender to glebius@FreeBSD.org using -f From: Gleb Smirnoff Date: Fri, 5 Feb 2016 20:39:12 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r295332 - user/cperciva/freebsd-update-build/scripts X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Feb 2016 20:39:13 -0000 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