On master (f05c1ac444e0c893516535bfdf07c5c8cd9bce16) during building with depends host packages are always considered by pkg-config
regardless of ALLOW_HOST_PACKAGES
environment variable. This causes issues like #18042.
This is an alternative to #18042 and #18045.
On master:
0$ make HOST=x86_64-apple-darwin16 -C depends
1$ CONFIG_SITE=$PWD/depends/x86_64-apple-darwin16/share/config.site ./configure
2...
3checking for QT_DBUS... yes
4...
5checking whether to build GUI with support for D-Bus... yes
6...
With this PR:
ALLOW_HOST_PACKAGES
unset
0$ make HOST=x86_64-apple-darwin16 -C depends
1$ CONFIG_SITE=$PWD/depends/x86_64-apple-darwin16/share/config.site ./configure
2...
3checking for QT_DBUS... no
4...
5checking whether to build GUI with support for D-Bus... no
6...
ALLOW_HOST_PACKAGES=1
0$ make HOST=x86_64-apple-darwin16 ALLOW_HOST_PACKAGES=1 -C depends
1$ CONFIG_SITE=$PWD/depends/x86_64-apple-darwin16/share/config.site ./configure
2...
3checking for QT_DBUS... yes
4...
5checking whether to build GUI with support for D-Bus... yes
6...