New issue by adigitoleo on void-packages repository https://github.com/void-linux/void-packages/issues/35960 Description: ### System * xuname: Void 5.15.24_1 x86_64 AuthenticAMD notuptodate rFFF * package: new package draft for [wraith-master](https://gitlab.com/serebit/wraith-master) ### Expected behavior Package installs successfully, using the template from #35883 (with `tar` added to hostmakedepends). ### Actual behavior Build succeeds but the install fails: ``` => wraith-master-cli-1.2.1_1: running post-install hook: 03-remove-empty-dirs ... => WARNING: wraith-master-cli-1.2.1_1: removed empty dir: /usr/lib => wraith-master-cli-1.2.1_1: running post-install hook: 04-create-xbps-metadata-scripts ... => wraith-master-cli-1.2.1_1: running post-install hook: 05-generate-gitrevs ... => wraith-master-cli-1.2.1_1: running post-install hook: 06-strip-and-debug-pkgs ... Stripped executable: /usr/bin/wraith-master => ERROR: wraith-master-cli-1.2.1_1: non-PIE executable found in PIE build: /usr/bin/wraith-master => ERROR: wraith-master-cli-1.2.1_1: post-install_06-strip-and-debug-pkgs: 'find ${PKGDESTDIR} -type f' exited with 1 => ERROR: in hook() at common/hooks/post-install/06-strip-and-debug-pkgs.sh:68 => ERROR: in run_func() at common/xbps-src/shutils/common.sh:21 => ERROR: in run_pkg_hooks() at common/xbps-src/shutils/common.sh:245 => ERROR: in main() at common/xbps-src/libexec/xbps-src-doinstall.sh:66 ``` Why does it want the executable to be PIE? Does it have to do with the `/usr/lib` directory being detected? ### Steps to reproduce the behavior Try to build the corrected template from the linked issue.