diff --git a/amanda-configure-c99.patch b/amanda-configure-c99.patch new file mode 100644 index 0000000..bee76fb --- /dev/null +++ b/amanda-configure-c99.patch @@ -0,0 +1,19 @@ +Avoid an implicit int. Otherwise, the test fails unconditionally with +compilers that do not support implicit ints (a language feature that +was removed with the C99 language revision). + +Submitted upstream: + +diff --git a/config/amanda/ipv6.m4 b/config/amanda/ipv6.m4 +index 9d76979339fee75a..d91ab95ab97e4ec1 100644 +--- a/config/amanda/ipv6.m4 ++++ b/config/amanda/ipv6.m4 +@@ -85,7 +85,7 @@ AC_DEFUN([AMANDA_CHECK_IPV6], + #include + #include + +-main() ++int main(void) + { + int aa; + aa = socket(AF_INET6, SOCK_STREAM, 0); diff --git a/amanda.spec b/amanda.spec index 011bd4f..b9858a3 100644 --- a/amanda.spec +++ b/amanda.spec @@ -16,7 +16,7 @@ Summary: A network-capable tape backup solution Name: amanda Version: 3.5.3 -Release: 1%{?dist} +Release: 2%{?dist} Source: https://github.com/zmanda/amanda/archive/tag-community-%{version}/amanda-%{version}.tar.gz Source1: amanda.crontab Source4: disklist @@ -40,6 +40,7 @@ Patch5: patch-tirpc # Specify the location or the xfs housekeeping directory # https://bugzilla.redhat.com/show_bug.cgi?id=1671117 Patch6: patch-xfsrestore-housekeeping +Patch7: amanda-configure-c99.patch License: BSD and GPLv3+ and GPLv2+ and GPLv2 URL: http://www.amanda.org @@ -451,6 +452,9 @@ make check %changelog +* Fri Apr 14 2023 Florian Weimer - 3.5.3-2 +- Port configure script to C99 + * Thu Mar 16 2023 Orion Poplawski - 3.5.3-1 - Update to 3.5.3 - Fixes CVE-2022-37703 (bz#2126849) CVE-2022-37704 (bz#2168789) CVE-2022-37705 (bz#2168797)