diff --git a/meta-oe/recipes-kernel/minicoredumper/files/0001-coreinject-fix-assignment-of-const-qualified-type.patch b/meta-oe/recipes-kernel/minicoredumper/files/0001-coreinject-fix-assignment-of-const-qualified-type.patch deleted file mode 100644 index ace46202b7..0000000000 --- a/meta-oe/recipes-kernel/minicoredumper/files/0001-coreinject-fix-assignment-of-const-qualified-type.patch +++ /dev/null @@ -1,44 +0,0 @@ -From 07023a2d2ef059a039fef83ee4b33a7e47ca8e3e Mon Sep 17 00:00:00 2001 -From: John Ogness -Date: Tue, 24 Feb 2026 11:33:40 +0106 -Subject: [PATCH] coreinject: fix assignment of const-qualified type - -coreinject fails to build with glibc 2.43. - -The issue is due to a new glibc feature: - -* For ISO C23, the functions bsearch, memchr, strchr, strpbrk, strrchr, - strstr, wcschr, wcspbrk, wcsrchr, wcsstr and wmemchr that return - pointers into their input arrays now have definitions as macros that - return a pointer to a const-qualified type when the input argument is - a pointer to a const-qualified type. - -The fix is trivial since the returned strrchr() value is only used in -a way compatible with const pointers. The data type was simply defined -incorrectly. - -Reported-by: Aurelien Jarno -Closes: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1128695 -Signed-off-by: John Ogness - -Upstream-Status: Backport [https://github.com/diamon/minicoredumper/commit/eb66f10ae26edf94bf41d513ce90a4eb1e0f11b3] -Signed-off-by: Gyorgy Sarvari ---- - src/coreinject/main.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/src/coreinject/main.c b/src/coreinject/main.c -index faf8edf..198485d 100644 ---- a/src/coreinject/main.c -+++ b/src/coreinject/main.c -@@ -240,9 +240,9 @@ static int inject_data(FILE *f_core, FILE *f_symmap, const char *b_fname, - struct ident_data indirect; - struct ident_data direct; - const char *ident; -+ const char *p; - FILE *f_dump; - int err = 0; -- char *p; - - /* extract ident name from file path */ - p = strrchr(b_fname, '/'); diff --git a/meta-oe/recipes-kernel/minicoredumper/files/0001-corestripper-Fix-uninitialized-warning.patch b/meta-oe/recipes-kernel/minicoredumper/files/0001-corestripper-Fix-uninitialized-warning.patch deleted file mode 100644 index 8b90d33e1b..0000000000 --- a/meta-oe/recipes-kernel/minicoredumper/files/0001-corestripper-Fix-uninitialized-warning.patch +++ /dev/null @@ -1,53 +0,0 @@ -From bb44bb643cd2a2f937331b4d1a76b03556b718a2 Mon Sep 17 00:00:00 2001 -From: Khem Raj -Date: Tue, 23 Jan 2024 11:36:41 -0800 -Subject: [PATCH] corestripper: Fix uninitialized warning - -Clang finds more open paths where ret can be uninitialized - -Fixes -| ../../../git/src/minicoredumper/corestripper.c:2768:13: error: variable 'ret' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized] -| 2768 | } else if (di->core_fd >= 0) { -| | ^~~~~~~~~~~~~~~~ -| ../../../git/src/minicoredumper/corestripper.c:2773:9: note: uninitialized use occurs here -| 2773 | return ret; -| | ^~~ -| ../../../git/src/minicoredumper/corestripper.c:2768:9: note: remove the 'if' if its condition is always true -| 2768 | } else if (di->core_fd >= 0) { -| | ^~~~~~~~~~~~~~~~~~~~~ -| ../../../git/src/minicoredumper/corestripper.c:2763:9: note: initialize the variable 'ret' to silence this warning -| 2763 | int ret; -| | ^ -| | = 0 - -Upstream-Status: Submitted [https://github.com/diamon/minicoredumper/pull/15] -Signed-off-by: Khem Raj ---- - src/minicoredumper/corestripper.c | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/src/minicoredumper/corestripper.c b/src/minicoredumper/corestripper.c -index 3eb9089..e9e3936 100644 ---- a/src/minicoredumper/corestripper.c -+++ b/src/minicoredumper/corestripper.c -@@ -2707,7 +2707,7 @@ static int dump_data_content_file(struct dump_info *di, - char *tmp_path; - FILE *file; - int len; -- int ret; -+ int ret = -1; - - len = strlen(di->dst_dir) + strlen("/dumps/") + 32 + - strlen(dd->ident) + 1; -@@ -2760,7 +2760,7 @@ out: - static int dump_data_content(struct dump_info *di, struct mcd_dump_data *dd, - const char *symname) - { -- int ret; -+ int ret = -1; - - if (dd->ident) { - /* dump to external file */ --- -2.43.0 - diff --git a/meta-oe/recipes-kernel/minicoredumper/files/0002-Fix-2038-year-problem-in-timestamp-handling.patch b/meta-oe/recipes-kernel/minicoredumper/files/0002-Fix-2038-year-problem-in-timestamp-handling.patch deleted file mode 100644 index 977f59b976..0000000000 --- a/meta-oe/recipes-kernel/minicoredumper/files/0002-Fix-2038-year-problem-in-timestamp-handling.patch +++ /dev/null @@ -1,55 +0,0 @@ -From 0f80d5813679320b69ae1d2aefb58af1e0e2d269 Mon Sep 17 00:00:00 2001 -From: Jiaying Song -Date: Wed, 10 Dec 2025 14:22:00 +0800 -Subject: [PATCH] Fix 2038 year problem in timestamp handling - -The minicoredumper uses 'long' type for timestamp which causes -overflow on 32-bit systems after 2038-01-19. This leads to -incorrect timestamp formatting in core dump directory names. - -Change timestamp variable from 'long' to 'time_t' and use -'strtoll' instead of 'strtol' to handle 64-bit timestamps -properly on 32-bit systems. - -Upstream-Status: Submitted -[https://github.com/diamon/minicoredumper/pull/24] - -Signed-off-by: Jiaying Song ---- - src/minicoredumper/corestripper.c | 6 +++--- - 1 file changed, 3 insertions(+), 3 deletions(-) - -diff --git a/src/minicoredumper/corestripper.c b/src/minicoredumper/corestripper.c -index e9e3936..e52802e 100644 ---- a/src/minicoredumper/corestripper.c -+++ b/src/minicoredumper/corestripper.c -@@ -617,7 +617,7 @@ static int init_di(struct dump_info *di, int argc, char *argv[]) - if (*p != 0) - return 1; - -- di->timestamp = strtol(argv[5], &p, 10); -+ di->timestamp = (time_t)strtoll(argv[5], &p, 10); - if (*p != 0) - return 1; - -@@ -3715,7 +3715,7 @@ static int do_all_dumps(struct dump_info *di, int argc, char *argv[]) - bool live_dumper; - char *comm_base; - pid_t core_pid; -- long timestamp; -+ time_t timestamp; - char *comm; - char *exe; - char *p; -@@ -3750,7 +3750,7 @@ static int do_all_dumps(struct dump_info *di, int argc, char *argv[]) - if (*p != 0) - return 1; - -- timestamp = strtol(argv[5], &p, 10); -+ timestamp = (time_t)strtoll(argv[5], &p, 10); - if (*p != 0) - return 1; - --- -2.34.1 - diff --git a/meta-oe/recipes-kernel/minicoredumper/minicoredumper_2.0.7.bb b/meta-oe/recipes-kernel/minicoredumper/minicoredumper_2.0.8.bb similarity index 80% rename from meta-oe/recipes-kernel/minicoredumper/minicoredumper_2.0.7.bb rename to meta-oe/recipes-kernel/minicoredumper/minicoredumper_2.0.8.bb index ff4fdf358e..ed8085b73a 100644 --- a/meta-oe/recipes-kernel/minicoredumper/minicoredumper_2.0.7.bb +++ b/meta-oe/recipes-kernel/minicoredumper/minicoredumper_2.0.8.bb @@ -2,23 +2,20 @@ SUMMARY = "minicoredumper provides an alternate core dump facility for Linux \ to allow minimal and customized crash dumps" HOMEPAGE = "https://www.linutronix.de/minicoredumper/" LICENSE = " LGPL-2.1-only & BSD-2-Clause" -LIC_FILES_CHKSUM = "file://COPYING;md5=71827c617ec7b45a0dd23658347cc1e9 \ +LIC_FILES_CHKSUM = "file://COPYING;md5=be36ac4e46b05b190e6b9d3ec415aa63 \ file://COPYING.BSD;md5=b915ac80d5236d6aa659cb986daf00e5 \ - file://COPYING.LGPLv2.1;md5=321bf41f280cf805086dd5a720b37785 \ + file://COPYING.LGPLv2.1;md5=3254c7b4d4712a396bd036bfb211a908 \ " DEPENDS = "elfutils dbus dbus-glib-native glib-2.0 dbus-glib util-linux json-c" inherit autotools pkgconfig ptest systemd update-rc.d -SRCREV = "ca6e7ad62b4cf984de84aa081024c4e45632cecb" +SRCREV = "dd1d6044ab6e255b7aadbe7a80eebd6a4eaa0469" SRC_URI = "git://github.com/diamon/minicoredumper;protocol=https;branch=master \ file://minicoredumper.service \ file://minicoredumper.init \ file://run-ptest \ - file://0001-corestripper-Fix-uninitialized-warning.patch \ - file://0002-Fix-2038-year-problem-in-timestamp-handling.patch \ - file://0001-coreinject-fix-assignment-of-const-qualified-type.patch \ "