Summary: | <sys-libs/libselinux-2.1.12-r3 "import selinux" in python 3 fails | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Sven Vermeulen (RETIRED) <swift> |
Component: | SELinux | Assignee: | Sven Vermeulen (RETIRED) <swift> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | selinux |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | selinux-utils | ||
Package list: | Runtime testing required: | --- | |
Attachments: | libselinux build log |
Created attachment 343586 [details]
libselinux build log
Great, so libselinux requires swig-2, going to update the ebuild accordingly (within -r3) sys-libs/libselinux-2.1.12-r3 now in main tree, ~arch'ed Stabilized |
Python 3.2.3 (default, Mar 20 2013, 19:11:07) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import selinux Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib64/python3.2/site-packages/selinux/__init__.py", line 25, in <module> _selinux = swig_import_helper() File "/usr/lib64/python3.2/site-packages/selinux/__init__.py", line 21, in swig_import_helper _mod = imp.load_module('_selinux', fp, pathname, description) ImportError: /usr/lib64/python3.2/site-packages/selinux/_selinux.so: undefined symbol: PyCObject_Import As a result, python-2 is currently needed. Reproducible: Always