mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: Ladislav Michl <oss-lists@triops.cz>
Cc: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH v2 10/17] libsemanage: version bump 2.1.9 -> 3.11
Date: Sat, 14 Nov 2026 17:05:12 +0100	[thread overview]
Message-ID: <aviGuHIjaKdWRPcA@pengutronix.de> (raw)
In-Reply-To: <20261031203823.357406-11-oss-lists@triops.cz>

On Sat, Oct 31, 2026 at 09:38:11PM +0100, Ladislav Michl wrote:
> From: Ladislav Michl <ladis@triops.cz>
> 
> Signed-off-by: Ladislav Michl <ladis@triops.cz>
> ---
>  CHANGES:
>  - v2: make python wrapper depend on PYTHON3 instead of selecting it.

see my comments for libselinux.

> 
>  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..aaf46c4a9 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 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
> +	depends on PYTHON3
>  
>  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)

Dito.

> +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))

Dito.

Michael

>  endif
>  	@$(call install_finish, libsemanage)
>  
> -- 
> 2.47.3
> 
> 
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



  reply	other threads:[~2026-11-14 16:05 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-31 20:38 [ptxdist] [PATCH v2 00/17] selinux: back at version 3.11 Ladislav Michl
2026-10-31 20:38 ` [ptxdist] [PATCH v2 01/17] selinux: add common version and URL Ladislav Michl
2026-10-31 20:38 ` [ptxdist] [PATCH v2 02/17] Revert "python: remove after more than one year in staging" Ladislav Michl
2026-10-31 20:38 ` [ptxdist] [PATCH v2 03/17] host-swig: version bump 4.0.1 -> 4.5.1 Ladislav Michl
2026-10-31 20:38 ` [ptxdist] [PATCH v2 04/17] Revert "*libsepol: remove" Ladislav Michl
2026-10-31 20:38 ` [ptxdist] [PATCH v2 05/17] libsepol: version bump 2.1.8 -> 3.11 Ladislav Michl
2026-10-31 20:38 ` [ptxdist] [PATCH v2 06/17] Revert "libselinux: remove after more than one year in staging" Ladislav Michl
2026-10-31 20:38 ` [ptxdist] [PATCH v2 07/17] libselinux: version bump 2.1.12 -> 3.11 Ladislav Michl
2026-11-14 15:55   ` Michael Olbrich
2026-10-31 20:38 ` [ptxdist] [PATCH v2 08/17] audit: new package Ladislav Michl
2026-10-31 20:38 ` [ptxdist] [PATCH v2 09/17] Revert "libsemanage: remove after more than one year in staging" Ladislav Michl
2026-10-31 20:38 ` [ptxdist] [PATCH v2 10/17] libsemanage: version bump 2.1.9 -> 3.11 Ladislav Michl
2026-11-14 16:05   ` Michael Olbrich [this message]
2026-10-31 20:38 ` [ptxdist] [PATCH v2 11/17] Revert "checkpolicy: remove after more than one year in staging" Ladislav Michl
2026-10-31 20:38 ` [ptxdist] [PATCH v2 12/17] checkpolicy: version bump 2.1.11 -> 3.11 Ladislav Michl
2026-10-31 20:38 ` [ptxdist] [PATCH v2 13/17] Revert "policycoreutils: remove after more than one year in staging" Ladislav Michl
2026-10-31 20:38 ` [ptxdist] [PATCH v2 14/17] policycoreutils: version bump 2.1.13 -> 3.11 Ladislav Michl
2026-11-14 16:01   ` Michael Olbrich
2026-10-31 20:38 ` [ptxdist] [PATCH v2 15/17] Revert "sepolgen: remove after one year in staging" Ladislav Michl
2026-10-31 20:38 ` [ptxdist] [PATCH v2 16/17] sepolgen: version bump 1.1.8 -> 3.11 Ladislav Michl
2026-11-14 16:07   ` Michael Olbrich
2026-10-31 20:38 ` [ptxdist] [PATCH v2 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=aviGuHIjaKdWRPcA@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=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