sys-libs/gpm: tweak for glibc-2.26, bug #629774
authorSergei Trofimovich <slyfox@gentoo.org>
Tue, 19 Sep 2017 21:34:32 +0000 (22:34 +0100)
committerSergei Trofimovich <slyfox@gentoo.org>
Tue, 19 Sep 2017 21:34:42 +0000 (22:34 +0100)
Reported-by: Philipp Psurek
Fix-by: cyrillic
Closes: https://bugs.gentoo.org/629774
Package-Manager: Portage-2.3.8, Repoman-2.3.3

sys-libs/gpm/files/gpm-1.20.7-glibc-2.26.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-glibc-2.26.patch b/sys-libs/gpm/files/gpm-1.20.7-glibc-2.26.patch
new file mode 100644 (file)
index 0000000..ef2de01
--- /dev/null
@@ -0,0 +1,12 @@
+https://bugs.gentoo.org/629774
+--- a/src/prog/gpm-root.y      2012-10-26 17:21:38.000000000 -0400
++++ b/src/prog/gpm-root.y      2017-09-07 20:39:51.933264063 -0400
+@@ -1197,7 +1197,7 @@
+    /* reap your zombies */
+    childaction.sa_handler=reap_children;
+ #if defined(__GLIBC__)
+-   __sigemptyset(&childaction.sa_mask);
++   sigemptyset(&childaction.sa_mask);
+ #else /* __GLIBC__ */
+    childaction.sa_mask=0;
+ #endif /* __GLIBC__ */
index bfb8982b46ebed536e277a9642a9bb1b901e1260..943ef06732c327ef5ae5d279ff5754d0e8e22c96 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 # emacs support disabled due to #99533 #335900
@@ -36,6 +36,11 @@ src_prepare() {
        epatch "${WORKDIR}"/${P}-docs.patch
        touch -r . doc/* || die
 
+       # bug #629774
+       epatch "${FILESDIR}"/${P}-glibc-2.26.patch
+
+       epatch_user
+
        # fix ABI values
        sed -i \
                -e '/^abi_lev=/s:=.*:=1:' \