New comment by Duncaen on void-packages repository https://github.com/void-linux/void-packages/issues/38075#issuecomment-1550417905 Comment: please don't put this anywhere where it will be executed each xbps-src invocation. There are tools that execute xbps-src in a loop on many packages to gather dependencies and each fork is expensive, this function would add a bunch of forks for something that is only required for one sub command. Edit: I guess putting it on line 1003 would be fine. Generally I would prefer less magic or a way to disable this magic and put it where its required i.e. the bulk.sh file instead of adding it to the main script.