minicoredumper: upgrade 2.0.7 -> 2.0.8

Upgrade minicoredumper from 2.0.7 to 2.0.8.
Remove below patches because they have been merged by 2.0.8
upstream version:
0001-corestripper-Fix-uninitialized-warning.patch
0002-Fix-2038-year-problem-in-timestamp-handling.patch
0001-coreinject-fix-assignment-of-const-qualified-type.patch

Changelog:
===========
* Address multiple compiler warnings and errors found by more recent
  toolchains. The issues existed technically, but were not a problem
  for real-world usage scenarios.

* Relocate the man pages for sbin binaries to section 8.

* Fix timestamp value in the core dump directory name for 32-bit
  systems with a 64-bit time_t definition after 2038-01-19.

* Improve status query for init script to check core_pattern usage and
  handle when the regd daemon is not enabled.

* Known problems:

    - If tar is active, core files larger than 8GB will be
      truncated. If it is known that the core files will be >8GB and
      the full core file is needed, tar must be disabled.

License-Update:
The COPYING changes in upstream commit 941079541a
update Copyright end dates to reflect when changes were last committed.
The COPYING.LGPLv2.1 change in upstream commit 00e3b2fdf7 replaces
the FSF postal mailing address with a URL as recommended by the GNU FAQ.
No license change, no impact on the recipe licensing.

Signed-off-by: Li Zhou <li.zhou@windriver.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
Li Zhou
2026-06-03 15:43:26 +08:00
committed by Khem Raj
parent b23409aef2
commit e8910a6acc
4 changed files with 3 additions and 158 deletions
@@ -1,44 +0,0 @@
From 07023a2d2ef059a039fef83ee4b33a7e47ca8e3e Mon Sep 17 00:00:00 2001
From: John Ogness <john.ogness@linutronix.de>
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 <aurel32@debian.org>
Closes: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1128695
Signed-off-by: John Ogness <john.ogness@linutronix.de>
Upstream-Status: Backport [https://github.com/diamon/minicoredumper/commit/eb66f10ae26edf94bf41d513ce90a4eb1e0f11b3]
Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
---
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, '/');
@@ -1,53 +0,0 @@
From bb44bb643cd2a2f937331b4d1a76b03556b718a2 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
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 <raj.khem@gmail.com>
---
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
@@ -1,55 +0,0 @@
From 0f80d5813679320b69ae1d2aefb58af1e0e2d269 Mon Sep 17 00:00:00 2001
From: Jiaying Song <jiaying.song.cn@windriver.com>
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 <jiaying.song.cn@windriver.com>
---
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
@@ -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 \
"