switch tounconditionnal boostrapping while to build the tree

David O'Brien obrien at FreeBSD.org
Tue Jun 26 20:19:57 UTC 2012


On Sun, May 27, 2012 at 01:55:10AM +0200, Baptiste Daroussin wrote:
> so if no one care I'll remove the condition to boostrap at least
> yacc(1) and lex(1) on current, 9, 8 and 7.

Note that we do a run-time test of make(1) ['upgrade_checks' target]
to decide if we need to build a bootstrap version.  How hard would
it be to do that for yacc/lex?

/usr/src/Makefile:

# Make sure we have an up-to-date make(1). Only world and buildworld
# should do this as those are the initial targets used for upgrades.
# The user can define ALWAYS_CHECK_MAKE to have this check performed
# for all targets.
#
.if defined(ALWAYS_CHECK_MAKE)
${TGTS}: upgrade_checks
.else
buildworld: upgrade_checks
.endif

# Perform a few tests to determine if the installed tools are adequate
# for building the world.
#
upgrade_checks:
	@if ! (cd ${.CURDIR}/tools/build/make_check && \
	    PATH=${PATH} ${BINMAKE} obj >/dev/null 2>&1 && \
	    PATH=${PATH} ${BINMAKE} >/dev/null 2>&1); \
	then \
	    (cd ${.CURDIR} && ${MAKE} make); \
	fi

-- 
-- David  (obrien at FreeBSD.org)


More information about the freebsd-arch mailing list