components/Makefile
changeset 623 15f87c23a86e
parent 528 db21abcd4c91
child 774 d0cbca26a17c
--- a/components/Makefile	Tue Dec 13 13:58:15 2011 -0800
+++ b/components/Makefile	Wed Dec 14 10:23:11 2011 -0800
@@ -61,7 +61,9 @@
 prep build install publish test:	LOG = >$(WS_LOGS)/$(@F).$(TARGET).log 2>&1
 
 # turn off pkglint for the individual component builds.
+ifeq   ($(strip $(PKGLINT_COMPONENT)),)
 publish:		MAKEFLAGS += PKGLINT=/bin/true
+endif
 
 .DEFAULT:	publish
 
@@ -86,10 +88,15 @@
 	$(PKGREPO) create $(PKG_REPO)
 	$(PKGREPO) add-publisher -s $(PKG_REPO) $(PUBLISHER)
 
+DUMMYPKG =  "set name=fmri value=pkg:/[email protected],$(BUILD_VERSION)\n"
+DUMMYPKG += "set pkg.summary=dummy\n"
+DUMMYPKG += "set org.opensolaris.consolidation=userland\n"
+DUMMYPKG += "set info.classification=org.opensolaris.category.2008:System/Core"
+
 $(WS_LINT_CACHE):	$(WS_LOGS)
 ifdef CANONICAL_REPO
 	@echo "Generating pkglint(1) cache from $(CANONICAL_REPO)..."
-	@(echo "set name=fmri value=pkg:/[email protected],$(BUILD_VERSION)" | $(PKGLINT) \
+	@(echo $(DUMMYPKG) | $(PKGLINT) \
 		-c $(WS_LINT_CACHE) -r $(CANONICAL_REPO) /dev/fd/0 \
 		>$(WS_LOGS)/naughty-canonical-repo-actions 2>&1 ; exit 0)
 else