diff --git a/amanda-fix-proto.patch b/amanda-fix-proto.patch new file mode 100644 index 0000000..7dff50a --- /dev/null +++ b/amanda-fix-proto.patch @@ -0,0 +1,22 @@ +Index: amanda-tag-community-3.5.4/client-src/runtar.c +=================================================================== +--- amanda-tag-community-3.5.4.orig/client-src/runtar.c ++++ amanda-tag-community-3.5.4/client-src/runtar.c +@@ -54,7 +54,7 @@ main( + { + #ifdef GNUTAR + int i; +- char **j; ++ const char **j; + char *e; + char *dbf; + char *cmdline; +@@ -255,7 +255,7 @@ check_whitelist( + gchar* option) + { + bool result = TRUE; +- char** i; ++ const char** i; + + for(i=whitelisted_args; *i; i++) { + if (g_str_has_prefix(option, *i)) { diff --git a/amanda.changes b/amanda.changes index 65fa292..8ade4f7 100644 --- a/amanda.changes +++ b/amanda.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jul 25 08:37:48 UTC 2024 - Marcus Meissner + +- amanda-fix-proto.patch: fix build with gcc14 + ------------------------------------------------------------------- Tue Feb 20 10:57:51 UTC 2024 - Dominique Leuenberger diff --git a/amanda.spec b/amanda.spec index 6d32d79..5d18a71 100644 --- a/amanda.spec +++ b/amanda.spec @@ -34,6 +34,7 @@ Patch3: amanda-2.6.1p1-avoid-perl-provides.patch Patch4: amanda-3.3.2-returnvalues.patch Patch6: amanda-3.5-no_return_in_nonvoid_fnc.patch Patch7: amanda-libnsl.patch +Patch8: amanda-fix-proto.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: bison @@ -92,6 +93,7 @@ running multiple versions of Linux or Unix. %patch -P 4 -p1 %patch -P 6 -p1 %patch -P 7 -p1 +%patch -P 8 -p1 %build ./autogen