From 675318de67314c9d3b630ac22d40665bce75c6fa Mon Sep 17 00:00:00 2001 From: Felix Schwarz Date: Jan 29 2020 13:09:01 +0000 Subject: fix build with GCC 10 --- diff --git a/davfs2-gcc-10-fix.patch b/davfs2-gcc-10-fix.patch new file mode 100644 index 0000000..d61ef31 --- /dev/null +++ b/davfs2-gcc-10-fix.patch @@ -0,0 +1,16 @@ +Source: https://bugs.gentoo.org/706356 + +--- a/src/dav_coda.c ++++ b/src/dav_coda.c +@@ -99,3 +99,3 @@ static size_t alignment; + /* Send debug messages to syslog if != 0. */ +-int debug; ++static int debug; + +--- a/src/dav_fuse.c ++++ b/src/dav_fuse.c +@@ -86,3 +86,3 @@ static uint64_t root; + /* Send debug messages to syslog if != 0. */ +-int debug; ++static int debug; + diff --git a/davfs2.spec b/davfs2.spec index 449f225..b7fdbcc 100644 --- a/davfs2.spec +++ b/davfs2.spec @@ -12,6 +12,8 @@ Source1: https://download.savannah.gnu.org/releases/davfs2/%{name}-%{vers # no not like the query string. Source2: davfs2-memberlist-gpgkeys.asc +Patch0: davfs2-gcc-10-fix.patch + Conflicts: filesystem < 3 BuildRequires: gcc BuildRequires: gnupg2 @@ -29,7 +31,7 @@ as a disk drive. %prep %{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}' -%autosetup +%autosetup -p1 %build export CFLAGS="%{optflags} -fno-strict-aliasing" @@ -90,6 +92,9 @@ exit 0 %ghost %dir %attr(01775,root,%{groupname}) %{piddir} %changelog +* Wed Jan 29 2020 Felix Schwarz - 1.5.6-3 +- fix build with GCC 10 + * Tue Jan 28 2020 Fedora Release Engineering - 1.5.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild