There's a merged pull request on the void-packages repository hooks/post-install/06-strip-and-debug-pkgs.sh: speed up. https://github.com/void-linux/void-packages/pull/28278 Description: Only run file once for each file in the destdir, only double-check when we are about to strip the ELF files.