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.
This commit is contained in:
Will Andrews 2013-08-27 04:42:42 +00:00
parent 3c9657753e
commit 0ca8e70cb0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=254951

View File

@ -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 () {