commit:     8f7e2ac82fc5a1847c132057fb7de1a996d66c76
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Mon Feb  3 22:55:06 2020 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Mon Feb  3 23:07:28 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f7e2ac8

sys-libs/gpm: tweak for gcc-10, bug #705878

Closes: https://bugs.gentoo.org/705878
Package-Manager: Portage-2.3.87, Repoman-2.3.20
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 sys-libs/gpm/files/gpm-1.20.7-gcc-10.patch | 14 ++++++++++++++
 sys-libs/gpm/gpm-1.20.7-r2.ebuild          |  5 ++++-
 2 files changed, 18 insertions(+), 1 deletion(-)

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
new file mode 100644
index 00000000000..a55c44fae55
--- /dev/null
+++ b/sys-libs/gpm/files/gpm-1.20.7-gcc-10.patch
@@ -0,0 +1,14 @@
+https://bugs.gentoo.org/705878
+https://github.com/telmich/gpm/pull/37
+
+--- a/src/headers/daemon.h
++++ b/src/headers/daemon.h
+@@ -180,7 +180,7 @@ extern struct mouse_features  mouse_table[3],
+ extern Gpm_Type         mice[];
+ extern Gpm_Type         *repeated_type;
+ 
+-time_t                  last_selection_time;
++extern time_t           last_selection_time;
+ 
+ 
+ 

diff --git a/sys-libs/gpm/gpm-1.20.7-r2.ebuild 
b/sys-libs/gpm/gpm-1.20.7-r2.ebuild
index c550f3ee116..df485bea459 100644
--- a/sys-libs/gpm/gpm-1.20.7-r2.ebuild
+++ b/sys-libs/gpm/gpm-1.20.7-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # emacs support disabled due to #99533 #335900
@@ -35,6 +35,9 @@ src_prepare() {
        # bug #629774
        epatch "${FILESDIR}"/${P}-glibc-2.26.patch
 
+       # bug #705878
+       epatch "${FILESDIR}"/${P}-gcc-10.patch
+
        epatch_user
 
        # fix ABI values

Reply via email to