Page MenuHomeFreeBSD

Fix flavor helpers when only bsd.port.pre.mk is not used and FLAVOR is not set.
ClosedPublic

Authored by bdrewery on Jan 3 2018, 11:27 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jun 21, 9:04 AM
Unknown Object (File)
Thu, Jun 20, 9:19 PM
Unknown Object (File)
Thu, Jun 20, 1:41 PM
Unknown Object (File)
Thu, Jun 20, 12:19 PM
Unknown Object (File)
Wed, Jun 19, 4:12 PM
Unknown Object (File)
Wed, Jun 19, 1:36 PM
Unknown Object (File)
Wed, Jun 19, 1:00 PM
Unknown Object (File)
Jan 14 2024, 5:01 PM
Subscribers

Details

Summary

The helpers were being evaluated before the default FLAVOR was set. The
helpers worked fine if the FLAVOR was specified by the user but not if
it was left to the default value. Resolve this by moving the helpers
right after the default FLAVOR is set.

PR: 224879

Test Plan

In some random Makefile:

FLAVORS= foo bar
foo_RUN_DEPENDS= blah>=0:devel/blah

Then run:

make -V RUN_DEPENDS
make -V RUN_DEPENDS FLAVOR=foo
make -V RUN_DEPENDS FLAVOR=bar

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 14097
Build 14275: arc lint + arc unit

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Jan 8 2018, 12:24 AM
This revision was automatically updated to reflect the committed changes.