Hi there - I've just been chasing an odd behaviour where launching
the top level 'setup' target of the userland build with any -jx option
set causes a lack of any packages in the pkglint-cache directory:
I there appears to be a race condition in the components/Makefile
line 84, between the repo creation and the packagelint cache generation:
A .wait or .NOPARALLEL: setup would solve the race, but a dependency
between the two targets would probably be more sensible. I've tested that it
solves this minor issue (yep, this is nit picking, but principle of
least suprise I guess :-)
What do people think to this basic patch?
diff -r 457586ba0add components/Makefile
--- a/components/Makefile Mon Aug 13 15:38:36 2012 -0700
+++ b/components/Makefile Tue Aug 14 11:48:15 2012 +0000
@@ -80,6 +80,7 @@
@cd ../tools ; echo "clobbering tools..." ; $(GMAKE) clobber
$(RM) -r $(WS_REPO) $(WS_LOGS) $(WS_LINT_CACHE)
+$(WS_LINT_CACHE): $(WS_REPO)
setup: $(WS_LOGS) $(WS_REPO) tools $(WS_LINT_CACHE)
If its worth fixing I'll CR it and patch it in both gates (12 and 11u1) ?
Cheers,
Edwin
_______________________________________________
userland-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/userland-discuss