Alexander Pyhalov
2018-01-19 c0099a900e5e09c9ca33b9be37e50aab7409bef8
make-rules: add component's fmris to RESOLVE_DEPS
1 files added
1 files modified
12 ■■■■ changed files
make-rules/ips.mk 8 ●●●●● patch | view | raw | blame | history
transforms/PRINT_COMPONENT_FMRIS 4 ●●●● patch | view | raw | blame | history
make-rules/ips.mk
@@ -386,10 +386,12 @@
# fragments that it uses.
RESOLVE_DEPS=$(BUILD_DIR)/resolve.deps
$(RESOLVE_DEPS):    Makefile $(BUILD_DIR)
    @for pkg in $(REQUIRED_PACKAGES:%=/%) ; do \
$(RESOLVE_DEPS):    Makefile $(BUILD_DIR) $(DEPENDED)
    @(for pkg in $(REQUIRED_PACKAGES:%=/%) ; do \
        echo $${pkg} ; \
    done | sort -u >$@
    done ; \
    $(PKGMOGRIFY) $(WS_TRANSFORMS)/PRINT_COMPONENT_FMRIS $(DEPENDED) | \
        $(GSED) -e '/^[\t ]*$$/d' -e '/^#/d' ;) | sort -u >$@
# resolve the dependencies all at once
$(BUILD_DIR)/.resolved-$(MACH):    $(DEPENDED) $(RESOLVE_DEPS)
transforms/PRINT_COMPONENT_FMRIS
New file
@@ -0,0 +1,4 @@
# print a line "/{pkg-short-name}"
<transform set name=pkg.fmri value=pkg:/(.+)@.+ -> print /%<1> >
# drop all actions
<transform -> drop >