New comment by q66 on void-packages repository https://github.com/void-linux/void-packages/issues/19495#issuecomment-590878464 Comment: My proposed fix would be something like... 1) run that line in `setup` pkg only if `$IN_CHROOT`; the main point of it seems to be that inside chroot, the generated `xbps-src.conf` is run 2) change generation of `xbps-src.conf` so that it doesn't just `grep` out variables from the real config file, as that's not very good - if you have any sort of conditional logic in your conf, or e.g. sourcing other confs, that will break - instead take a list of `XBPS_` variables that are set and actually set them for the generated config. that should probably fix it for real