From: "Yann E. MORIN" <yann.morin.1998@free.fr>
To: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Cc: Antoine Tenart <atenart@kernel.org>,
Marcus Folkesson <marcus.folkesson@gmail.com>,
buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH 1/1] package:libselinux: replace PKG_PYTHON_DISTUTILS_ENV
Date: Sun, 11 Feb 2024 18:04:49 +0100 [thread overview]
Message-ID: <Zcj-MdyVc_ESj6yW@landeda> (raw)
In-Reply-To: <20240211160553.429144-1-fontaine.fabrice@gmail.com>
Fabrice, All,
On 2024-02-11 17:05 +0100, Fabrice Fontaine spake thusly:
> Replace PKG_PYTHON_DISTUTILS_ENV by PKG_PYTHON_SETUPTOOLS_ENV as
> libselinux uses setuptools instead of distutils since version 3.5 and
> https://github.com/SELinuxProject/selinux/commit/2b5d5585754eb731a68158b613c7676fc3195ed9
>
> This will avoid the following build failure raised since commit
> 09de823cbc7bd50a40e25f4166b4e42be94b0c7b:
>
> In file included from /home/buildroot/autobuild/instance-0/output-1/per-package/libselinux/host/include/python3.12/Python.h:38,
> from selinuxswig_python_wrap.c:168:
> /home/buildroot/autobuild/instance-0/output-1/per-package/libselinux/host/include/python3.12/pyport.h:586:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
> 586 | #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
> | ^~~~~
>
> Fixes:
> - http://autobuild.buildroot.org/results/3fbbb741de33310c8cacab753a32e79c5e531036
I've slightly changes the formatting of the "fixes" tag, to also point
to the commit introducing the issue.
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Applied to master, thanks.
Regards,
Yann E. MORIN.
> ---
> package/libselinux/libselinux.mk | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/package/libselinux/libselinux.mk b/package/libselinux/libselinux.mk
> index 529745f82e..734084ba50 100644
> --- a/package/libselinux/libselinux.mk
> +++ b/package/libselinux/libselinux.mk
> @@ -38,7 +38,7 @@ LIBSELINUX_DEPENDENCIES += \
> host-swig
>
> LIBSELINUX_MAKE_OPTS += \
> - $(PKG_PYTHON_DISTUTILS_ENV) \
> + $(PKG_PYTHON_SETUPTOOLS_ENV) \
> PYTHON=python$(PYTHON3_VERSION_MAJOR)
>
> LIBSELINUX_MAKE_INSTALL_TARGETS += install-pywrap
> @@ -85,7 +85,7 @@ HOST_LIBSELINUX_MAKE_OPTS = \
> $(HOST_CONFIGURE_OPTS) \
> PREFIX=$(HOST_DIR) \
> SHLIBDIR=$(HOST_DIR)/lib \
> - $(HOST_PKG_PYTHON_DISTUTILS_ENV) \
> + $(HOST_PKG_PYTHON_SETUPTOOLS_ENV) \
> PYTHON=python$(PYTHON3_VERSION_MAJOR) \
> USE_PCRE2=y
>
> --
> 2.43.0
>
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2024-02-11 17:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-11 16:05 [Buildroot] [PATCH 1/1] package:libselinux: replace PKG_PYTHON_DISTUTILS_ENV Fabrice Fontaine
2024-02-11 17:04 ` Yann E. MORIN [this message]
2024-02-11 19:36 ` Yann E. MORIN
2024-03-10 21:42 ` Peter Korsgaard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Zcj-MdyVc_ESj6yW@landeda \
--to=yann.morin.1998@free.fr \
--cc=atenart@kernel.org \
--cc=buildroot@buildroot.org \
--cc=fontaine.fabrice@gmail.com \
--cc=marcus.folkesson@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.