x11-misc/fbpanel: Fix CFLAGS=-fno-common
authorJeroen Roovers <jer@gentoo.org>
Sat, 1 Feb 2020 14:03:43 +0000 (15:03 +0100)
committerJeroen Roovers <jer@gentoo.org>
Sat, 1 Feb 2020 14:03:57 +0000 (15:03 +0100)
Package-Manager: Portage-2.3.86, Repoman-2.3.20
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
x11-misc/fbpanel/fbpanel-7.0-r1.ebuild
x11-misc/fbpanel/files/fbpanel-7.0-fno-common.patch [new file with mode: 0644]

index 9acb74d5c5ff705d8c2dbc4948d13a05dc00ce37..b468b2a537e8d9cc07a90ae271b59c534e5a1b94 100644 (file)
@@ -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
@@ -34,6 +34,7 @@ PATCHES=(
        "${FILESDIR}"/${PN}-7.0-clang.patch
        "${FILESDIR}"/${PN}-7.0-images.patch
        "${FILESDIR}"/${PN}-7.0-shebangs.patch
+       "${FILESDIR}"/${PN}-7.0-fno-common.patch
 )
 
 src_configure() {
diff --git a/x11-misc/fbpanel/files/fbpanel-7.0-fno-common.patch b/x11-misc/fbpanel/files/fbpanel-7.0-fno-common.patch
new file mode 100644 (file)
index 0000000..aafd8c4
--- /dev/null
@@ -0,0 +1,21 @@
+--- a/panel/plugin.c
++++ b/panel/plugin.c
+@@ -22,6 +22,7 @@
+ /**************************************************************/
+ static GHashTable *class_ht;
++struct _plugin_instance *stam;
+ void
+ class_register(plugin_class *p)
+--- a/panel/plugin.h
++++ b/panel/plugin.h
+@@ -9,7 +9,7 @@
+ #include <stdio.h>
+ #include "panel.h"
+-struct _plugin_instance *stam;
++extern struct _plugin_instance *stam;
+ typedef struct {
+     /* common */