[Buildroot] [PATCH 1/1] package/libselinux: fix build with python 3.8
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Fri Oct 25 09:28:58 UTC 2019
On Tue, 22 Oct 2019 11:10:17 +0200
Thomas Petazzoni <thomas.petazzoni at bootlin.com> wrote:
> Hello,
>
> +Matt Weber, SELinux stuff inside.
>
> On Tue, 22 Oct 2019 09:45:00 +0200
> Thomas Petazzoni <thomas.petazzoni at bootlin.com> wrote:
>
> > So I believe the right fix is:
>
> With this fix, the module builds properly. With
> http://patchwork.ozlabs.org/patch/1181164/, it gets installed to the
> target. However, importing the module fails:
>
> Python 3.8.0 (default, Oct 21 2019, 21:15:12)
> [GCC 4.9.4] on linux
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import selinux
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "usr/lib/python3.8/site-packages/selinux/__init__.py", line 13, in <module>
> ImportError: cannot import name '_selinux' from partially initialized module 'selinux' (most likely due to a circular import) (/usr/lib/python3.8/site-packages/selinux/__init__.pyc)
This problem, as well as the initial -z defs issue, has been resolved upstream by:
https://github.com/SELinuxProject/selinux/commit/2efa06857575e4118e91ca250b6b92da68b130d5
I'm now trying to backport that to 2.9.
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
More information about the buildroot
mailing list