From: Ladislav Michl <oss-lists@triops.cz>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH v1 05/17] libsepol: version bump 2.1.8 -> 3.11
Date: Tue, 20 Oct 2026 13:48:58 +0200 [thread overview]
Message-ID: <64550324d7507df3ee3dd89ed357c3dc4e6731ff.1792491301.git.ladis@triops.cz> (raw)
In-Reply-To: <cover.1792491301.git.ladis@triops.cz>
From: Ladislav Michl <ladis@triops.cz>
Signed-off-by: Ladislav Michl <ladis@triops.cz>
---
rules/host-libsepol.in | 1 +
rules/host-libsepol.make | 11 +++++++----
rules/libsepol.in | 1 +
rules/libsepol.make | 19 ++++++++++++-------
4 files changed, 21 insertions(+), 11 deletions(-)
diff --git a/rules/host-libsepol.in b/rules/host-libsepol.in
index fd5c71bdf..042b9a408 100644
--- a/rules/host-libsepol.in
+++ b/rules/host-libsepol.in
@@ -2,4 +2,5 @@
config HOST_LIBSEPOL
tristate
+ select HOST_FLEX
default y if ALLYES
diff --git a/rules/host-libsepol.make b/rules/host-libsepol.make
index b20b2e113..98e136e66 100644
--- a/rules/host-libsepol.make
+++ b/rules/host-libsepol.make
@@ -15,10 +15,13 @@ HOST_PACKAGES-$(PTXCONF_HOST_LIBSEPOL) += host-libsepol
# Prepare
# ----------------------------------------------------------------------------
-HOST_LIBSEPOL_CONF_TOOL := NO
-HOST_LIBSEPOL_MAKE_ENV := \
- $(HOST_ENV) \
- SHLIBDIR=$(HOST_LIBSEPOL_PKGDIR)/usr/lib \
+HOST_LIBSEPOL_CONF_TOOL := NO
+HOST_LIBSEPOL_MAKE_ENV := $(HOST_ENV)
+HOST_LIBSEPOL_MAKE_OPT := \
+ SHLIBDIR=/usr/lib \
CFLAGS="-O2 -Wall -g"
+HOST_LIBSEPOL_INSTALL_OPT := \
+ $(HOST_LIBSEPOL_MAKE_OPT) \
+ install
# vim: syntax=make
diff --git a/rules/libsepol.in b/rules/libsepol.in
index 4ac087610..08e0aba60 100644
--- a/rules/libsepol.in
+++ b/rules/libsepol.in
@@ -3,6 +3,7 @@
config LIBSEPOL
tristate
prompt "libsepol"
+ select HOST_FLEX
help
libsepol provides an API for the manipulation of SELinux binary policies.
It is used by checkpolicy (the policy compiler) and similar tools, as well
diff --git a/rules/libsepol.make b/rules/libsepol.make
index cf5f4ef4d..6e63b6b1a 100644
--- a/rules/libsepol.make
+++ b/rules/libsepol.make
@@ -14,24 +14,29 @@ PACKAGES-$(PTXCONF_LIBSEPOL) += libsepol
#
# Paths and names
#
-LIBSEPOL_VERSION := 2.1.8
-LIBSEPOL_MD5 := 56fa100ed85d7f06bd92f2892d92b3b0
+LIBSEPOL_VERSION := $(SELINUX_VERSION)
+LIBSEPOL_SHA256 := 79f3d2c88f44b7eb5cf54d9792e03232297e17f97a179163f2750099a00f164d
LIBSEPOL := libsepol-$(LIBSEPOL_VERSION)
LIBSEPOL_SUFFIX := tar.gz
-LIBSEPOL_URL := https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20120924/$(LIBSEPOL).$(LIBSEPOL_SUFFIX)
+LIBSEPOL_URL := $(SELINUX_URL)/$(LIBSEPOL).$(LIBSEPOL_SUFFIX)
LIBSEPOL_SOURCE := $(SRCDIR)/$(LIBSEPOL).$(LIBSEPOL_SUFFIX)
LIBSEPOL_DIR := $(BUILDDIR)/$(LIBSEPOL)
LIBSEPOL_LICENSE := LGPL-2.1-or-later
+LIBSEPOL_LICENSE_FILES := file://LICENSE;md5=a6f89e2100d9b6cdffcea4f398e37343
+LIBSEPOL_CVE_PRODUCT := selinuxproject:libsepol
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
-LIBSEPOL_CONF_TOOL := NO
-LIBSEPOL_MAKE_ENV := \
- $(CROSS_ENV) \
- SHLIBDIR=$(LIBSEPOL_PKGDIR)/usr/lib \
+LIBSEPOL_CONF_TOOL := NO
+LIBSEPOL_MAKE_ENV := $(CROSS_ENV)
+LIBSEPOL_MAKE_OPT := \
+ SHLIBDIR=/usr/lib \
CFLAGS="-O2 -Wall -g"
+LIBSEPOL_INSTALL_OPT := \
+ $(LIBSEPOL_MAKE_OPT) \
+ install
# ----------------------------------------------------------------------------
# Target-Install
--
2.47.3
next prev parent reply other threads:[~2026-10-20 11:49 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-20 11:48 [ptxdist] [PATCH v1 00/17] selinux: back at version 3.11 Ladislav Michl
2026-10-20 11:48 ` [ptxdist] [PATCH v1 01/17] selinux: add common version and URL Ladislav Michl
2026-10-20 11:48 ` [ptxdist] [PATCH v1 02/17] Revert "python: remove after more than one year in staging" Ladislav Michl
2026-10-20 11:48 ` [ptxdist] [PATCH v1 03/17] host-swig: version bump 4.0.1 -> 4.5.1 Ladislav Michl
2026-10-20 11:48 ` [ptxdist] [PATCH v1 04/17] Revert "*libsepol: remove" Ladislav Michl
2026-10-20 11:48 ` Ladislav Michl [this message]
2026-10-20 11:48 ` [ptxdist] [PATCH v1 06/17] Revert "libselinux: remove after more than one year in staging" Ladislav Michl
2026-10-20 11:49 ` [ptxdist] [PATCH v1 07/17] libselinux: version bump 2.1.12 -> 3.11 Ladislav Michl
2026-10-20 11:49 ` [ptxdist] [PATCH v1 08/17] audit: new package Ladislav Michl
2026-10-20 11:49 ` [ptxdist] [PATCH v1 09/17] Revert "libsemanage: remove after more than one year in staging" Ladislav Michl
2026-10-20 11:49 ` [ptxdist] [PATCH v1 10/17] libsemanage: version bump 2.1.9 -> 3.11 Ladislav Michl
2026-10-20 11:49 ` [ptxdist] [PATCH v1 11/17] Revert "checkpolicy: remove after more than one year in staging" Ladislav Michl
2026-10-20 11:49 ` [ptxdist] [PATCH v1 12/17] checkpolicy: version bump 2.1.11 -> 3.11 Ladislav Michl
2026-10-20 11:49 ` [ptxdist] [PATCH v1 13/17] Revert "policycoreutils: remove after more than one year in staging" Ladislav Michl
2026-10-20 11:49 ` [ptxdist] [PATCH v1 14/17] policycoreutils: version bump 2.1.13 -> 3.11 Ladislav Michl
2026-10-26 13:22 ` Michael Olbrich
2026-10-27 0:07 ` Ladislav Michl
2026-10-20 11:49 ` [ptxdist] [PATCH v1 15/17] Revert "sepolgen: remove after one year in staging" Ladislav Michl
2026-10-20 11:49 ` [ptxdist] [PATCH v1 16/17] sepolgen: version bump 1.1.8 -> 3.11 Ladislav Michl
2026-10-20 11:49 ` [ptxdist] [PATCH v1 17/17] selinux: restore the global option Ladislav Michl
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=64550324d7507df3ee3dd89ed357c3dc4e6731ff.1792491301.git.ladis@triops.cz \
--to=oss-lists@triops.cz \
--cc=ptxdist@pengutronix.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox