New comment by sgn on void-packages repository https://github.com/void-linux/void-packages/issues/20393#issuecomment-611399337 Comment: On 2020-04-09 01:13:10-0700, Piraty wrote: > is the chroot really required to know if there's a git directory? @xtraeme ? There're 2 information xbps-src needs to get from git: - `SOURCE_DATE_EPOCH` (`common/environment/setup/git.sh`), this can be work-around by calculate it from outside, then export into chroot - `gitrev` metadata for the package (`common/hooks/post-install/05-generate-gitrevs.sh`), this will be run in `pkg` step, we can work-around by calculate it from outside of chroot, export into chroot. After done all this steps, we no longer need git inside chroot, thus, `chroot-git` packages is no longer required, and, can be removed from base-chroot. -- Danh