summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-kernel/minicoredumper/files
diff options
context:
space:
mode:
authorLi Zhou <li.zhou@windriver.com>2026-06-03 15:43:26 +0800
committerKhem Raj <khem.raj@oss.qualcomm.com>2026-06-07 18:21:47 -0700
commite8910a6acc8df2f1ab60bf0b22eef4c4061d3739 (patch)
tree49f17577a9b649990b48d842f27437f66b55b707 /meta-oe/recipes-kernel/minicoredumper/files
parentb23409aef2bf4fa265c425ce9037b4a7638fafe0 (diff)
downloadmeta-openembedded-e8910a6acc8df2f1ab60bf0b22eef4c4061d3739.tar.gz
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>
Diffstat (limited to 'meta-oe/recipes-kernel/minicoredumper/files')
-rw-r--r--meta-oe/recipes-kernel/minicoredumper/files/0001-coreinject-fix-assignment-of-const-qualified-type.patch44
-rw-r--r--meta-oe/recipes-kernel/minicoredumper/files/0001-corestripper-Fix-uninitialized-warning.patch53
-rw-r--r--meta-oe/recipes-kernel/minicoredumper/files/0002-Fix-2038-year-problem-in-timestamp-handling.patch55
3 files changed, 0 insertions, 152 deletions
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 @@
1From 07023a2d2ef059a039fef83ee4b33a7e47ca8e3e Mon Sep 17 00:00:00 2001
2From: John Ogness <john.ogness@linutronix.de>
3Date: Tue, 24 Feb 2026 11:33:40 +0106
4Subject: [PATCH] coreinject: fix assignment of const-qualified type
5
6coreinject fails to build with glibc 2.43.
7
8The issue is due to a new glibc feature:
9
10* For ISO C23, the functions bsearch, memchr, strchr, strpbrk, strrchr,
11 strstr, wcschr, wcspbrk, wcsrchr, wcsstr and wmemchr that return
12 pointers into their input arrays now have definitions as macros that
13 return a pointer to a const-qualified type when the input argument is
14 a pointer to a const-qualified type.
15
16The fix is trivial since the returned strrchr() value is only used in
17a way compatible with const pointers. The data type was simply defined
18incorrectly.
19
20Reported-by: Aurelien Jarno <aurel32@debian.org>
21Closes: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1128695
22Signed-off-by: John Ogness <john.ogness@linutronix.de>
23
24Upstream-Status: Backport [https://github.com/diamon/minicoredumper/commit/eb66f10ae26edf94bf41d513ce90a4eb1e0f11b3]
25Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
26---
27 src/coreinject/main.c | 2 +-
28 1 file changed, 1 insertion(+), 1 deletion(-)
29
30diff --git a/src/coreinject/main.c b/src/coreinject/main.c
31index faf8edf..198485d 100644
32--- a/src/coreinject/main.c
33+++ b/src/coreinject/main.c
34@@ -240,9 +240,9 @@ static int inject_data(FILE *f_core, FILE *f_symmap, const char *b_fname,
35 struct ident_data indirect;
36 struct ident_data direct;
37 const char *ident;
38+ const char *p;
39 FILE *f_dump;
40 int err = 0;
41- char *p;
42
43 /* extract ident name from file path */
44 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 @@
1From bb44bb643cd2a2f937331b4d1a76b03556b718a2 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 23 Jan 2024 11:36:41 -0800
4Subject: [PATCH] corestripper: Fix uninitialized warning
5
6Clang finds more open paths where ret can be uninitialized
7
8Fixes
9| ../../../git/src/minicoredumper/corestripper.c:2768:13: error: variable 'ret' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized]
10| 2768 | } else if (di->core_fd >= 0) {
11| | ^~~~~~~~~~~~~~~~
12| ../../../git/src/minicoredumper/corestripper.c:2773:9: note: uninitialized use occurs here
13| 2773 | return ret;
14| | ^~~
15| ../../../git/src/minicoredumper/corestripper.c:2768:9: note: remove the 'if' if its condition is always true
16| 2768 | } else if (di->core_fd >= 0) {
17| | ^~~~~~~~~~~~~~~~~~~~~
18| ../../../git/src/minicoredumper/corestripper.c:2763:9: note: initialize the variable 'ret' to silence this warning
19| 2763 | int ret;
20| | ^
21| | = 0
22
23Upstream-Status: Submitted [https://github.com/diamon/minicoredumper/pull/15]
24Signed-off-by: Khem Raj <raj.khem@gmail.com>
25---
26 src/minicoredumper/corestripper.c | 4 ++--
27 1 file changed, 2 insertions(+), 2 deletions(-)
28
29diff --git a/src/minicoredumper/corestripper.c b/src/minicoredumper/corestripper.c
30index 3eb9089..e9e3936 100644
31--- a/src/minicoredumper/corestripper.c
32+++ b/src/minicoredumper/corestripper.c
33@@ -2707,7 +2707,7 @@ static int dump_data_content_file(struct dump_info *di,
34 char *tmp_path;
35 FILE *file;
36 int len;
37- int ret;
38+ int ret = -1;
39
40 len = strlen(di->dst_dir) + strlen("/dumps/") + 32 +
41 strlen(dd->ident) + 1;
42@@ -2760,7 +2760,7 @@ out:
43 static int dump_data_content(struct dump_info *di, struct mcd_dump_data *dd,
44 const char *symname)
45 {
46- int ret;
47+ int ret = -1;
48
49 if (dd->ident) {
50 /* dump to external file */
51--
522.43.0
53
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 @@
1From 0f80d5813679320b69ae1d2aefb58af1e0e2d269 Mon Sep 17 00:00:00 2001
2From: Jiaying Song <jiaying.song.cn@windriver.com>
3Date: Wed, 10 Dec 2025 14:22:00 +0800
4Subject: [PATCH] Fix 2038 year problem in timestamp handling
5
6The minicoredumper uses 'long' type for timestamp which causes
7overflow on 32-bit systems after 2038-01-19. This leads to
8incorrect timestamp formatting in core dump directory names.
9
10Change timestamp variable from 'long' to 'time_t' and use
11'strtoll' instead of 'strtol' to handle 64-bit timestamps
12properly on 32-bit systems.
13
14Upstream-Status: Submitted
15[https://github.com/diamon/minicoredumper/pull/24]
16
17Signed-off-by: Jiaying Song <jiaying.song.cn@windriver.com>
18---
19 src/minicoredumper/corestripper.c | 6 +++---
20 1 file changed, 3 insertions(+), 3 deletions(-)
21
22diff --git a/src/minicoredumper/corestripper.c b/src/minicoredumper/corestripper.c
23index e9e3936..e52802e 100644
24--- a/src/minicoredumper/corestripper.c
25+++ b/src/minicoredumper/corestripper.c
26@@ -617,7 +617,7 @@ static int init_di(struct dump_info *di, int argc, char *argv[])
27 if (*p != 0)
28 return 1;
29
30- di->timestamp = strtol(argv[5], &p, 10);
31+ di->timestamp = (time_t)strtoll(argv[5], &p, 10);
32 if (*p != 0)
33 return 1;
34
35@@ -3715,7 +3715,7 @@ static int do_all_dumps(struct dump_info *di, int argc, char *argv[])
36 bool live_dumper;
37 char *comm_base;
38 pid_t core_pid;
39- long timestamp;
40+ time_t timestamp;
41 char *comm;
42 char *exe;
43 char *p;
44@@ -3750,7 +3750,7 @@ static int do_all_dumps(struct dump_info *di, int argc, char *argv[])
45 if (*p != 0)
46 return 1;
47
48- timestamp = strtol(argv[5], &p, 10);
49+ timestamp = (time_t)strtoll(argv[5], &p, 10);
50 if (*p != 0)
51 return 1;
52
53--
542.34.1
55