1 |
commit: c9a5da79c40937e2cf8d91e9a8ea0e4d4c4d5329 |
2 |
Author: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 27 23:44:56 2020 +0000 |
4 |
Commit: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 28 02:31:16 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c9a5da79 |
7 |
|
8 |
net-fs/davfs2: fix building with gcc 10 #706356 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/706356 |
11 |
Bug: http://savannah.nongnu.org/support/index.php?110186 |
12 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
13 |
Signed-off-by: Göktürk Yüksek <gokturk <AT> gentoo.org> |
14 |
|
15 |
net-fs/davfs2/davfs2-1.5.5.ebuild | 5 ++++- |
16 |
net-fs/davfs2/files/davfs2-1.5.5-gcc-10.patch | 18 ++++++++++++++++++ |
17 |
2 files changed, 22 insertions(+), 1 deletion(-) |
18 |
|
19 |
diff --git a/net-fs/davfs2/davfs2-1.5.5.ebuild b/net-fs/davfs2/davfs2-1.5.5.ebuild |
20 |
index 3ef5dd25f00..e90fe83a11d 100644 |
21 |
--- a/net-fs/davfs2/davfs2-1.5.5.ebuild |
22 |
+++ b/net-fs/davfs2/davfs2-1.5.5.ebuild |
23 |
@@ -1,4 +1,4 @@ |
24 |
-# Copyright 1999-2019 Gentoo Authors |
25 |
+# Copyright 1999-2020 Gentoo Authors |
26 |
# Distributed under the terms of the GNU General Public License v2 |
27 |
|
28 |
EAPI=7 |
29 |
@@ -33,6 +33,9 @@ src_prepare() { |
30 |
sed -e '/^manual[58]_DATA/ s/\.gz//g' \ |
31 |
-i "${S}"/man/Makefile.in || die |
32 |
|
33 |
+ # Bug: https://bugs.gentoo.org/706356 |
34 |
+ eapply "${FILESDIR}"/${PN}-1.5.5-gcc-10.patch |
35 |
+ |
36 |
default |
37 |
} |
38 |
|
39 |
|
40 |
diff --git a/net-fs/davfs2/files/davfs2-1.5.5-gcc-10.patch b/net-fs/davfs2/files/davfs2-1.5.5-gcc-10.patch |
41 |
new file mode 100644 |
42 |
index 00000000000..56b0bab4491 |
43 |
--- /dev/null |
44 |
+++ b/net-fs/davfs2/files/davfs2-1.5.5-gcc-10.patch |
45 |
@@ -0,0 +1,18 @@ |
46 |
+Handle building with '-fno-common' for gcc 10. |
47 |
+See: https://bugs.gentoo.org/706356 |
48 |
+ |
49 |
+ |
50 |
+--- a/src/dav_coda.c |
51 |
++++ b/src/dav_coda.c |
52 |
+@@ -99,3 +99,3 @@ static size_t alignment; |
53 |
+ /* Send debug messages to syslog if != 0. */ |
54 |
+-int debug; |
55 |
++static int debug; |
56 |
+ |
57 |
+--- a/src/dav_fuse.c |
58 |
++++ b/src/dav_fuse.c |
59 |
+@@ -86,3 +86,3 @@ static uint64_t root; |
60 |
+ /* Send debug messages to syslog if != 0. */ |
61 |
+-int debug; |
62 |
++static int debug; |
63 |
+ |