Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 500604 - app-emulation/xen-tools should depend on dev-libs/glib - configure: error: Package requirements (glib-2.0 >= 2.12) were not met: No package 'glib-2.0' found
Summary: app-emulation/xen-tools should depend on dev-libs/glib - configure: error: Pa...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ian Delaney (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-07 09:52 UTC by Another Mortal
Modified: 2014-02-13 08:24 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Another Mortal 2014-02-07 09:52:36 UTC
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...
Comment 1 Ian Delaney (RETIRED) gentoo-dev 2014-02-08 03:14:31 UTC
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
Comment 2 Yixun Lan archtester gentoo-dev 2014-02-12 14:42:14 UTC
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
Comment 3 Ian Delaney (RETIRED) gentoo-dev 2014-02-13 08:11:27 UTC
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
Comment 4 Yixun Lan archtester gentoo-dev 2014-02-13 08:24:40 UTC
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)