[packages/libsemanage] - updated to 3.10

qboosh qboosh at pld-linux.org
Thu Apr 23 21:23:14 CEST 2026


commit 011d5b120f7e1304b6e479c9e034971b9adff863
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Apr 23 21:23:56 2026 +0200

    - updated to 3.10

 libsemanage-libexecdir.patch | 20 ++++++++++----------
 libsemanage.spec             | 12 ++++++------
 2 files changed, 16 insertions(+), 16 deletions(-)
---
diff --git a/libsemanage.spec b/libsemanage.spec
index 1037835..8cfc8de 100644
--- a/libsemanage.spec
+++ b/libsemanage.spec
@@ -2,17 +2,17 @@
 # Conditional build:
 %bcond_without	python	# Python 3 bindings
 #
-%define	selinux_ver	3.8
+%define	selinux_ver	3.10
 Summary:	An interface for SELinux management
 Summary(pl.UTF-8):	Interfejs do zarządzania SELinuksem
 Name:		libsemanage
-Version:	3.8.1
+Version:	3.10
 Release:	1
 License:	LGPL v2.1+
 Group:		Libraries
 #Source0Download: https://github.com/SELinuxProject/selinux/wiki/Releases
 Source0:	https://github.com/SELinuxProject/selinux/releases/download/%{version}/%{name}-%{version}.tar.gz
-# Source0-md5:	252486b4790b01bab459a30126027555
+# Source0-md5:	fc210165ede52547ebf3d9dfa0d66f50
 Patch0:		%{name}-libexecdir.patch
 URL:		https://github.com/SELinuxProject/selinux/wiki
 BuildRequires:	audit-libs-devel
@@ -115,7 +115,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%attr(755,root,root) /%{_lib}/libsemanage.so.2
+/%{_lib}/libsemanage.so.2
 %dir %{_sysconfdir}/selinux
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/selinux/semanage.conf
 %dir %{_libexecdir}/selinux
@@ -123,7 +123,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files devel
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libsemanage.so
+%{_libdir}/libsemanage.so
 %{_pkgconfigdir}/libsemanage.pc
 %{_includedir}/semanage
 %{_mandir}/man3/semanage_*.3*
@@ -135,7 +135,7 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with python}
 %files -n python3-semanage
 %defattr(644,root,root,755)
-%attr(755,root,root) %{py3_sitedir}/_semanage.cpython-*.so
+%{py3_sitedir}/_semanage.cpython-*.so
 %{py3_sitedir}/semanage.py
 %{py3_sitedir}/__pycache__/semanage.cpython-*.py[co]
 %attr(755,root,root) %{_libexecdir}/selinux/semanage_migrate_store
diff --git a/libsemanage-libexecdir.patch b/libsemanage-libexecdir.patch
index 343bca9..2e4267c 100644
--- a/libsemanage-libexecdir.patch
+++ b/libsemanage-libexecdir.patch
@@ -1,7 +1,7 @@
---- libsemanage-2.4/src/conf-parse.y.orig	2015-02-02 15:38:10.000000000 +0100
-+++ libsemanage-2.4/src/conf-parse.y	2015-10-25 16:33:24.439519078 +0100
-@@ -320,7 +320,7 @@
- 	conf->store_path = strdup(basename(selinux_policy_root()));
+--- libsemanage-3.10/src/conf-parse.y.orig	2026-02-02 03:01:16.000000000 +0100
++++ libsemanage-3.10/src/conf-parse.y	2026-04-23 21:21:09.023119399 +0200
+@@ -401,7 +401,7 @@ static int semanage_conf_init(semanage_c
+ 	}
  	conf->ignoredirs = NULL;
  	conf->store_root_path = strdup("/var/lib/selinux");
 -	conf->compiler_directory_path = strdup("/usr/libexec/selinux/hll");
@@ -9,9 +9,9 @@
  	conf->policyvers = sepol_policy_kern_vers_max();
  	conf->target_platform = SEPOL_TARGET_SELINUX;
  	conf->expand_check = 1;
---- libsemanage-2.8/src/Makefile.orig	2018-05-24 20:21:09.000000000 +0200
-+++ libsemanage-2.8/src/Makefile	2018-06-09 08:48:09.813027697 +0200
-@@ -10,6 +10,7 @@
+--- libsemanage-3.10/src/Makefile.orig	2026-02-02 03:01:16.000000000 +0100
++++ libsemanage-3.10/src/Makefile	2026-04-23 21:22:06.306142404 +0200
+@@ -10,6 +10,7 @@ PKG_CONFIG ?= pkg-config
  # Installation directories.
  PREFIX ?= /usr
  LIBDIR ?= $(PREFIX)/lib
@@ -19,11 +19,11 @@
  INCLUDEDIR ?= $(PREFIX)/include
  SYSCONFDIR ?= /etc
  PYINC ?= $(shell $(PKG_CONFIG) --cflags $(PYPREFIX))
-@@ -58,7 +59,7 @@
+@@ -60,7 +61,7 @@ CFLAGS ?= -Werror -Wall -W -Wundef -Wsha
  SWIG_CFLAGS += -Wno-error -Wno-unused-but-set-variable -Wno-unused-variable -Wno-shadow \
- 		-Wno-unused-parameter -Wno-missing-prototypes
+ 		-Wno-unused-parameter -Wno-missing-prototypes -Wno-missing-field-initializers
  
--override CFLAGS += -I../include -D_GNU_SOURCE
+-override CFLAGS += -I../include -I../../libselinux/include -D_GNU_SOURCE
 +override CFLAGS += -I../include -D_GNU_SOURCE -DLIBEXECDIR=\"$(LIBEXECDIR)\"
  RANLIB ?= ranlib
  
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libsemanage.git/commitdiff/011d5b120f7e1304b6e479c9e034971b9adff863



More information about the pld-cvs-commit mailing list