summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2020-01-31 12:52:42 +0100
committerJeroen Roovers <jer@gentoo.org>2020-01-31 12:53:03 +0100
commit35db8d18eeb785d6cf17b660ba1bacb1f6fad6b5 (patch)
tree02f5daffb43283b41d268882294c7ff32dce72cb /x11-misc/xvkbd
parentdev-util/debhelper: Old (diff)
downloadgentoo-35db8d18eeb785d6cf17b660ba1bacb1f6fad6b5.tar.gz
gentoo-35db8d18eeb785d6cf17b660ba1bacb1f6fad6b5.tar.bz2
gentoo-35db8d18eeb785d6cf17b660ba1bacb1f6fad6b5.zip
x11-misc/xvkbd: Fix CFLAGS=-fno-common
Package-Manager: Portage-2.3.86, Repoman-2.3.20 Closes: https://bugs.gentoo.org/show_bug.cgi?id=707430 Signed-off-by: Jeroen Roovers <jer@gentoo.org>
Diffstat (limited to 'x11-misc/xvkbd')
-rw-r--r--x11-misc/xvkbd/files/xvkbd-4.0-fno-common.patch22
-rw-r--r--x11-misc/xvkbd/xvkbd-4.0.ebuild3
2 files changed, 24 insertions, 1 deletions
diff --git a/x11-misc/xvkbd/files/xvkbd-4.0-fno-common.patch b/x11-misc/xvkbd/files/xvkbd-4.0-fno-common.patch
new file mode 100644
index 000000000000..1ca0db048566
--- /dev/null
+++ b/x11-misc/xvkbd/files/xvkbd-4.0-fno-common.patch
@@ -0,0 +1,22 @@
+--- a/resources.h
++++ b/resources.h
+@@ -19,7 +19,7 @@
+ # define PROGRAM_NAME "xvkbd"
+ #endif
+
+-struct appres_struct {
++extern struct appres_struct {
+ String description;
+ String show_manual_command;
+
+--- a/xvkbd.c
++++ b/xvkbd.c
+@@ -500,6 +500,8 @@
+
+ static Pixmap xvkbd_pixmap = None;
+
++struct appres_struct appres;
++
+ static int AddKeysym(KeySym keysym, Boolean top); /* forward */
+ static void MakeKeyboard(Boolean remake);
+ static void MakeKeypad(Widget form, Widget from_vert, Widget from_horiz);
diff --git a/x11-misc/xvkbd/xvkbd-4.0.ebuild b/x11-misc/xvkbd/xvkbd-4.0.ebuild
index 90d49c1f04fe..90be10d40308 100644
--- a/x11-misc/xvkbd/xvkbd-4.0.ebuild
+++ b/x11-misc/xvkbd/xvkbd-4.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -27,6 +27,7 @@ DEPEND="
"
PATCHES=(
"${FILESDIR}"/${PN}-4.0-destdir.patch
+ "${FILESDIR}"/${PN}-4.0-fno-common.patch
)
src_prepare() {