diff --git a/drpm-c99.patch b/drpm-c99.patch new file mode 100644 index 0000000..85b032c --- /dev/null +++ b/drpm-c99.patch @@ -0,0 +1,18 @@ +Include for various string functions. This avoids implicit +function declarations and resulting build failures with future +compilers. + +Submitted upstream: + +diff --git a/src/drpm_write.c b/src/drpm_write.c +index 8c16a17cb0e01898..87da9724a84ee72a 100644 +--- a/src/drpm_write.c ++++ b/src/drpm_write.c +@@ -23,6 +23,7 @@ + + #include + #include ++#include + #include + #include + #include diff --git a/drpm.spec b/drpm.spec index 1fbc774..0712c48 100644 --- a/drpm.spec +++ b/drpm.spec @@ -7,7 +7,7 @@ Name: drpm Version: 0.5.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: A library for making, reading and applying deltarpm packages # the entire source code is LGPLv2+, except src/drpm_diff.c and src/drpm_search.c which are BSD License: LGPLv2+ and BSD @@ -18,6 +18,7 @@ Source: %{url}/releases/download/%{version}/%{name}-%{version}.tar.bz2 # add workaround for gcc7 on ppc64le temporary before it's fixed in gcc # https://bugzilla.redhat.com/show_bug.cgi?id=1420350 Patch1: drpm-0.3.0-workaround-ppc64le-gcc.patch +Patch2: drpm-c99.patch BuildRequires: gcc-c++ BuildRequires: cmake >= 2.8.5 @@ -85,6 +86,9 @@ The drpm-devel package provides a C interface (drpm.h) for the drpm library. %{_libdir}/pkgconfig/%{name}.pc %changelog +* Thu Jan 12 2023 Florian Weimer - 0.5.1-3 +- C99 compatibility fix + * Thu Jul 21 2022 Fedora Release Engineering - 0.5.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild