Gentoo Archives: gentoo-commits

From: Sebastian Pipping <sping@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/spacenavd/files/, app-misc/spacenavd/
Date: Fri, 31 Jan 2020 23:43:32
Message-Id: 1580514171.d59da78d876aba0d7c867ed2083c51489ad80908.sping@gentoo
1 commit: d59da78d876aba0d7c867ed2083c51489ad80908
2 Author: Sebastian Pipping <sping <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jan 31 23:36:57 2020 +0000
4 Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 31 23:42:51 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d59da78d
7
8 app-misc/spacenavd: Support GCC 10
9
10 Closes: https://bugs.gentoo.org/706966
11 Signed-off-by: Sebastian Pipping <sping <AT> gentoo.org>
12 Package-Manager: Portage-2.3.84, Repoman-2.3.20
13
14 app-misc/spacenavd/files/spacenavd-0.7-gcc10.patch | 24 ++++++++++++++++++++++
15 app-misc/spacenavd/spacenavd-0.7.ebuild | 4 ++++
16 2 files changed, 28 insertions(+)
17
18 diff --git a/app-misc/spacenavd/files/spacenavd-0.7-gcc10.patch b/app-misc/spacenavd/files/spacenavd-0.7-gcc10.patch
19 new file mode 100644
20 index 00000000000..485aa6c5933
21 --- /dev/null
22 +++ b/app-misc/spacenavd/files/spacenavd-0.7-gcc10.patch
23 @@ -0,0 +1,24 @@
24 +From 081182f1675bb69eec58d92698f1ba2f23466d3f Mon Sep 17 00:00:00 2001
25 +From: John Tsiombikas <nuclear@××××××××××.org>
26 +Date: Sat, 1 Feb 2020 01:19:14 +0200
27 +Subject: [PATCH] GCC 10 changes the default from -fcommon to -fno-common, so
28 + we need to set it explicitly now. Closes github bug #17.
29 +
30 +---
31 + Makefile.in | 3 ++-
32 + 1 file changed, 2 insertions(+), 1 deletion(-)
33 +
34 +diff --git a/Makefile.in b/Makefile.in
35 +index 9eba102..abf62c9 100644
36 +--- a/Makefile.in
37 ++++ b/Makefile.in
38 +@@ -7,7 +7,8 @@ ctl = spnavd_ctl
39 +
40 + CC = gcc
41 + INSTALL = install
42 +-CFLAGS = -pedantic -Wall $(dbg) $(opt) -fno-strict-aliasing -I$(srcdir)/src -I/usr/local/include $(add_cflags)
43 ++CFLAGS = -pedantic -Wall $(dbg) $(opt) -fno-strict-aliasing -fcommon \
44 ++ -I$(srcdir)/src -I/usr/local/include $(add_cflags)
45 + LDFLAGS = -L/usr/local/lib $(xlib) $(add_ldflags)
46 +
47 + $(bin): $(obj)
48
49 diff --git a/app-misc/spacenavd/spacenavd-0.7.ebuild b/app-misc/spacenavd/spacenavd-0.7.ebuild
50 index 05eb105d316..6a4e1d73add 100644
51 --- a/app-misc/spacenavd/spacenavd-0.7.ebuild
52 +++ b/app-misc/spacenavd/spacenavd-0.7.ebuild
53 @@ -17,6 +17,10 @@ IUSE="X"
54 RDEPEND="X? ( x11-apps/xdpyinfo x11-libs/libXi )"
55 DEPEND="${RDEPEND}"
56
57 +PATCHES=(
58 + "${FILESDIR}"/${P}-gcc10.patch
59 +)
60 +
61 pkg_setup() {
62 CONFIG_CHECK="~INPUT_EVDEV"
63 ERROR_CFG="Your kernel needs INPUT_EVDEV for the spacenavd to work properly"