tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: REPLACE_xxx and USE_TOOLS+= xxx





On 12/16/25 10:38 PM, Frédéric Fauberteau wrote:
Le 16/12/2025 à 16:59, Jörg Sonnenberger a écrit :
On 12/16/25 4:58 PM, Frédéric Fauberteau wrote:
Hi folks,

I read in https://www.netbsd.org/docs/pkgsrc/fixes.html#shell-scripts:
When using REPLACE_BASH, don't forget to add bash to USE_TOOLS.

Is there a reason why bash is not automatically added to USE_TOOLS if a REPLACE_BASH is declared?

The easiest answer: because the system can't know if it is only a build- time or a full runtime dependency.

Joerg

Because "USE_TOOLS= bash:build bash:run" could not be parsed?

No, because pkgsrc can't know if bash is needed only during the build or not. (e.g. the patched files are going to installed or not). Both scenarios are common.

Joerg


Home | Main Index | Thread Index | Old Index