commit: 58aea9ac1b41958dd4fc578f25eb9b78b16faed8 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> AuthorDate: Mon Feb 17 20:54:43 2020 +0000 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> CommitDate: Mon Feb 17 20:55:10 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58aea9ac
net-wireless/hidclient: tweak for glibc-2.30, bug #692250 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 <AT> gentoo.org> .../hidclient/files/hidclient-20120728-glibc-2.30.patch | 13 +++++++++++++ net-wireless/hidclient/hidclient-20120728.ebuild | 5 ++++- 2 files changed, 17 insertions(+), 1 deletion(-) 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 index 00000000000..7e8376faaed --- /dev/null +++ b/net-wireless/hidclient/files/hidclient-20120728-glibc-2.30.patch @@ -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> diff --git a/net-wireless/hidclient/hidclient-20120728.ebuild b/net-wireless/hidclient/hidclient-20120728.ebuild index f56b4f7737b..0dc32ee4fc0 100644 --- a/net-wireless/hidclient/hidclient-20120728.ebuild +++ b/net-wireless/hidclient/hidclient-20120728.ebuild @@ -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 }