Re: git: 60817c50b4c8 - main - Mk/Uses: Add certs.mk to handle dependency on security/ca_root_nss
- Reply: Gleb Popov : "Re: git: 60817c50b4c8 - main - Mk/Uses: Add certs.mk to handle dependency on security/ca_root_nss"
- In reply to: Mathieu Arnold : "Re: git: 60817c50b4c8 - main - Mk/Uses: Add certs.mk to handle dependency on security/ca_root_nss"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 10 Mar 2026 07:40:48 UTC
On 3/9/26 12:14, Mathieu Arnold wrote:
> USES handles simple dependencies tied to the presence or absence of a
> base system feature, not mere string substitution. This does not add
> any value, please remove it.
It doesn't matter that this is just a string substitution.
USES=certs:{arg} is a lot more elegant and more readable expression of
that dependency.
This is why macros exist in many programming languages.
A significant amount of macro usage is simple string substitutions, and
particularly in the FreeBSD source tree in /usr/include.
Yuri