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.JoergBecause "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
I would have thought that if USE_TOOLS contained bash:run, it implied that bash was needed for execution.
If I make the hypothesis that using REPLACE_BASH involves automatically adding bash:build to USE_TOOLS, this implies that USE_TOOLS contains both bash:build and bash:run.
I would have thought in this case that pkgsrc could know that bash:run was "superior to" bash:build and that would imply the addition of bash to DEPENDS.