[Bug 277204] *: ports misusing WITH_CCACHE_BUILD and NO_CCACHE
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 277204] *: ports misusing WITH_CCACHE_BUILD and NO_CCACHE"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 22 Feb 2024 09:09:19 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277204
--- Comment #4 from Benjamin Takacs <nimaje+fbz@bureaucracy.de> ---
(In reply to Gleb Popov from comment #2)
As features are still loaded in the post section of bsd.port.mk, I don't see
how it would help these ports to detect if ccache support is enabled. By
allowing them to read WITH_CCACHE and making only setting WITH_CCACHE without
setting CCACHE_DIR a hard error instead of a warning? And if I read bsd.port.mk
right there still could be cases when WITH_CCACHE and WITHOUT_CCACHE are set,
when the user sets WITH_CCACHE=yes WITHOUT_CCACHE_PORTS="someport". So ports
wanting to detect if ccache is enabled would have to use .if
defined(WITH_CCACHE) && !defined(WITHOUT_CCACHE) after WITH{,OUT}_<feature>
and WITH_<feature>_PORTS is processed in the options section.
Additionally bsd.ccache.mk reads the undocumented variable NOCCACHE (and sets
NO_CCACHE=t if it was set); still sets CCACHE_ENABLED=yes if WITH_CCACHE_BUILD
and NO_CCACHE are set (but no port that disables ccache via NO_CCACHE should
try to detect ccache support, so that's just a minor correctness issue); sets
NO_CCACHE in some cases.
--
You are receiving this mail because:
You are on the CC list for the bug.