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.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 18, 6:58 AM
Unknown Object (File)
Jan 16 2024, 9:08 PM
Unknown Object (File)
Dec 18 2023, 6:37 PM
Unknown Object (File)
Nov 24 2023, 11:49 PM
Unknown Object (File)
Nov 7 2023, 1:50 PM
Unknown Object (File)
Oct 28 2023, 7:45 PM
Unknown Object (File)
Oct 14 2023, 2:27 PM
Unknown Object (File)
Oct 6 2023, 12:33 PM
Subscribers

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
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.