Closed issue by ericonr on void-packages repository https://github.com/void-linux/void-packages/issues/27188 Description: ### Expected behavior Installing a package with python files, such as `gdb`, into an alternate root should try to compile the python files in the alternate root. ### Actual behavior The hook uses the alternate root's python, `usr/bin/python3`, but the GDB template specifies `pycompile_dirs="/usr/share/gdb/python"`, which makes it try to build the system's python files, with the wrong python even. I noticed because I was running xbps-install as a user and it gave me multiple permission errors. Multiple templates have this same issue.