Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 587712 - sys-libs/libselinux does not properly set up selinux python module with current swig (3.0.10)
Summary: sys-libs/libselinux does not properly set up selinux python module with curre...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jason Zaman
URL: https://bugzilla.redhat.com/show_bug....
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-01 14:42 UTC by anoteros
Modified: 2016-12-12 14:05 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 anoteros 2016-07-01 14:42:21 UTC
While sys-libs/libselinux properly creates a selinux directory with module files in /usr/lib64/python2.7/site-packages/, all python tools that depend on this module are broken, and spit out the error "no module named _selinux".

As seen on https://bugzilla.redhat.com/show_bug.cgi?id=1349954, this is probably an incompatibility with new versions of swig. The workaround on one of those posts, (coping _selinux.so to /usr/lib64/python2.7/site-packages, in other words bringing it out of the selinux directory) works around the issue.
Comment 1 Robert Förster 2016-07-05 13:28:59 UTC
upstream does exactly that now
https://github.com/SELinuxProject/selinux/commit/a9604c30a5e2f71007d31aa6ba41cf7b95d94822
Comment 2 Vladimir Datsevich 2016-09-14 12:42:47 UTC
Are there any news on this?
Comment 3 Jason Zaman gentoo-dev 2016-09-15 10:45:30 UTC
I just pushed libselinux-2.5-r1 to the tree with this patch backported.