package/libsepol: bump to version 3.8.1

Changes:
    - SELinux policy version 34 is available starting with kernel 6.14.
    - Updated 0001-support-static-only.patch to apply cleanly and changed
      the email address from aduskett@gmail.com to
      adam.duskett@amarulasolutions.com

Signed-off-by: Adam Duskett <adam.duskett@amarulasolutions.com>
Signed-off-by: Arnout Vandecappelle <arnout@rnout.be>
This commit is contained in:
Adam Duskett
2025-05-15 14:10:19 +02:00
committed by Arnout Vandecappelle
parent cbabeb5077
commit 992b678393
4 changed files with 26 additions and 19 deletions

View File

@@ -1,6 +1,6 @@
From 2140db697c7f1da2a0a3f7bbcb14c1a0dade84e5 Mon Sep 17 00:00:00 2001
From: Adam Duskett <aduskett@gmail.com>
Date: Mon, 9 Oct 2017 16:28:12 -0400
From: Adam Duskett <adam.duskett@amarulasolutions.com>
Date: Wed, 14 May 2025 16:32:53 +0200
Subject: [PATCH] Add support for static-only build
Instead of unconditionally building shared libraries, this patch
@@ -10,17 +10,19 @@ libraries. It allows to support cases where the target architecture
does not have support for shared libraries.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Adam Duskett <aduskett@gmail.com>
[Updated for 3.8.1]
Signed-off-by: Adam Duskett <adam.duskett@amarulasolutions.com>
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
[Update for 2.8]
---
src/Makefile | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
src/Makefile | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff -durNw libsepol-2.7.orig/src/Makefile libsepol-2.7/src/Makefile
--- libsepol-2.7.orig/src/Makefile 2018-01-15 21:07:51.285183415 +0100
+++ libsepol-2.7/src/Makefile 2018-01-15 21:08:56.515182717 +0100
@@ -39,7 +39,12 @@
diff --git a/src/Makefile b/src/Makefile
index 71fa3ed..efb81bc 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -45,7 +45,12 @@ LDFLAGS += -undefined dynamic_lookup
LN=gln
endif
@@ -34,14 +36,17 @@ diff -durNw libsepol-2.7.orig/src/Makefile libsepol-2.7/src/Makefile
$(LIBA): $(OBJS)
@@ -81,8 +86,10 @@
@@ -87,8 +92,10 @@ endif
install: all
test -d $(DESTDIR)$(LIBDIR) || install -m 755 -d $(DESTDIR)$(LIBDIR)
install -m 644 $(LIBA) $(DESTDIR)$(LIBDIR)
test -d $(DESTDIR)$(LIBDIR) || install -m 755 -d $(DESTDIR)$(LIBDIR)
install -m 644 $(LIBA) $(DESTDIR)$(LIBDIR)
+ifeq ($(STATIC),)
test -d $(DESTDIR)$(SHLIBDIR) || install -m 755 -d $(DESTDIR)$(SHLIBDIR)
install -m 755 $(LIBSO) $(DESTDIR)$(SHLIBDIR)
test -d $(DESTDIR)$(SHLIBDIR) || install -m 755 -d $(DESTDIR)$(SHLIBDIR)
install -m 755 $(LIBSO) $(DESTDIR)$(SHLIBDIR)
+endif
test -d $(DESTDIR)$(LIBDIR)/pkgconfig || install -m 755 -d $(DESTDIR)$(LIBDIR)/pkgconfig
install -m 644 $(LIBPC) $(DESTDIR)$(LIBDIR)/pkgconfig
$(LN) -sf --relative $(DESTDIR)$(SHLIBDIR)/$(LIBSO) $(DESTDIR)$(LIBDIR)/$(TARGET)
test -d $(DESTDIR)$(LIBDIR)/pkgconfig || install -m 755 -d $(DESTDIR)$(LIBDIR)/pkgconfig
install -m 644 $(LIBPC) $(DESTDIR)$(LIBDIR)/pkgconfig
$(LN) -sf --relative $(DESTDIR)$(SHLIBDIR)/$(LIBSO) $(DESTDIR)$(LIBDIR)/$(TARGET)
--
2.49.0

View File

@@ -12,6 +12,7 @@ if BR2_PACKAGE_LIBSEPOL
config BR2_PACKAGE_LIBSEPOL_POLICY_VERSION
int "Policy version"
default 34 if BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_14
default 33 if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_8
default 32 if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_5
default 31 if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_13
@@ -32,6 +33,7 @@ config BR2_PACKAGE_LIBSEPOL_POLICY_VERSION
>= 4.13 < 5.5 31
>= 5.5 < 5.8 32
>= 5.8 33
>= 6.14 34
endif

View File

@@ -1,5 +1,5 @@
# From: https://github.com/SELinuxProject/selinux/wiki/Releases
sha256 cd741e25244e7ef6cd934d633614131a266c3eaeab33d8bfa45e8a93b45cc901 libsepol-3.7.tar.gz
sha256 0e78705305f955abd4c0654d37a5477ee26349ab74db9e2b03a7868897ae1ddf libsepol-3.8.1.tar.gz
# Hash for license file
sha256 6095e9ffa777dd22839f7801aa845b31c9ed07f3d6bf8a26dc5d2dec8ccc0ef3 LICENSE

View File

@@ -4,7 +4,7 @@
#
################################################################################
LIBSEPOL_VERSION = 3.7
LIBSEPOL_VERSION = 3.8.1
LIBSEPOL_SITE = https://github.com/SELinuxProject/selinux/releases/download/$(LIBSEPOL_VERSION)
LIBSEPOL_LICENSE = LGPL-2.1+
LIBSEPOL_LICENSE_FILES = LICENSE