usr/src/pkg/Makefile
changeset 13255 4afa820d78b9
parent 13236 21499d6cbb4a
child 13304 b54231762cfa
equal deleted inserted replaced
13254:65ac809db5a8 13255:4afa820d78b9
   225 SYNTH_PKGS= osnet-incorporation osnet-redist
   225 SYNTH_PKGS= osnet-incorporation osnet-redist
   226 DEP_SYNTH_PKGS= $(SYNTH_PKGS:%=$(PDIR)/%.dep)
   226 DEP_SYNTH_PKGS= $(SYNTH_PKGS:%=$(PDIR)/%.dep)
   227 PROC_SYNTH_PKGS= $(SYNTH_PKGS:%=$(PDIR)/%.mog)
   227 PROC_SYNTH_PKGS= $(SYNTH_PKGS:%=$(PDIR)/%.mog)
   228 
   228 
   229 #
   229 #
       
   230 # Root of pkg image to use for dependency resolution
       
   231 # Normally / on the machine used to build the binaries
       
   232 #
       
   233 PKGDEP_RESOLVE_IMAGE = /
       
   234 
       
   235 #
   230 # For each package, we determine the target repository based on
   236 # For each package, we determine the target repository based on
   231 # manifest-embedded metadata.  Because we make that determination on
   237 # manifest-embedded metadata.  Because we make that determination on
   232 # the fly, the publication target cannot be expressed as a
   238 # the fly, the publication target cannot be expressed as a
   233 # subdirectory inside the unknown-by-the-makefile target repository.
   239 # subdirectory inside the unknown-by-the-makefile target repository.
   234 #
   240 #
   362 		for p in $(DEP_PKGS:%.dep=%); do \
   368 		for p in $(DEP_PKGS:%.dep=%); do \
   363 			$(CP) $$p.dep $$p.res; \
   369 			$(CP) $$p.dep $$p.res; \
   364 		done; \
   370 		done; \
   365 	else \
   371 	else \
   366 		print "Resolving dependencies"; \
   372 		print "Resolving dependencies"; \
   367 		pkgdepend resolve -m $(DEP_SYNTH_PKGS) $(DEP_PKGS); \
   373 		pkgdepend -R $(PKGDEP_RESOLVE_IMAGE) resolve \
       
   374 		    -m $(DEP_SYNTH_PKGS) $(DEP_PKGS); \
   368 		for p in $(DEP_SYNTH_PKGS:%.dep=%) $(DEP_PKGS:%.dep=%); do \
   375 		for p in $(DEP_SYNTH_PKGS:%.dep=%) $(DEP_PKGS:%.dep=%); do \
   369 			if [ "$$(print $$p.metadata.*)" = \
   376 			if [ "$$(print $$p.metadata.*)" = \
   370 			     "$$(print $$p.metadata.noincorp.*)" ]; \
   377 			     "$$(print $$p.metadata.noincorp.*)" ]; \
   371 			then \
   378 			then \
   372 				print "Removing dependency versions from $$p"; \
   379 				print "Removing dependency versions from $$p"; \