package/libselinux: switch to pcre2

Switch to pcre2 which is available since version 3.2 and
50f0910cf0
as pcre is EOL

pcre2 is used by default since version 3.4 and
e0da140d82

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
Fabrice Fontaine 2022-04-24 22:00:14 +02:00 committed by Yann E. MORIN
parent 3bdfb5f5ad
commit 663b2edcd2
2 changed files with 7 additions and 5 deletions

View File

@ -4,7 +4,7 @@ config BR2_PACKAGE_LIBSELINUX
depends on !BR2_STATIC_LIBS
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5 # libsepol
select BR2_PACKAGE_LIBSEPOL
select BR2_PACKAGE_PCRE
select BR2_PACKAGE_PCRE2
select BR2_PACKAGE_MUSL_FTS if !BR2_TOOLCHAIN_USES_GLIBC
help
libselinux is the runtime SELinux library that provides

View File

@ -11,7 +11,7 @@ LIBSELINUX_LICENSE_FILES = LICENSE
LIBSELINUX_CPE_ID_VENDOR = selinuxproject
LIBSELINUX_DEPENDENCIES = \
$(BR2_COREUTILS_HOST_DEPENDENCY) host-pkgconf libsepol pcre
$(BR2_COREUTILS_HOST_DEPENDENCY) host-pkgconf libsepol pcre2
LIBSELINUX_INSTALL_STAGING = YES
@ -20,7 +20,8 @@ LIBSELINUX_INSTALL_STAGING = YES
LIBSELINUX_MAKE_OPTS = \
$(TARGET_CONFIGURE_OPTS) \
ARCH=$(NORMALIZED_ARCH) \
SHLIBDIR=/usr/lib
SHLIBDIR=/usr/lib \
USE_PCRE2=y
LIBSELINUX_MAKE_INSTALL_TARGETS = install
@ -76,14 +77,15 @@ define LIBSELINUX_INSTALL_TARGET_CMDS
endef
HOST_LIBSELINUX_DEPENDENCIES = \
host-pkgconf host-libsepol host-pcre host-swig host-python3
host-pkgconf host-libsepol host-pcre2 host-swig host-python3
HOST_LIBSELINUX_MAKE_OPTS = \
$(HOST_CONFIGURE_OPTS) \
PREFIX=$(HOST_DIR) \
SHLIBDIR=$(HOST_DIR)/lib \
$(HOST_PKG_PYTHON_DISTUTILS_ENV) \
PYTHON=python$(PYTHON3_VERSION_MAJOR)
PYTHON=python$(PYTHON3_VERSION_MAJOR) \
USE_PCRE2=y
define HOST_LIBSELINUX_BUILD_CMDS
$(HOST_MAKE_ENV) $(MAKE1) -C $(@D) \