sys-libs/libsemanage with USE=python needs pkg-config in order to build the python parts: * Building of sys-libs/libsemanage-2.1.10 with CPython 2.7... make: pkg-config: Command not found x86_64-pc-linux-gnu-gcc -O2 -pipe -I../include -I/usr/include -D_GNU_SOURCE -Wno-error -Wno-unused-but-set-variable -Wno-unused-variable -Wno-shadow -Wno-unused-parameter -fPIC -DSHARED -c -o python-2.7semanageswig_wrap.lo semanageswig_wrap.c semanageswig_wrap.c:125:20: fatal error: Python.h: No such file or directory compilation terminated. make: *** [python-2.7semanageswig_wrap.lo] Error 1 emake failed Without an explicit dependency on virtual/pkgconfig, in a parallel build situation, pkg-config may or may not be available. Reproducible: Sometimes Steps to Reproduce: 1. Not have dev-util/pkgconfig installed (i.e. building from stage2) 2. emerge --jobs --oneshot libsemanage 3. Be as unlucky as I am with restpect to the order stuff gets installed Actual Results: dev-util/pkgconfig might not get installed before sys-libs/libsemanage starts building when using `emerge --jobs` Expected Results: virtual/pkgconfig, and thus dev-util/pkgconfig, should be installed before sys-libs/libsemanage starts building This was encountered during a Catalyst run trying to get a stage3 tarball with SELinux userspace components preinstalled.
Thanks; fixed in tree for libsemanage-2.2 (latest & stable).