There is a new pull request by sgn against master on the void-packages repository https://github.com/sgn/void-packages chroot-alt_repository-git-worktree-fix https://github.com/void-linux/void-packages/pull/27026 chroot.sh: export XBPS_ALT_REPOSITORY to chroot Outside of chroot, we calcucate XBPS_ALT_REPOSITORY only to throw it away and calculate it again inside chroot. Normally, this is not problem except when we're working with a Git's worktree, in which case, we don't have the access to original gitdir inside chroot. Let's bring that value from outside of chroot into it. A patch file from https://github.com/void-linux/void-packages/pull/27026.patch is attached