Bug 670478 - libselinux doesn't build anymore with the latest python3
libselinux doesn't build anymore with the latest python3
Product: Fedora
Classification: Fedora
Component: libselinux (Show other bugs)
Unspecified Unspecified
low Severity medium
: ---
: ---
Assigned To: Daniel Walsh
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2011-01-18 07:35 EST by Karsten Hopp
Modified: 2011-01-18 11:54 EST (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2011-01-18 10:08:57 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Karsten Hopp 2011-01-18 07:35:57 EST
Description of problem:
In the recent python3.2 packages the include directory moved to /usr/include/python3.2mu
I have no idea for the reason, it might even be a bug, but this shows that libselinux should use 'pkg-config --cflags python3' instead of trying to figure out the header directory by itself (in src/Makefile)
Comment 1 Karsten Hopp 2011-01-18 07:42:35 EST
make[1]: Leaving directory `/builddir/build/BUILD/libselinux-2.0.98/src'
+ BuildPythonWrapper /usr/bin/python3 python3
+ BinaryName=/usr/bin/python3
+ Prefix=python3
+ make PYTHON=/usr/bin/python3 PYPREFIX=python3 LIBDIR=/usr/lib64 'CFLAGS=-g -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mminimal-toc' -j2 pywrap
make -C src pywrap
make[1]: Entering directory `/builddir/build/BUILD/libselinux-2.0.98/src'
cc -g -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mminimal-toc -I../include -I/usr/include -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/python3.2 -fPIC -DSHARED -c -o python3selinuxswig_wrap.lo selinuxswig_wrap.c
selinuxswig_wrap.c:125:20: fatal error: Python.h: No such file or directory
compilation terminated.
make[1]: Leaving directory `/builddir/build/BUILD/libselinux-2.0.98/src'
make[1]: *** [python3selinuxswig_wrap.lo] Error 1
Comment 2 Daniel Walsh 2011-01-18 10:08:57 EST
Fixed in  libselinux-2.0.98-2.fc15
Comment 3 Dave Malcolm 2011-01-18 11:54:02 EST
Thanks Dan.

"3.2mu" (and the usage of pkg-config) is correct; this relates to PEP-3149:

Note You need to log in before you can comment on or make changes to this bug.