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)
Jan 14 2024, 5:01 PM
Unknown Object (File)
Jan 12 2024, 4:16 PM
Unknown Object (File)
Dec 30 2023, 12:50 AM
Unknown Object (File)
Nov 15 2023, 10:44 AM
Unknown Object (File)
Nov 14 2023, 2:51 AM
Unknown Object (File)
Nov 10 2023, 10:09 AM
Unknown Object (File)
Nov 9 2023, 9:48 PM
Unknown Object (File)
Oct 14 2023, 9:44 AM
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
Lint Not Applicable
Unit
Tests Not Applicable

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.