1 |
commit: 58aea9ac1b41958dd4fc578f25eb9b78b16faed8 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 17 20:54:43 2020 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 17 20:55:10 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58aea9ac |
7 |
|
8 |
net-wireless/hidclient: tweak for glibc-2.30, bug #692250 |
9 |
|
10 |
Reported-by: Toralf Förster |
11 |
Closes: https://bugs.gentoo.org/692250 |
12 |
Package-Manager: Portage-2.3.89, Repoman-2.3.20 |
13 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
14 |
|
15 |
.../hidclient/files/hidclient-20120728-glibc-2.30.patch | 13 +++++++++++++ |
16 |
net-wireless/hidclient/hidclient-20120728.ebuild | 5 ++++- |
17 |
2 files changed, 17 insertions(+), 1 deletion(-) |
18 |
|
19 |
diff --git a/net-wireless/hidclient/files/hidclient-20120728-glibc-2.30.patch b/net-wireless/hidclient/files/hidclient-20120728-glibc-2.30.patch |
20 |
new file mode 100644 |
21 |
index 00000000000..7e8376faaed |
22 |
--- /dev/null |
23 |
+++ b/net-wireless/hidclient/files/hidclient-20120728-glibc-2.30.patch |
24 |
@@ -0,0 +1,13 @@ |
25 |
+https://bugs.gentoo.org/692250 |
26 |
+ |
27 |
+--- a/hidclient.c |
28 |
++++ b/hidclient.c |
29 |
+@@ -102,7 +102,7 @@ |
30 |
+ #include <stdlib.h> |
31 |
+ #include <string.h> |
32 |
+ #include <unistd.h> |
33 |
+-#include <stropts.h> |
34 |
++//#include <stropts.h> |
35 |
+ #include <sys/stat.h> |
36 |
+ #include <sys/time.h> |
37 |
+ #include <sys/types.h> |
38 |
|
39 |
diff --git a/net-wireless/hidclient/hidclient-20120728.ebuild b/net-wireless/hidclient/hidclient-20120728.ebuild |
40 |
index f56b4f7737b..0dc32ee4fc0 100644 |
41 |
--- a/net-wireless/hidclient/hidclient-20120728.ebuild |
42 |
+++ b/net-wireless/hidclient/hidclient-20120728.ebuild |
43 |
@@ -1,8 +1,10 @@ |
44 |
-# Copyright 1999-2013 Gentoo Foundation |
45 |
+# Copyright 1999-2020 Gentoo Authors |
46 |
# Distributed under the terms of the GNU General Public License v2 |
47 |
|
48 |
EAPI=4 |
49 |
|
50 |
+inherit epatch |
51 |
+ |
52 |
DESCRIPTION="Use your machine as a bluetooh keyboard/mouse" |
53 |
HOMEPAGE="http://anselm.hoffmeister.be/computer/hidclient/" |
54 |
SRC_URI="http://anselm.hoffmeister.be/computer/${PN}/${P}.tar.bz2" |
55 |
@@ -19,6 +21,7 @@ RDEPEND="${DEPEND} |
56 |
S="${WORKDIR}" |
57 |
|
58 |
src_prepare() { |
59 |
+ epatch "${FILESDIR}"/${P}-glibc-2.30.patch |
60 |
sed -i 's#gcc#$(CC)#' Makefile |
61 |
sed -i 's#-O2#$(CFLAGS) $(LDFLAGS)#' Makefile |
62 |
} |