From: Sergei Trofimovich Date: Mon, 3 Feb 2020 22:55:06 +0000 (+0000) Subject: sys-libs/gpm: tweak for gcc-10, bug #705878 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=8f7e2ac82fc5a1847c132057fb7de1a996d66c76;p=gentoo.git 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 --- 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 000000000000..a55c44fae556 --- /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 c550f3ee1168..df485bea459d 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