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
F105807932: D13756.diff
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
Unknown Object (File)
Sep 25 2024, 3:11 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
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.