Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 497754

Summary: sys-libs/libsemanage should DEPEND on virtual/pkgconfig if USE=python
Product: Gentoo Linux Reporter: Dustin C. Hatch <dustin>
Component: SELinuxAssignee: Sven Vermeulen (RETIRED) <swift>
Status: RESOLVED FIXED    
Severity: normal CC: selinux
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Dustin C. Hatch 2014-01-11 02:57:29 UTC
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.
Comment 1 Sven Vermeulen (RETIRED) gentoo-dev 2014-01-20 20:28:07 UTC
Thanks; fixed in tree for libsemanage-2.2 (latest & stable).