2 Commits

3 changed files with 49 additions and 2 deletions

36
dc3dd-gcc15.patch Normal file
View File

@@ -0,0 +1,36 @@
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
@@ -131,7 +131,7 @@ AC_DEFUN([gl_CHECK_ALL_TYPES],
dnl This test must precede tests of compiler characteristics like
dnl that for the inline keyword, since it may change the degree to
dnl which the compiler supports such features.
- AC_REQUIRE([AM_C_PROTOTYPES])
+ dnl AC_REQUIRE([AM_C_PROTOTYPES])
dnl Checks for typedefs, structures, and compiler characteristics.
AC_REQUIRE([AC_C_BIGENDIAN])

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue May 6 11:54:31 UTC 2025 - pgajdos@suse.com
- added patches
fix build with gcc15
+ dc3dd-gcc15.patch
-------------------------------------------------------------------
Mon Feb 26 08:01:07 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@@ -1,7 +1,7 @@
#
# spec file for package dc3dd
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -26,6 +26,9 @@ URL: https://sourceforge.net/projects/dc3dd/
Source0: https://sourceforge.net/projects/dc3dd/files/dc3dd/%{version}/%{name}-%{version}.zip
# PATCH-FIX-UPSTREAMING -- bmwiedemann -- https://sourceforge.net/p/dc3dd/bugs/16/
Patch0: reproducible.patch
# fix build with gcc15
Patch1: dc3dd-gcc15.patch
BuildRequires: automake
BuildRequires: gcc
BuildRequires: gettext
BuildRequires: gettext-devel
@@ -61,10 +64,11 @@ were rewritten for dc3dd.
sed -i 's/\r$//' *.txt
sed -i 's/\r$//' ChangeLog
# Add executable flag to configure
chmod +x configure
chmod +x build-aux/git-version-gen
%build
# hpa and dco detection is recommended for linux builds
autoreconf -fiv
%configure --enable-hpadco \
gl_cv_func_printf_directive_n=yes \
gl_cv_func_printf_infinite_long_double=yes