Page MenuHomeFreeBSD

features_writeup:
AbandonedPublic

Authored by arrowd on Apr 14 2024, 10:41 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jan 10, 3:18 AM
Unknown Object (File)
Dec 3 2024, 2:12 PM
Unknown Object (File)
Nov 29 2024, 7:38 AM
Unknown Object (File)
Nov 25 2024, 6:35 AM
Unknown Object (File)
Nov 25 2024, 2:47 AM
Unknown Object (File)
Nov 24 2024, 6:00 PM
Unknown Object (File)
Nov 23 2024, 5:43 PM
Unknown Object (File)
Nov 22 2024, 11:00 PM
Subscribers

Details

Reviewers
None
Group Reviewers
portmgr

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 57095
Build 53983: arc lint + arc unit

Event Timeline

arrowd created this revision.

make -C dns/bind918 -V USE_PERL5 WITH_DEBUG=yes WITHOUT_DEBUG_PORTS=dns/bind918

Results in "build".
This means that the port still believes that the "debug" feature is enabled, while it is actually disabled by the second knob.

As I explained a while back, while what you say is true, your example is flawed, as nobody will every run a command like that, and mostly tried to spread fud.

Variables set on the command line will overwrite any variables being set or unset in any other way.

A correct example would be to put WITH_DEBUG=yes and WITHOUT_DEBUG_PORTS=dns/bind918 in your make.conf. If you do that, the framework works correctly, and make -C dns/bind918 -V USE_PERL5 will not output build.

Yes, this text was written before you explained me this make peculiarity.

But the key point of this text is to underline that Features are universally-applied Options and should be treated the same

  • within the framework (by combining the input WITH[OUT]_* variables into PORT_FEATURES which should be checked against by ports)
  • on the metaphysical plane (by allowing ports and Uses to enable a Feature by default if desired, like for Rust ports)