selinux-python: update to 3.8.1
authorRobert Marko <redacted>
Sun, 18 May 2025 16:06:32 +0000 (18:06 +0200)
committerRobert Marko <redacted>
Mon, 19 May 2025 09:44:34 +0000 (11:44 +0200)
Update to latest 3.8.1 version and drop upstreamed patch[1].

[1] https://github.com/SELinuxProject/selinux/commit/1a29c28afbb96b1e47001dc3dde38c4b6bd9da22

Signed-off-by: Robert Marko <redacted>
utils/selinux-python/Makefile
utils/selinux-python/patches/0004-sepolicy-fix-get_os_version-except.patch [deleted file]

index ababbae95e45ae8eebc4ef9f7affc7ff9a4818d5..9fa692e452085b8ba42d9341fa4528f4c0d8887e 100644 (file)
@@ -6,12 +6,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=selinux-python
-PKG_VERSION:=3.5
+PKG_VERSION:=3.8.1
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://github.com/SELinuxProject/selinux/releases/download/$(PKG_VERSION)
-PKG_HASH:=8245bb4dae59333461f19ca0c79a829081f07972fa5e3ad4c2b2b917dd71d96b
+PKG_HASH:=749025bfa4aa0e009bf3ffc455d565a18d4db71cfe796be4405821717206c25a
 
 PKG_MAINTAINER:=Thomas Petazzoni <thomas.petazzoni@bootlin.com>
 PKG_LICENSE:=GPL-2.0-only
diff --git a/utils/selinux-python/patches/0004-sepolicy-fix-get_os_version-except.patch b/utils/selinux-python/patches/0004-sepolicy-fix-get_os_version-except.patch
deleted file mode 100644 (file)
index f035846..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-commit 80ba6c49dec9c2c48775e70a4d4564ba5e59eea1
-Author: Jeffery To <jeffery.to@gmail.com>
-Date:   Mon Jun 19 14:15:45 2023 +0800
-
-    python/sepolicy: Fix get_os_version except clause
-    
-    This adds more exceptions to be handled by the except clause in
-    `get_os_version()`:
-    
-    * If the `distro` package is not installed, then `import distro` raises
-      a `ModuleNotFoundError` exception.
-    
-    * The distro documentation[1] lists `OSError` and `UnicodeError` as
-      exceptions that can be raised.
-    
-    * Older versions of distro (<= 1.6.0) may also raise
-      `subprocessCalledProcessError`[2].
-    
-    [1]: https://github.com/python-distro/distro/blob/v1.8.0/src/distro/distro.py#L749-L753
-    [2]: https://github.com/python-distro/distro/blob/v1.6.0/distro.py#L726-L728
-    
-    Signed-off-by: Jeffery To <jeffery.to@gmail.com>
-
---- a/sepolicy/sepolicy/__init__.py
-+++ b/sepolicy/sepolicy/__init__.py
-@@ -1240,11 +1240,12 @@ def boolean_desc(boolean):
- def get_os_version():
-+    import subprocess
-     system_release = ""
-     try:
-         import distro
-         system_release = distro.name(pretty=True)
--    except IOError:
-+    except (ModuleNotFoundError, OSError, IOError, UnicodeError, subprocess.CalledProcessError):
-         system_release = "Misc"
-     return system_release
git clone https://git.99rst.org/PROJECT