Re: [PATCH] libselinux: Replace PyString_FromString with PyUnicode_FromString for SWIG 4.5.0 compatibility

Stephen Smalley <[email protected]>
Newsgroups org.kernel.vger.selinux
Message-ID <CAEjxPJ5qgVR1GFQVE86tA76magZiUV9kCV1vw78L+EDZ5KPUqQ@mail.gmail.com>
On Thu, Aug 6, 2026 at 4:06 PM Stephen Smalley
<[email protected]> wrote:
>
> On Thu, Aug 6, 2026 at 10:36 AM Petr Lautrbach <[email protected]> wrote:
> >
> > SWIG 4.5.0 removed Python 2 C API compatibility macros (PyInt_*,
> > PyString_*, SWIG_Python_str_*) from its runtime header pyhead.swg.
> > These macros previously mapped deprecated Python 2 C API names to their
> > Python 3 equivalents.
> >
> > Fixes: https://github.com/SELinuxProject/selinux/issues/538
> > Authored-by: Jitka Plesníková <[email protected]>
> > Signed-off-by: Petr Lautrbach <[email protected]>
>
> Acked-by: Stephen Smalley <[email protected]>

Thanks, merged.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.