sys-libs/gpm: tweak for gcc-10, bug #705878
authorSergei Trofimovich <slyfox@gentoo.org>
Mon, 3 Feb 2020 22:55:06 +0000 (22:55 +0000)
committerSergei Trofimovich <slyfox@gentoo.org>
Mon, 3 Feb 2020 23:07:28 +0000 (23:07 +0000)
Closes: https://bugs.gentoo.org/705878
Package-Manager: Portage-2.3.87, Repoman-2.3.20
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
sys-libs/gpm/files/gpm-1.20.7-gcc-10.patch [new file with mode: 0644]
sys-libs/gpm/gpm-1.20.7-r2.ebuild

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 (file)
index 0000000..a55c44f
--- /dev/null
@@ -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;
index c550f3ee1168194a68007d3c6b75c7815be8ee51..df485bea459df0d75f3cd6f34f69e34be781ed5b 100644 (file)
@@ -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