Page MenuHomeFreeBSD

Add flavor support to depends.sh and make use in *-depends-list targets.
AbandonedPublic

Authored by bdrewery on Dec 18 2017, 9:48 PM.

Details

Reviewers
se
Group Reviewers
portmgr
Summary

Add a -f option to Mk/Scripts/depends-list.sh to allow reporting of flavors attached to the port origins. This format is required for portmaster, to support dependency tracking after the intriduction of flavors.

Test Plan

Apply patches and verify, that output is unchanged to the previous version if -f is not specified, and that flavors are reported if -f is passed.
The change to bsd.ports.mk supplies -f to obtain dependencies with flavors.

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

The portmaster version with flavor support contains a very simple dependency check, which es very different from the previous version, since the depends.sh script cannot be used as is.

se edited the test plan for this revision. (Show Details)
se set the repository for this revision to rP FreeBSD ports repository.

Remove flavor part from origin. The flavor is passed via the FLAVOR environment variable.

bdrewery added a reviewer: se.
bdrewery added a subscriber: bdrewery.

I committed something like this in Pr459882. You can pass -DDEPENDS_SHOW_FLAVOR to make *-depends* to get the flavor output as well.