usr/src/cmd/Makefile
changeset 7887 b6618727fabf
parent 7836 4e95154b5b7a
child 7917 5c4442486198
--- a/usr/src/cmd/Makefile	Mon Oct 20 14:08:05 2008 -0700
+++ b/usr/src/cmd/Makefile	Mon Oct 20 14:39:03 2008 -0700
@@ -914,16 +914,26 @@
 SUBDIRS = $(COMMON_SUBDIRS) $($(MACH)_SUBDIRS)
 
 .PARALLEL:	$(BWOSDIRS) $(SUBDIRS) $(MSGSUBDIRS) $(BSMSUBDIRS) \
-		$(MANIFEST_SUBDIRS) $(DTEST_SUBDIRS)
+		$(DTEST_SUBDIRS)
 
 all install clean clobber lint: $(FIRST_SUBDIRS) .WAIT $(SUBDIRS) $(BSMSUBDIRS)
 
+# Manifests cannot be checked in parallel, because we are using the global
+# repository that is in $(SRC)/cmd/svc/seed/global.db.  This is a
+# repository that is built from the manifests in this workspace, whereas
+# the build machine's repository may be out of sync with these manifests.
+# Because we are using a private repository, svccfg-native must start up a
+# private copy of configd-native.  We cannot have multiple copies of
+# configd-native trying to access global.db simultaneously.
+
+.NO_PARALLEL:	$(MANIFEST_TOPDIRS) $(MANIFEST_SUBDIRS)
+
 check: svccfg_check .WAIT $(MANIFEST_TOPDIRS) $(MANIFEST_SUBDIRS) \
 	$(DTEST_SUBDIRS)
 
 svccfg_check:
 	@$(ECHO) "building requirements for svccfg check ..."; \
-	(cd $(SRC)/cmd/svc/svccfg && pwd && $(MAKE) $(MFLAGS) native)
+	(cd $(SRC)/cmd/svc/seed && pwd && $(MAKE) $(MFLAGS) global.db)
 
 $(DTEST_SUBDIRS): FRC
 	@cd $@; pwd; $(MAKE) $(TARGET)