Summary: | sys-libs/libselinux-2.1.9-r1 fails with CPython-2.5 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Patrick Lauer <patrick> |
Component: | New packages | Assignee: | SE Linux Bugs <selinux> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | python |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | selinux-utils | ||
Package list: | Runtime testing required: | --- | |
Attachments: | libselinux.patch |
Description
Patrick Lauer
2012-08-02 08:46:39 UTC
For 2.1.9-r1 I've added a restrict for CPython 2.5 and 2.6 to the ebuild (and 3.* too) Your call if you want to fix it in the build system or leave the ebuild restricted. Thanks. I don't think I'll try to support 2.5 and 2.6, but 2.7 and 3.* should (must) work (since those are still supported upstream and often considered the "safe stable") so I'll look at fixing that. Created attachment 320666 [details, diff]
libselinux.patch
sys-libs/libselinux-2.1.9-r1 would fail to build with CPython 2.5 even after changing build system:
python-2.5selinuxswig_wrap.lo: In function `_wrap_security_get_boolean_names':
selinuxswig_wrap.c:(.text+0x1e4b): undefined reference to `PyBytes_FromString'
python-2.5selinuxswig_wrap.lo: In function `_wrap_get_ordered_context_list':
selinuxswig_wrap.c:(.text+0x955c): undefined reference to `PyBytes_FromString'
python-2.5selinuxswig_wrap.lo: In function `_wrap_get_ordered_context_list_with_level':
selinuxswig_wrap.c:(.text+0x97e4): undefined reference to `PyBytes_FromString'
python-2.5selinuxswig_wrap.lo: In function `_wrap_security_compute_user':
selinuxswig_wrap.c:(.text+0xbd34): undefined reference to `PyBytes_FromString'
python-2.5selinuxswig_wrap.lo: In function `_wrap_security_compute_user_raw':
selinuxswig_wrap.c:(.text+0xbfd4): undefined reference to `PyBytes_FromString'
python-2.5selinuxswig_wrap.lo: In function `_wrap_rpm_execcon':
selinuxswig_wrap.c:(.text+0xd310): undefined reference to `PyBytes_Check'
selinuxswig_wrap.c:(.text+0xd3fe): undefined reference to `PyBytes_Size'
selinuxswig_wrap.c:(.text+0xd417): undefined reference to `PyBytes_AsString'
selinuxswig_wrap.c:(.text+0xd49c): undefined reference to `PyBytes_Check'
selinuxswig_wrap.c:(.text+0xd4d3): undefined reference to `PyBytes_Size'
selinuxswig_wrap.c:(.text+0xd4f2): undefined reference to `PyBytes_AsString'
collect2: ld returned 1 exit status
make: *** [python-2.5_selinux.so] Error 1
Support for CPython 2.6 can be easily restored by this patch.
sys-libs/libselinux-2.1.9-r1 succeeds to build with CPython 3.1 and 3.2 after unrestricting 3.* Python ABIs.
If there was decision to not restore support for CPython 2.6 by patch from comment #3, then sys-libs/libselinux-2.1.9-r1 would need: DEPEND="python? ( virtual/pkgconfig )". -r2 was sitting in hardened-dev for another fix (ruby-related) so I added Arfrever patch to that one. TEST-REQUEST for hardened-dev overlay, will be VERIFIED:TEST-REQUEST when ~arch and VERIFIED:FIXED when arch. In main tree, ~arch'ed Stabilized |