From: Ladislav Michl <oss-lists@triops.cz>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH v1 10/17] libsemanage: version bump 2.1.9 -> 3.11
Date: Tue, 20 Oct 2026 13:49:03 +0200 [thread overview]
Message-ID: <0c6a09f299bfad5fb6c8bc05da851c47a79627c8.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/libsemanage.in | 13 ++++-------
rules/libsemanage.make | 49 ++++++++++++++++++++++++++++++------------
2 files changed, 39 insertions(+), 23 deletions(-)
diff --git a/rules/libsemanage.in b/rules/libsemanage.in
index 9d7ebf03d..e11efaaed 100644
--- a/rules/libsemanage.in
+++ b/rules/libsemanage.in
@@ -1,29 +1,24 @@
-## SECTION=staging
-## old section:
-### SECTION=selinux
+## SECTION=selinux
menuconfig LIBSEMANAGE
tristate
prompt "libsemanage "
+ select AUDIT
select BZIP2
select BZIP2_LIBBZ2
select LIBSEPOL
select LIBSELINUX
- select USTR
- select PYTHON if LIBSEMANAGE_PYTHON
+ select HOST_FLEX
+ select PYTHON3 if LIBSEMANAGE_PYTHON
select HOST_SWIG if LIBSEMANAGE_PYTHON
help
This package provides the shared libraries for SELinux policy management.
It uses libsepol for binary policy manipulation and libselinux for
interacting with the SELinux system.
- STAGING: remove in ptxdist-2020.12.0
- Old version that need to be updated. Moved to staging with libselinux.
-
if LIBSEMANAGE
config LIBSEMANAGE_PYTHON
bool "python wrapper"
- depends on STAGING
endif
diff --git a/rules/libsemanage.make b/rules/libsemanage.make
index 9e8a641e9..c9972c474 100644
--- a/rules/libsemanage.make
+++ b/rules/libsemanage.make
@@ -14,36 +14,57 @@ PACKAGES-$(PTXCONF_LIBSEMANAGE) += libsemanage
#
# Paths and names
#
-LIBSEMANAGE_VERSION := 2.1.9
-LIBSEMANAGE_MD5 := 209e11da5b36c595a796751583f016f8
+LIBSEMANAGE_VERSION := $(SELINUX_VERSION)
+LIBSEMANAGE_SHA256 := e76160286bbfb0821602c6c0c3220ebcf366ad3246d3b9d0a0fbefcd35e86043
LIBSEMANAGE := libsemanage-$(LIBSEMANAGE_VERSION)
LIBSEMANAGE_SUFFIX := tar.gz
-LIBSEMANAGE_URL := https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20120924/$(LIBSEMANAGE).$(LIBSEMANAGE_SUFFIX)
+LIBSEMANAGE_URL := $(SELINUX_URL)/$(LIBSEMANAGE).$(LIBSEMANAGE_SUFFIX)
LIBSEMANAGE_SOURCE := $(SRCDIR)/$(LIBSEMANAGE).$(LIBSEMANAGE_SUFFIX)
LIBSEMANAGE_DIR := $(BUILDDIR)/$(LIBSEMANAGE)
LIBSEMANAGE_LICENSE := LGPL-2.1-or-later
+LIBSEMANAGE_LICENSE_FILES := file://LICENSE;md5=03068f550c635f6520e0f0252da412fc
+LIBSEMANAGE_CVE_PRODUCT := selinuxproject:libsemanage
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
-LIBSEMANAGE_CONF_TOOL := NO
-# no := due to CROSS_PYTHON
-LIBSEMANAGE_MAKE_ENV = \
- $(CROSS_ENV) \
- CFLAGS="-O2 -Wall -g" \
- PYTHON=$(CROSS_PYTHON)
+LIBSEMANAGE_CONF_TOOL := NO
+LIBSEMANAGE_MAKE_ENV := $(CROSS_ENV)
+LIBSEMANAGE_MAKE_OPT = \
+ PREFIX=/usr \
+ LIBDIR=/usr/lib \
+ INCLUDEDIR=/usr/include \
+ SYSCONFDIR=/etc \
+ DISABLE_SHARED=n \
+ CFLAGS="-O2 -Wall -g"
-LIBSEMANAGE_MAKE_OPT := \
- LIBDIR=$(PTXDIST_SYSROOT_TARGET)/usr/lib
-LIBSEMANAGE_INSTALL_OPT := \
+ifdef PTXCONF_LIBSEMANAGE_PYTHON
+LIBSEMANAGE_MAKE_OPT += \
+ PYTHON=$(CROSS_PYTHON3) \
+ PYTHONLIBDIR=$(PYTHON3_SITEPACKAGES)
+endif
+
+LIBSEMANAGE_INSTALL_OPT = \
+ $(LIBSEMANAGE_MAKE_OPT) \
install
ifdef PTXCONF_LIBSEMANAGE_PYTHON
-LIBSEMANAGE_MAKE_OPT += pywrap
LIBSEMANAGE_INSTALL_OPT += install-pywrap
endif
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/libsemanage.compile:
+ @$(call targetinfo)
+ @$(call world/compile, LIBSEMANAGE)
+ifdef PTXCONF_LIBSEMANAGE_PYTHON
+ @$(call compile, LIBSEMANAGE, $(LIBSEMANAGE_MAKE_OPT) pywrap)
+endif
+ @$(call touch)
+
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
@@ -61,7 +82,7 @@ $(STATEDIR)/libsemanage.targetinstall:
@$(call install_alternative, libsemanage, 0, 0, 0644, /etc/selinux/semanage.conf)
ifdef PTXCONF_LIBSEMANAGE_PYTHON
- @$(call install_tree, libsemanage, 0, 0, -, $(PYTHON_SITEPACKAGES))
+ @$(call install_tree, libsemanage, 0, 0, -, $(PYTHON3_SITEPACKAGES))
endif
@$(call install_finish, libsemanage)
--
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 ` [ptxdist] [PATCH v1 05/17] libsepol: version bump 2.1.8 -> 3.11 Ladislav Michl
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 ` Ladislav Michl [this message]
2026-10-20 11:49 ` [ptxdist] [PATCH v1 11/17] Revert "checkpolicy: " 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=0c6a09f299bfad5fb6c8bc05da851c47a79627c8.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