make-rules/ips.mk
changeset 49 13d31a6d756e
parent 48 1bb7f3eccdd6
child 53 e398cb2c4b45
--- a/make-rules/ips.mk	Wed Nov 10 11:52:54 2010 -0600
+++ b/make-rules/ips.mk	Fri Nov 26 14:46:14 2010 -0600
@@ -136,6 +136,7 @@
 	$(PKGMOGRIFY) $(@:%.resolved=%.mogrified) \
 		$(WS_TOP)/transforms/drop-unresolved-dependencies | \
 		sed -e '/^$$/d' -e '/^#.*$$/d' | uniq >$@
+	echo "depend fmri=consolidation/$(CONSOLIDATION)/$(CONSOLIDATION)-incorporation type=require">>$@
 	$(PKGDEPEND) resolve -o $< | sed -e '1d' >>$@
 
 # lint the manifest before we publish with it.
@@ -149,6 +150,9 @@
 	$(PKGSEND) -s $(PKG_REPO) publish --fmri-in-manifest \
 		-d $(PROTO_DIR) -d $(@D) -d . $<
 	$(PKGFMT) <$< >$@
+	$(PKGMOGRIFY) $(PKG_OPTIONS) $@ \
+			$(WS_TOP)/transforms/print-consolidation-depend | \
+ 		sed -e '/^$$/d' -e '/^#.*$$/d' | sort -u > $(WS_INCORPORATIONS)/userland/$(@:$(MANIFEST_BASE)-%.published=%.fragment)
 
 $(COMPONENT_SRC)/.published:	$(PUBLISHED)
 	$(TOUCH) $@