net-wireless/hidclient: tweak for glibc-2.30, bug #692250
authorSergei Trofimovich <slyfox@gentoo.org>
Mon, 17 Feb 2020 20:54:43 +0000 (20:54 +0000)
committerSergei Trofimovich <slyfox@gentoo.org>
Mon, 17 Feb 2020 20:55:10 +0000 (20:55 +0000)
Reported-by: Toralf Förster
Closes: https://bugs.gentoo.org/692250
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
net-wireless/hidclient/files/hidclient-20120728-glibc-2.30.patch [new file with mode: 0644]
net-wireless/hidclient/hidclient-20120728.ebuild

diff --git a/net-wireless/hidclient/files/hidclient-20120728-glibc-2.30.patch b/net-wireless/hidclient/files/hidclient-20120728-glibc-2.30.patch
new file mode 100644 (file)
index 0000000..7e8376f
--- /dev/null
@@ -0,0 +1,13 @@
+https://bugs.gentoo.org/692250
+
+--- a/hidclient.c
++++ b/hidclient.c
+@@ -102,7 +102,7 @@
+ #include <stdlib.h>
+ #include <string.h>
+ #include <unistd.h>
+-#include <stropts.h>
++//#include <stropts.h>
+ #include <sys/stat.h>
+ #include <sys/time.h>
+ #include <sys/types.h>
index f56b4f7737b5e61f16bc6b1f799e2dacb4ee0e08..0dc32ee4fc0332c42760d5351bc7f63881c39552 100644 (file)
@@ -1,8 +1,10 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=4
 
+inherit epatch
+
 DESCRIPTION="Use your machine as a bluetooh keyboard/mouse"
 HOMEPAGE="http://anselm.hoffmeister.be/computer/hidclient/"
 SRC_URI="http://anselm.hoffmeister.be/computer/${PN}/${P}.tar.bz2"
@@ -19,6 +21,7 @@ RDEPEND="${DEPEND}
 S="${WORKDIR}"
 
 src_prepare() {
+       epatch "${FILESDIR}"/${P}-glibc-2.30.patch
        sed -i 's#gcc#$(CC)#' Makefile
        sed -i 's#-O2#$(CFLAGS) $(LDFLAGS)#' Makefile
 }