[openwrt/openwrt] kexec-tools: remove upstreamed patch

LEDE Commits lede-commits at lists.infradead.org
Fri Jan 23 16:45:46 PST 2026


hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/7c2666821708655ec8af3b032b7ff8820e562663

commit 7c2666821708655ec8af3b032b7ff8820e562663
Author: Roc Lai <laipeng668 at qq.com>
AuthorDate: Fri Jan 23 19:54:41 2026 +0800

    kexec-tools: remove upstreamed patch
    
    Remove upstreamed patch:
    - 020-i386-improve-basename-compatibility.patch
    
    Link: https://github.com/horms/kexec-tools/commit/4fd0553cdfe397920d418d8b90ac52f8f1303a2d
    
    Fixes: e75218ef4a27 ("kexec-tools: bump to 2.0.32")
    Signed-off-by: Roc Lai <laipeng668 at qq.com>
    Link: https://github.com/openwrt/openwrt/pull/21652
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 package/boot/kexec-tools/Makefile                  |  2 +-
 .../020-i386-improve-basename-compatibility.patch  | 37 ----------------------
 2 files changed, 1 insertion(+), 38 deletions(-)

diff --git a/package/boot/kexec-tools/Makefile b/package/boot/kexec-tools/Makefile
index e4723ef690..b9cdc4544c 100644
--- a/package/boot/kexec-tools/Makefile
+++ b/package/boot/kexec-tools/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=kexec-tools
 PKG_VERSION:=2.0.32
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=@KERNEL/linux/utils/kernel/kexec
diff --git a/package/boot/kexec-tools/patches/020-i386-improve-basename-compatibility.patch b/package/boot/kexec-tools/patches/020-i386-improve-basename-compatibility.patch
deleted file mode 100644
index 524832ce86..0000000000
--- a/package/boot/kexec-tools/patches/020-i386-improve-basename-compatibility.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-From 99f62f58fac57214ecc3c9aabf6bf61ac1e1201d Mon Sep 17 00:00:00 2001
-From: Tony Ambardar <itugrok at yahoo.com>
-Date: Fri, 7 Jun 2024 21:54:56 -0700
-Subject: [PATCH] i386: improve basename() compatibility
-
-Drop usage of glibc basename() in favour of a simpler implementation that
-works across GNU and musl libc, and is similar to existing code in fs2dt.c.
-
-This fixes compile errors seen building against musl.
-
-Signed-off-by: Tony Ambardar <itugrok at yahoo.com>
----
- kexec/arch/i386/x86-linux-setup.c | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
---- a/kexec/arch/i386/x86-linux-setup.c
-+++ b/kexec/arch/i386/x86-linux-setup.c
-@@ -320,6 +320,7 @@ static int add_edd_entry(struct x86_linu
- 	uint8_t devnum, version;
- 	uint32_t mbr_sig;
- 	struct edd_info *edd_info;
-+	char *basename = strrchr(sysfs_name,'/') + 1;
- 
- 	if (!current_mbr || !current_edd) {
- 		fprintf(stderr, "%s: current_edd and current_edd "
-@@ -332,9 +333,9 @@ static int add_edd_entry(struct x86_linu
- 
- 	/* extract the device number */
- 	char* sysfs_name_copy = strdup(sysfs_name);
--	if (sscanf(basename(sysfs_name_copy), "int13_dev%hhx", &devnum) != 1) {
-+	if (sscanf(basename, "int13_dev%hhx", &devnum) != 1) {
- 		fprintf(stderr, "Invalid format of int13_dev dir "
--				"entry: %s\n", basename(sysfs_name_copy));
-+				"entry: %s\n", basename);
- 		free(sysfs_name_copy);
- 		return -1;
- 	}




More information about the lede-commits mailing list