7095147 userland fails to pkglint on 174
authorMike Sullivan <Mike.Sullivan@Oracle.COM>
Thu, 29 Sep 2011 10:58:58 -0700
changeset 528 db21abcd4c91
parent 527 e8d15f0b2692
child 529 99a95b77b79a
7095147 userland fails to pkglint on 174
components/Makefile
make-rules/shared-macros.mk
--- a/components/Makefile	Wed Sep 28 15:15:21 2011 +0000
+++ b/components/Makefile	Thu Sep 29 10:58:58 2011 -0700
@@ -89,7 +89,7 @@
 $(WS_LINT_CACHE):	$(WS_LOGS)
 ifdef CANONICAL_REPO
 	@echo "Generating pkglint(1) cache from $(CANONICAL_REPO)..."
-	@(echo "set name=fmri value=pkg:/dummy" | $(PKGLINT) \
+	@(echo "set name=fmri value=pkg:/[email protected],$(BUILD_VERSION)" | $(PKGLINT) \
 		-c $(WS_LINT_CACHE) -r $(CANONICAL_REPO) /dev/fd/0 \
 		>$(WS_LOGS)/naughty-canonical-repo-actions 2>&1 ; exit 0)
 else
--- a/make-rules/shared-macros.mk	Wed Sep 28 15:15:21 2011 +0000
+++ b/make-rules/shared-macros.mk	Thu Sep 29 10:58:58 2011 -0700
@@ -80,7 +80,7 @@
 
 OS_VERSION =		$(shell uname -r)
 SOLARIS_VERSION =	$(OS_VERSION:5.%=2.%)
-BUILD_NUM =		0.$(shell expr $(LAST_BUILD_NUM) + 1)
+BUILD_NUM ?=		0.$(shell expr $(LAST_BUILD_NUM) + 1)
 
 #
 # The Solaris Update number. This will be set by the gatekeepers.
@@ -116,7 +116,7 @@
 #
 NIGHTLYID ?=	$(shell hg tip --template '{rev}\n')
 
-BUILD_VERSION =	 \
+BUILD_VERSION ?=	 \
     $(OS_VERSION)-$(BUILD_NUM).$(UPDATENUM).$(SRUNUM).$(PLATNUM).$(BUILDID).$(NIGHTLYID)
 
 COMPILER =		studio