summaryrefslogtreecommitdiff
path: root/x11-fm/nautilus-python/files/patch-src_nautilus-python.h
diff options
context:
space:
mode:
authorTobias C. Berner <tcberner@FreeBSD.org>2020-09-13 15:49:02 +0000
committerTobias C. Berner <tcberner@FreeBSD.org>2020-09-13 15:49:02 +0000
commit28a2d9a7f8223fda51a54ea8d7f32f47c01abc76 (patch)
treef98b6a8948cd4beacdfc05c29953213ddb75ff2a /x11-fm/nautilus-python/files/patch-src_nautilus-python.h
parentAdd net/py-tacacs_plus: Client for TACACS+ authentication (diff)
x11-fm/nautilus-python: fix build on current
- fixes build with -fcommon Backport of patch from Debian: From: Andreas Henriksson <andreas@fatal.se> Subject: Fix build with gcc 10 Bug-Debian: https://bugs.debian.org/957578 Forwarded: https://gitlab.gnome.org/GNOME/nautilus-python/-/merge_requests/7 Last-Update: 2020-05-11 Obtained from: https://sources.debian.org/src/nautilus-python/1.2.3-3/debian/patches/gcc10.patch/
Notes
Notes: svn path=/head/; revision=548482
Diffstat (limited to 'x11-fm/nautilus-python/files/patch-src_nautilus-python.h')
-rw-r--r--x11-fm/nautilus-python/files/patch-src_nautilus-python.h51
1 files changed, 51 insertions, 0 deletions
diff --git a/x11-fm/nautilus-python/files/patch-src_nautilus-python.h b/x11-fm/nautilus-python/files/patch-src_nautilus-python.h
new file mode 100644
index 000000000000..469a44acc863
--- /dev/null
+++ b/x11-fm/nautilus-python/files/patch-src_nautilus-python.h
@@ -0,0 +1,51 @@
+--- src/nautilus-python.h.orig 2020-09-13 15:43:39 UTC
++++ src/nautilus-python.h
+@@ -43,37 +43,37 @@ extern NautilusPythonDebug nautilus_python_debug;
+ #define debug_enter_args(x, y) { if (nautilus_python_debug & NAUTILUS_PYTHON_DEBUG_MISC) \
+ g_printf("%s: entered " x "\n", __FUNCTION__, y); }
+
+-PyTypeObject *_PyGtkWidget_Type;
++extern PyTypeObject *_PyGtkWidget_Type;
+ #define PyGtkWidget_Type (*_PyGtkWidget_Type)
+
+-PyTypeObject *_PyNautilusColumn_Type;
++extern PyTypeObject *_PyNautilusColumn_Type;
+ #define PyNautilusColumn_Type (*_PyNautilusColumn_Type)
+
+-PyTypeObject *_PyNautilusColumnProvider_Type;
++extern PyTypeObject *_PyNautilusColumnProvider_Type;
+ #define PyNautilusColumnProvider_Type (*_PyNautilusColumnProvider_Type)
+
+-PyTypeObject *_PyNautilusInfoProvider_Type;
++extern PyTypeObject *_PyNautilusInfoProvider_Type;
+ #define PyNautilusInfoProvider_Type (*_PyNautilusInfoProvider_Type)
+
+-PyTypeObject *_PyNautilusLocationWidgetProvider_Type;
++extern PyTypeObject *_PyNautilusLocationWidgetProvider_Type;
+ #define PyNautilusLocationWidgetProvider_Type (*_PyNautilusLocationWidgetProvider_Type)
+
+-PyTypeObject *_PyNautilusMenu_Type;
++extern PyTypeObject *_PyNautilusMenu_Type;
+ #define PyNautilusMenu_Type (*_PyNautilusMenu_Type)
+
+-PyTypeObject *_PyNautilusMenuItem_Type;
++extern PyTypeObject *_PyNautilusMenuItem_Type;
+ #define PyNautilusMenuItem_Type (*_PyNautilusMenuItem_Type)
+
+-PyTypeObject *_PyNautilusMenuProvider_Type;
++extern PyTypeObject *_PyNautilusMenuProvider_Type;
+ #define PyNautilusMenuProvider_Type (*_PyNautilusMenuProvider_Type)
+
+-PyTypeObject *_PyNautilusPropertyPage_Type;
++extern PyTypeObject *_PyNautilusPropertyPage_Type;
+ #define PyNautilusPropertyPage_Type (*_PyNautilusPropertyPage_Type)
+
+-PyTypeObject *_PyNautilusPropertyPageProvider_Type;
++extern PyTypeObject *_PyNautilusPropertyPageProvider_Type;
+ #define PyNautilusPropertyPageProvider_Type (*_PyNautilusPropertyPageProvider_Type)
+
+-PyTypeObject *_PyNautilusOperationHandle_Type;
++extern PyTypeObject *_PyNautilusOperationHandle_Type;
+ #define PyNautilusOperationHandle_Type (*_PyNautilusOperationHandle_Type)
+
+ #endif /* NAUTILUS_PYTHON_H */