[Buildroot] [PATCH 1/1] package/libselinux: fix build with python 3.8

James Hilliard james.hilliard1 at gmail.com
Mon Oct 21 15:18:49 UTC 2019


On Mon, Oct 21, 2019 at 10:06 AM Thomas Petazzoni
<thomas.petazzoni at bootlin.com> wrote:
>
> On Sun, 20 Oct 2019 14:31:19 -0600
> James Hilliard <james.hilliard1 at gmail.com> wrote:
>
> > diff --git a/package/libselinux/libselinux.mk b/package/libselinux/libselinux.mk
> > index c707c8a25e..75f01a84b7 100644
> > --- a/package/libselinux/libselinux.mk
> > +++ b/package/libselinux/libselinux.mk
> > @@ -33,7 +33,7 @@ endif
> >  ifeq ($(BR2_PACKAGE_PYTHON)$(BR2_PACKAGE_PYTHON3),y)
> >  ifeq ($(BR2_PACKAGE_PYTHON3),y)
> >  LIBSELINUX_DEPENDENCIES += python3 host-swig
> > -LIBSELINUX_PYINC = -I$(STAGING_DIR)/usr/include/python$(PYTHON3_VERSION_MAJOR)m
> > +LIBSELINUX_PYINC = -I$(STAGING_DIR)/usr/include/python$(PYTHON3_VERSION_MAJOR)
>
> Considering the number of packages that hardcode this path, perhaps we
> should have a variable provided by some common code, so that if it
> changes again in the future, we don't have to chase down multiple
> packages ?
Maybe, although there aren't all that many from what I can tell and some seem
to use slightly different variables. It doesn't seem all that likely
that this will change
in the near future again at least since this change was only finalized
after many
python releases.
>
> Thomas
> --
> Thomas Petazzoni, CTO, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com


More information about the buildroot mailing list