mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-14 14:55:41 +00:00
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:
parent
3c9657753e
commit
0ca8e70cb0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=254951
@ -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 () {
|
||||
|
Loading…
Reference in New Issue
Block a user