Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 463410 - <sys-libs/libselinux-2.1.12-r3 "import selinux" in python 3 fails
Summary: <sys-libs/libselinux-2.1.12-r3 "import selinux" in python 3 fails
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: SELinux (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sven Vermeulen (RETIRED)
URL:
Whiteboard: selinux-utils
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-26 20:34 UTC by Sven Vermeulen (RETIRED)
Modified: 2013-04-16 09:57 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
libselinux build log (libselinux-build.log,119.24 KB, text/plain)
2013-03-29 08:31 UTC, Sven Vermeulen (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Vermeulen (RETIRED) gentoo-dev 2013-03-26 20:34:10 UTC
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
Comment 1 Sven Vermeulen (RETIRED) gentoo-dev 2013-03-29 08:31:38 UTC
Created attachment 343586 [details]
libselinux build log
Comment 2 Sven Vermeulen (RETIRED) gentoo-dev 2013-03-29 08:42:03 UTC
Great, so libselinux requires swig-2, going to update the ebuild accordingly (within -r3)
Comment 3 Sven Vermeulen (RETIRED) gentoo-dev 2013-03-29 09:21:16 UTC
sys-libs/libselinux-2.1.12-r3 now in main tree, ~arch'ed
Comment 4 Sven Vermeulen (RETIRED) gentoo-dev 2013-04-16 09:57:00 UTC
Stabilized