Page MenuHomeFreeBSD

options/makeman: Handle __REQUIRED_OPTIONS
ClosedPublic

Authored by cperciva on Jun 18 2023, 12:06 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 12, 5:31 PM
Unknown Object (File)
Tue, Nov 12, 5:27 PM
Unknown Object (File)
Oct 10 2024, 7:25 AM
Unknown Object (File)
Oct 9 2024, 11:57 AM
Unknown Object (File)
Oct 9 2024, 11:57 AM
Unknown Object (File)
Oct 9 2024, 11:56 AM
Unknown Object (File)
Oct 9 2024, 11:56 AM
Unknown Object (File)
Oct 9 2024, 11:36 AM
Subscribers

Details

Summary

Teach the code which generates src.conf.5 about __REQUIRED_OPTIONS;
without this change it gets confused and thinks that every option
turns the required options on.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

tools/build/options/makeman
127

it might be safer to to use -V '${__REQUIRED_OPTIONS:ts,}' to get requireds and then case ",${requireds}," in *,${opt},*)

Update per suggestion from sjg

cperciva added inline comments.
tools/build/options/makeman
127

Thanks! I was trying to figure out how to do that, but I didn't realize make supported substitutions in -V arguments.

This revision is now accepted and ready to land.Jun 19 2023, 8:22 PM
This revision was automatically updated to reflect the committed changes.
cperciva marked an inline comment as done.