1 |
commit: 2fc78c6750cb4d92e6411b71f47218ea51335763 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat May 2 12:15:03 2020 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat May 2 12:18:52 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2fc78c67 |
7 |
|
8 |
app-arch/sharutils: tweak for gcc-10, bug #706256 |
9 |
|
10 |
Reported-by: Toralf Förster |
11 |
Closes: https://bugs.gentoo.org/706256 |
12 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
13 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
14 |
|
15 |
.../sharutils/files/sharutils-4.15.2-gcc-10.patch | 48 ++++++++++++++++++++++ |
16 |
app-arch/sharutils/sharutils-4.15.2-r1.ebuild | 1 + |
17 |
2 files changed, 49 insertions(+) |
18 |
|
19 |
diff --git a/app-arch/sharutils/files/sharutils-4.15.2-gcc-10.patch b/app-arch/sharutils/files/sharutils-4.15.2-gcc-10.patch |
20 |
new file mode 100644 |
21 |
index 00000000000..4a0c02f5ba9 |
22 |
--- /dev/null |
23 |
+++ b/app-arch/sharutils/files/sharutils-4.15.2-gcc-10.patch |
24 |
@@ -0,0 +1,48 @@ |
25 |
+https://bugs.gentoo.org/706256 |
26 |
+ |
27 |
+Fix build failure on gcc-10/-fno-common. |
28 |
+ |
29 |
+--- a/src/shar-opts.h |
30 |
++++ b/src/shar-opts.h |
31 |
+@@ -352,7 +352,7 @@ extern "C" { |
32 |
+ * global exported definitions |
33 |
+ */ |
34 |
+ #include "local.h" |
35 |
+-char const * const program_name; |
36 |
++extern char const * const program_name; |
37 |
+ |
38 |
+ extern bool initialization_done; |
39 |
+ extern int optidx; |
40 |
+--- a/src/unshar-opts.h |
41 |
++++ b/src/unshar-opts.h |
42 |
+@@ -192,7 +192,7 @@ extern "C" { |
43 |
+ extern size_t separator_str_len; |
44 |
+ |
45 |
+ #include "local.h" |
46 |
+-char const * const program_name; |
47 |
++extern char const * const program_name; |
48 |
+ |
49 |
+ |
50 |
+ /* * * * * * |
51 |
+--- a/src/uudecode-opts.h |
52 |
++++ b/src/uudecode-opts.h |
53 |
+@@ -170,7 +170,7 @@ extern "C" { |
54 |
+ * global exported definitions |
55 |
+ */ |
56 |
+ #include "local.h" |
57 |
+-char const * const program_name; |
58 |
++extern char const * const program_name; |
59 |
+ |
60 |
+ |
61 |
+ /* * * * * * |
62 |
+--- a/src/uuencode-opts.h |
63 |
++++ b/src/uuencode-opts.h |
64 |
+@@ -166,7 +166,7 @@ extern "C" { |
65 |
+ * global exported definitions |
66 |
+ */ |
67 |
+ #include "local.h" |
68 |
+-char const * const program_name; |
69 |
++extern char const * const program_name; |
70 |
+ |
71 |
+ |
72 |
+ /* * * * * * |
73 |
|
74 |
diff --git a/app-arch/sharutils/sharutils-4.15.2-r1.ebuild b/app-arch/sharutils/sharutils-4.15.2-r1.ebuild |
75 |
index dc4356b4ead..00e6532922b 100644 |
76 |
--- a/app-arch/sharutils/sharutils-4.15.2-r1.ebuild |
77 |
+++ b/app-arch/sharutils/sharutils-4.15.2-r1.ebuild |
78 |
@@ -26,6 +26,7 @@ src_prepare() { |
79 |
|
80 |
epatch "${FILESDIR}/sharutils-4.15.2-glibc228.patch" |
81 |
epatch "${FILESDIR}/sharutils-4.15.2-CVE-2018-1000097.patch" |
82 |
+ epatch "${FILESDIR}/sharutils-4.15.2-gcc-10.patch" |
83 |
|
84 |
# Upstream is aware but thinks this isn't a bug/problem in sharutils itself |
85 |
# See http://lists.gnu.org/archive/html/bug-gnu-utils/2013-10/msg00011.html |