make -jN xdev can fail

Warner Losh imp at bsdimp.com
Thu Apr 26 23:13:24 UTC 2012


Hi Ian,

Good catch!  I've never hit this, but most of the time I don't do -j builds.

Warner

On Apr 26, 2012, at 9:14 AM, Ian Lepore wrote:

> I discovered 'make xdev' can fail with -jN because it tries to run the
> xdev-install step while xdev-build is still running.
> 
> The attached patch makes xdev-install depend on xdev-build to fix it.
> 
> -- Ian
> 
> Index: Makefile.inc1
> ===================================================================
> --- Makefile.inc1	(revision 234710)
> +++ Makefile.inc1	(working copy)
> @@ -1649,8 +1649,8 @@
> 	mtree -deU -f ${.CURDIR}/etc/mtree/BSD.include.dist \
> 	    -p ${XDDESTDIR}/usr/include >/dev/null
> 
> -.ORDER: _xi-mtree _xi-cross-tools _xi-includes _xi-libraries _xi-links
> -xdev-install: _xi-mtree _xi-cross-tools _xi-includes _xi-libraries _xi-links
> +.ORDER: xdev-build _xi-mtree _xi-cross-tools _xi-includes _xi-libraries _xi-links
> +xdev-install: xdev-build _xi-mtree _xi-cross-tools _xi-includes _xi-libraries _xi-links
> 
> _xi-cross-tools:
> 	@echo "_xi-cross-tools"
> _______________________________________________
> freebsd-embedded at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-embedded
> To unsubscribe, send any mail to "freebsd-embedded-unsubscribe at freebsd.org"



More information about the freebsd-embedded mailing list