1 |
commit: 8f7e2ac82fc5a1847c132057fb7de1a996d66c76 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 3 22:55:06 2020 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 3 23:07:28 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f7e2ac8 |
7 |
|
8 |
sys-libs/gpm: tweak for gcc-10, bug #705878 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/705878 |
11 |
Package-Manager: Portage-2.3.87, Repoman-2.3.20 |
12 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
13 |
|
14 |
sys-libs/gpm/files/gpm-1.20.7-gcc-10.patch | 14 ++++++++++++++ |
15 |
sys-libs/gpm/gpm-1.20.7-r2.ebuild | 5 ++++- |
16 |
2 files changed, 18 insertions(+), 1 deletion(-) |
17 |
|
18 |
diff --git a/sys-libs/gpm/files/gpm-1.20.7-gcc-10.patch b/sys-libs/gpm/files/gpm-1.20.7-gcc-10.patch |
19 |
new file mode 100644 |
20 |
index 00000000000..a55c44fae55 |
21 |
--- /dev/null |
22 |
+++ b/sys-libs/gpm/files/gpm-1.20.7-gcc-10.patch |
23 |
@@ -0,0 +1,14 @@ |
24 |
+https://bugs.gentoo.org/705878 |
25 |
+https://github.com/telmich/gpm/pull/37 |
26 |
+ |
27 |
+--- a/src/headers/daemon.h |
28 |
++++ b/src/headers/daemon.h |
29 |
+@@ -180,7 +180,7 @@ extern struct mouse_features mouse_table[3], |
30 |
+ extern Gpm_Type mice[]; |
31 |
+ extern Gpm_Type *repeated_type; |
32 |
+ |
33 |
+-time_t last_selection_time; |
34 |
++extern time_t last_selection_time; |
35 |
+ |
36 |
+ |
37 |
+ |
38 |
|
39 |
diff --git a/sys-libs/gpm/gpm-1.20.7-r2.ebuild b/sys-libs/gpm/gpm-1.20.7-r2.ebuild |
40 |
index c550f3ee116..df485bea459 100644 |
41 |
--- a/sys-libs/gpm/gpm-1.20.7-r2.ebuild |
42 |
+++ b/sys-libs/gpm/gpm-1.20.7-r2.ebuild |
43 |
@@ -1,4 +1,4 @@ |
44 |
-# Copyright 1999-2019 Gentoo Authors |
45 |
+# Copyright 1999-2020 Gentoo Authors |
46 |
# Distributed under the terms of the GNU General Public License v2 |
47 |
|
48 |
# emacs support disabled due to #99533 #335900 |
49 |
@@ -35,6 +35,9 @@ src_prepare() { |
50 |
# bug #629774 |
51 |
epatch "${FILESDIR}"/${P}-glibc-2.26.patch |
52 |
|
53 |
+ # bug #705878 |
54 |
+ epatch "${FILESDIR}"/${P}-gcc-10.patch |
55 |
+ |
56 |
epatch_user |
57 |
|
58 |
# fix ABI values |