From c10349bf67c113444c9f9081b18cf15457f78d04 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Sun, 11 Feb 2024 17:05:53 +0100 Subject: [PATCH] package:libselinux: replace PKG_PYTHON_DISTUTILS_ENV 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: 09de823cbc7bd50a40e25f4166b4e42be94b0c7b Fixes: http://autobuild.buildroot.org/results/3fbbb741de33310c8cacab753a32e79c5e531036 Signed-off-by: Fabrice Fontaine Signed-off-by: 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 b8de21edaa..4a8d71050d 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 @@ -93,7 +93,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