Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Aug 2013 04:42:42 +0000 (UTC)
From:      Will Andrews <will@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r254951 - head/release/scripts
Message-ID:  <201308270442.r7R4ggch086248@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: will
Date: Tue Aug 27 04:42:42 2013
New Revision: 254951
URL: http://svnweb.freebsd.org/changeset/base/254951

Log:
  Fix 'make release' on older hosts: use buildworld legacy utilities.
  
  Newer FreeBSD installs require an install(1) that supports the new flags.
  
  This adds ${MAKEOBJDIRPREFIX}${.CURDIR}/tmp/legacy/{bin,usr/{bin,sbin}}
  to the PATH while generating an mtree database for 'make release'.
  
  Note that the problem only exists here because mm-mtree.sh generates
  its own object tree to avoid mucking with the existing one, which
  results in a PATH containing legacy utility dirs that are empty.

Modified:
  head/release/scripts/mm-mtree.sh

Modified: head/release/scripts/mm-mtree.sh
==============================================================================
--- head/release/scripts/mm-mtree.sh	Tue Aug 27 04:05:18 2013	(r254950)
+++ head/release/scripts/mm-mtree.sh	Tue Aug 27 04:42:42 2013	(r254951)
@@ -81,6 +81,11 @@ if [ ! -f ${SOURCEDIR}/Makefile.inc1 -a 
 fi
 
 # Setup make to use system files from SOURCEDIR
+objp=${MAKEOBJDIRPREFIX}
+[ -z "${objp}" ] && objp=/usr/obj
+legacydir=${objp}${SOURCEDIR}/tmp/legacy
+legacypath=${legacydir}/usr/sbin:${legacydir}/usr/bin:${legacydir}/bin
+MM_MAKE_ARGS="${MM_MAKE_ARGS} PATH=${legacypath}:${PATH}"
 MM_MAKE="make ${ARCHSTRING} ${MM_MAKE_ARGS} -m ${SOURCEDIR}/share/mk"
 
 delete_temproot () {



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