New comment by pullmoll on void-packages repository https://github.com/void-linux/void-packages/issues/11426#issuecomment-490076227 Comment: To simplify debugging (cross) packages there's now `GIR_EXTRA_OPTIONS` which can be specified in a template like e.g. `GIR_EXTRA_OPTIONS="-strace"` to see what happens in the regular build log. What is missing, also for `GIR_EXTRA_LIBS_PATH`, is a `unset GIR_EXTRA_…` in the right place, or otherwise dependencies of a package are built with the same settings for these environment variables. This unset should perhaps be done in `common/xbps-src/shutils/common.sh` function `setup_pkg()` somewhere around `# Start with a sane environment`. What do you think?