[openwrt/openwrt] policycoreutils: update to 3.9
LEDE Commits
lede-commits at lists.infradead.org
Wed Nov 26 15:02:51 PST 2025
nick pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/c7fec6689701fcc02cd8d52c68849b936ead099e
commit c7fec6689701fcc02cd8d52c68849b936ead099e
Author: Nick Hainke <vincent at systemli.org>
AuthorDate: Sun Nov 23 17:20:26 2025 +0100
policycoreutils: update to 3.9
Release Notes:
https://github.com/SELinuxProject/selinux/wiki/Releases#release-39
Remove upstreamed patch:
- 0001-policycoreutils-run_init-define-_GNU_SOURCE.patch
Link: https://github.com/openwrt/openwrt/pull/20908
Signed-off-by: Nick Hainke <vincent at systemli.org>
---
package/utils/policycoreutils/Makefile | 6 ++---
...licycoreutils-run_init-define-_GNU_SOURCE.patch | 29 ----------------------
2 files changed, 3 insertions(+), 32 deletions(-)
diff --git a/package/utils/policycoreutils/Makefile b/package/utils/policycoreutils/Makefile
index 639e6c4480..f0da9dcd9b 100644
--- a/package/utils/policycoreutils/Makefile
+++ b/package/utils/policycoreutils/Makefile
@@ -6,12 +6,12 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=policycoreutils
-PKG_VERSION:=3.8.1
-PKG_RELEASE:=2
+PKG_VERSION:=3.9
+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:=eef23196b501d141cb95f5fc52ef1a7289f459b65e4415ea0fe9aeedc5d80ef2
+PKG_HASH:=44a294139876cf4c7969cb6a75d1932cb42543d74a7661760ded44a20bf7ebe8
PKG_INSTALL:=1
HOST_BUILD_DEPENDS:=libsemanage/host gettext-full/host
PKG_BUILD_DEPENDS:=BUSYBOX_CONFIG_PAM:libpam gettext-full/host
diff --git a/package/utils/policycoreutils/patches/0001-policycoreutils-run_init-define-_GNU_SOURCE.patch b/package/utils/policycoreutils/patches/0001-policycoreutils-run_init-define-_GNU_SOURCE.patch
deleted file mode 100644
index 40f505a33b..0000000000
--- a/package/utils/policycoreutils/patches/0001-policycoreutils-run_init-define-_GNU_SOURCE.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-From 2ffd51650fb1886d6466f652d2e626b1bb6a5ce3 Mon Sep 17 00:00:00 2001
-From: Robert Marko <robimarko at gmail.com>
-Date: Thu, 1 May 2025 21:15:11 +0200
-Subject: [PATCH] policycoreutils: run_init: define _GNU_SOURCE
-
-Trying to compile run_init with musl will fail with:
-run_init.c: In function 'authenticate_via_shadow_passwd':
-run_init.c:206:40: error: implicit declaration of function 'getpass' [-Wimplicit-function-declaration]
- 206 | if (!(unencrypted_password_s = getpass(PASSWORD_PROMPT))) {
-
-This is because getpass in musl is guarded only for _GNU_SOURCE, so
-define _GNU_SOURCE for run_init.
-
-Signed-off-by: Robert Marko <robimarko at gmail.com>
----
- run_init/run_init.c | 2 ++
- 1 file changed, 2 insertions(+)
-
---- a/run_init/run_init.c
-+++ b/run_init/run_init.c
-@@ -37,6 +37,8 @@
- *
- *************************************************************************/
-
-+#define _GNU_SOURCE
-+
- #include <stdio.h>
- #include <stdlib.h> /* for malloc(), realloc(), free() */
- #include <pwd.h> /* for getpwuid() */
More information about the lede-commits
mailing list