Normally, pkg-config is already installed on a system when glib will be installed. However while I'm currently installing syslog-ng in a stage3, it pulls dev-libs/glib-2.18.4-r1 into the dependency tree which in turn pulls in dev-util/gtk-doc-1.10-r2 (because of the doc USE-flag) which again depends on dev-libs/glib-2.18.4-r1. This is a problem which should be noted in the handbook (http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?part=1&chap=9). I simply solved it by »USE="-doc" emerge -1O =dev-libs/glib-2.18.4-r1« now hitting the missing pkg-config (which SHOLD be a build time dependency of glib). emerge pkgconfig && \ USE="-doc" emerge -1O =dev-libs/glib-2.18.4-r1 && \ emerge glib && \ emerge -av syslog-ng Reproducible: Sometimes Steps to Reproduce:
Every dev-lib/glib ebuild currently being in the portage-tree has dev-util/pkgconfig in the DEPEND variable.
erm, I mean dev-libs/glib