From b871e3e4b1386d3813fb56af32c65c7fd50eb3c9 Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Mon, 5 Jan 2026 20:40:54 +0100 Subject: [PATCH] package/dc3dd: fix build with gcc-15.x Fixes: https://autobuild.buildroot.net/results/257/2575202e9a5164a4068a943fb36445cd63e61f0c/ The build error does not occur with gcc-14.x, tested using this defconfig: BR2_x86_64=y BR2_x86_corei7=y BR2_TOOLCHAIN_EXTERNAL=y BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_X86_64_CORE_I7_GLIBC_STABLE=y BR2_PER_PACKAGE_DIRECTORIES=y BR2_PACKAGE_DC3DD=y Signed-off-by: Bernd Kuhls Signed-off-by: Peter Korsgaard (cherry picked from commit c497b8ae99a8d73ccfdbbe953ddf7728c825a90a) Signed-off-by: Thomas Perale --- package/dc3dd/0005-gcc15.patch | 39 ++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 package/dc3dd/0005-gcc15.patch diff --git a/package/dc3dd/0005-gcc15.patch b/package/dc3dd/0005-gcc15.patch new file mode 100644 index 0000000000..a2133cec4a --- /dev/null +++ b/package/dc3dd/0005-gcc15.patch @@ -0,0 +1,39 @@ +Description: Fix FTBFS with GCC-15 +Origin: backport, https://build.opensuse.org/projects/security:forensics/packages/dc3dd/files/dc3dd-gcc15.patch +Bug: https://sourceforge.net/p/dc3dd/bugs/24/ +Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1096508 +Forwarded: not-needed +Reviewed-by: Sven Geuer +Last-Update: 2025-09-25 + +Upstream: https://sourceforge.net/p/dc3dd/bugs/24/ + +Signed-off-by: Bernd Kuhls +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +Index: dc3dd-7.3.1/lib/posixtm.c +=================================================================== +--- dc3dd-7.3.1.orig/lib/posixtm.c ++++ dc3dd-7.3.1/lib/posixtm.c +@@ -41,7 +41,7 @@ + of `digit' even when the host does not conform to POSIX. */ + #define ISDIGIT(c) ((unsigned int) (c) - '0' <= 9) + +-time_t mktime (); ++time_t mktime (struct tm *tm); + + /* + POSIX requires: +Index: dc3dd-7.3.1/m4/jm-macros.m4 +=================================================================== +--- dc3dd-7.3.1.orig/m4/jm-macros.m4 ++++ dc3dd-7.3.1/m4/jm-macros.m4 +@@ -38,7 +38,7 @@ AC_DEFUN([coreutils_MACROS], + # By default, argmatch should fail calling usage (1). + AC_DEFINE(ARGMATCH_DIE, [usage (1)], + [Define to the function xargmatch calls on failures.]) +- AC_DEFINE(ARGMATCH_DIE_DECL, [void usage ()], ++ AC_DEFINE(ARGMATCH_DIE_DECL, [void usage (int)], + [Define to the declaration of the xargmatch failure function.]) + + # used by ls