From 8fc6a19e10c26baa8c2335cc55eb2896ac699618 Mon Sep 17 00:00:00 2001 From: Vaclav Dolezal Date: Jan 21 2020 18:01:31 +0000 Subject: Fix FTBFS caused by missing 'extern' on global var Resolves: #1793391 --- diff --git a/amanda-missing-extern.patch b/amanda-missing-extern.patch new file mode 100644 index 0000000..a036343 --- /dev/null +++ b/amanda-missing-extern.patch @@ -0,0 +1,13 @@ +diff --git a/common-src/testutils.h b/common-src/testutils.h +index 31f89737..2e9bb0b3 100644 +--- a/common-src/testutils.h ++++ b/common-src/testutils.h +@@ -75,7 +75,7 @@ typedef struct TestUtilsTest { + #define tu_dbg(...) if (tu_debugging_enabled) { g_fprintf(stderr, __VA_ARGS__); } + + /* Is debugging enabled for this test run? (set internally) */ +-int tu_debugging_enabled; ++extern gboolean tu_debugging_enabled; + + /* + * Main loop diff --git a/amanda.spec b/amanda.spec index 8480c50..4e66ac6 100644 --- a/amanda.spec +++ b/amanda.spec @@ -10,7 +10,7 @@ Summary: A network-capable tape backup solution Name: amanda Version: 3.5.1 -Release: 20%{?dist} +Release: 21%{?dist} Source: http://downloads.sourceforge.net/amanda/amanda-%{version}.tar.gz Source1: amanda.crontab Source4: disklist @@ -35,6 +35,9 @@ Patch5: patch-tirpc # https://bugzilla.redhat.com/show_bug.cgi?id=1671117 Patch6: patch-xfsrestore-housekeeping +# Add missing extern keyword to global vars in header files +Patch7: amanda-missing-extern.patch + License: BSD and GPLv3+ and GPLv2+ and GPLv2 URL: http://www.amanda.org BuildRequires: automake autoconf libtool @@ -437,6 +440,9 @@ make check %changelog +* Tue Jan 21 2020 Václav Doležal - 3.5.1-21 +- Fix FTBFS caused by missing 'extern' on global variable (#1793391) + * Wed Jul 24 2019 Fedora Release Engineering - 3.5.1-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild