diff options
author | Sebastian Pipping <sping@gentoo.org> | 2020-02-01 00:36:57 +0100 |
---|---|---|
committer | Sebastian Pipping <sping@gentoo.org> | 2020-02-01 00:42:51 +0100 |
commit | d59da78d876aba0d7c867ed2083c51489ad80908 (patch) | |
tree | 66aade1941274420a4bf7cd7878c9dc88804033d /app-misc | |
parent | net-misc/gsutil: version bump to 4.47 (diff) | |
download | gentoo-d59da78d876aba0d7c867ed2083c51489ad80908.tar.gz gentoo-d59da78d876aba0d7c867ed2083c51489ad80908.tar.bz2 gentoo-d59da78d876aba0d7c867ed2083c51489ad80908.zip |
app-misc/spacenavd: Support GCC 10
Closes: https://bugs.gentoo.org/706966
Signed-off-by: Sebastian Pipping <sping@gentoo.org>
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Diffstat (limited to 'app-misc')
-rw-r--r-- | app-misc/spacenavd/files/spacenavd-0.7-gcc10.patch | 24 | ||||
-rw-r--r-- | app-misc/spacenavd/spacenavd-0.7.ebuild | 4 |
2 files changed, 28 insertions, 0 deletions
diff --git a/app-misc/spacenavd/files/spacenavd-0.7-gcc10.patch b/app-misc/spacenavd/files/spacenavd-0.7-gcc10.patch new file mode 100644 index 000000000000..485aa6c59338 --- /dev/null +++ b/app-misc/spacenavd/files/spacenavd-0.7-gcc10.patch @@ -0,0 +1,24 @@ +From 081182f1675bb69eec58d92698f1ba2f23466d3f Mon Sep 17 00:00:00 2001 +From: John Tsiombikas <nuclear@member.fsf.org> +Date: Sat, 1 Feb 2020 01:19:14 +0200 +Subject: [PATCH] GCC 10 changes the default from -fcommon to -fno-common, so + we need to set it explicitly now. Closes github bug #17. + +--- + Makefile.in | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/Makefile.in b/Makefile.in +index 9eba102..abf62c9 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -7,7 +7,8 @@ ctl = spnavd_ctl + + CC = gcc + INSTALL = install +-CFLAGS = -pedantic -Wall $(dbg) $(opt) -fno-strict-aliasing -I$(srcdir)/src -I/usr/local/include $(add_cflags) ++CFLAGS = -pedantic -Wall $(dbg) $(opt) -fno-strict-aliasing -fcommon \ ++ -I$(srcdir)/src -I/usr/local/include $(add_cflags) + LDFLAGS = -L/usr/local/lib $(xlib) $(add_ldflags) + + $(bin): $(obj) diff --git a/app-misc/spacenavd/spacenavd-0.7.ebuild b/app-misc/spacenavd/spacenavd-0.7.ebuild index 05eb105d3164..6a4e1d73addc 100644 --- a/app-misc/spacenavd/spacenavd-0.7.ebuild +++ b/app-misc/spacenavd/spacenavd-0.7.ebuild @@ -17,6 +17,10 @@ IUSE="X" RDEPEND="X? ( x11-apps/xdpyinfo x11-libs/libXi )" DEPEND="${RDEPEND}" +PATCHES=( + "${FILESDIR}"/${P}-gcc10.patch +) + pkg_setup() { CONFIG_CHECK="~INPUT_EVDEV" ERROR_CFG="Your kernel needs INPUT_EVDEV for the spacenavd to work properly" |