Here’s the relevant blurb (after "=== configuring in tools"): — — — — — checking for x86_64-pc-linux-gnu-pkg-config... /usr/bin/x86_64-pc-linux-gnu-pkg-config checking pkg-config is at least version 0.9.0... yes checking for glib... no configure: error: Package requirements (glib-2.0 >= 2.12) were not met: No package 'glib-2.0' found Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables glib_CFLAGS and glib_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. configure: error: ./configure failed for tools !!! Please attach the following file when seeking support: !!! /var/tmp/portage/app-emulation/xen-tools-4.3.1-r3/work/xen-4.3.1/config.log * ERROR: app-emulation/xen-tools-4.3.1-r3::local failed (configure phase): * econf failed — — — — — Arguably, untweaked gentoo installations have glib installed by default, mainly due to the on-by-default conditional dependency from pkgconfig (disregarding the circular dependency with shared-mime-info and the off-by-default conditional dependency from udev). Nevertheless, for a minimal headless install, it’s fairly reasonable to rebuild pkgconfig with internal-glib to get rid of the otherwise unused glib and mime stuff. The qemu ebuild _does_ declare an explicit dependency on glib...
It's another mortal by another name; wb, oh keen one checking for glib... no says you never had glib installed? The qemu ebuild _does_ declare an explicit dependency on glib... says qemu needs it. Seeing I've never not had such a glib emerged, what is the apt fix here? DEPEND="dev-libs/lzo:2 -> DEPEND=">=dev-libs-2.12/glib dev-libs/lzo:2 .......... OR qemu? ( x11-libs/pixman ) -> qemu? ( >=dev-libs-2.12/glib x11-libs/pixman ) and good pickup it seems
Indeed, the only consumer of glib is qemu. but checked tools/configure.ac, it check glib blindly, no matter enable qemu or not, which means even you emerge xen-tools with USE="-qemu", it will still check glib... patch needed if you want to go with "qemu? ( >=dev-libs/glib-2.12 )" way
fixed in portage *xen-tools-4.3.1-r5 (13 Feb 2014) *xen-tools-4.2.2-r7 (13 Feb 2014) 13 Feb 2014; Yixun Lan <dlan@gentoo.org> -xen-tools-4.2.2-r6.ebuild, +xen-tools-4.2.2-r7.ebuild, -xen-tools-4.3.1-r4.ebuild, +xen-tools-4.3.1-r5.ebuild, +files/xen-tools-4-CVE-2014-1950-XSA-88.patch, +files/xen-tools-4.2.2-rt-link.patch, files/xenconsoled.initd: fix sec bug #500530, #501080, missing -lrt bug #463840, glib deps bug #500604
I simply add glib to DEPEND. DEPEND="dev-libs/lzo:2 + dev-libs/glib:2 probably adding "qemu? ( dev-libs/glib:2 )" is much better choice, but I'd leave that fix to upstream. so current scheme 1) first hard depend on glib 2) second, ping upstream to see if we can make glib optional (depend on qemu build or not)