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)
Sat, Dec 21, 3:03 AM
Unknown Object (File)
Fri, Dec 20, 11:57 PM
Unknown Object (File)
Nov 19 2024, 10:16 AM
Unknown Object (File)
Oct 27 2024, 8:34 PM
Unknown Object (File)
Oct 18 2024, 8:33 PM
Unknown Object (File)
Oct 17 2024, 2:43 PM
Unknown Object (File)
Oct 11 2024, 10:49 AM
Unknown Object (File)
Sep 26 2024, 6:48 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.