summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Kohler <bkohler@gentoo.org>2020-06-30 06:08:02 -0500
committerBen Kohler <bkohler@gentoo.org>2020-06-30 06:10:24 -0500
commit54a385d1d66d042549760b5479775a5f266e7a38 (patch)
tree60d82bd9d49b1a3d835be31ac0c5eb7ac4fb4cc5 /net-misc/remmina/files
parentsci-visualization/gwyddion: Version bump 2.56 (diff)
downloadgentoo-54a385d1d66d042549760b5479775a5f266e7a38.tar.gz
gentoo-54a385d1d66d042549760b5479775a5f266e7a38.tar.bz2
gentoo-54a385d1d66d042549760b5479775a5f266e7a38.zip
net-misc/remmina: update examples patch for 1.4.5
Closes: https://bugs.gentoo.org/729844 Package-Manager: Portage-2.3.103, Repoman-2.3.23 Signed-off-by: Ben Kohler <bkohler@gentoo.org>
Diffstat (limited to 'net-misc/remmina/files')
-rw-r--r--net-misc/remmina/files/remmina-1.4.5-with-examples.patch84
1 files changed, 47 insertions, 37 deletions
diff --git a/net-misc/remmina/files/remmina-1.4.5-with-examples.patch b/net-misc/remmina/files/remmina-1.4.5-with-examples.patch
index 10ac35744d7f..930f326b27b4 100644
--- a/net-misc/remmina/files/remmina-1.4.5-with-examples.patch
+++ b/net-misc/remmina/files/remmina-1.4.5-with-examples.patch
@@ -1,37 +1,47 @@
---- /dev/null
-+++ b/net-misc/remmina/files/remmina-1.4.6-with-examples.patch
-@@ -0,0 +1,34 @@
-+diff -Nupr a/plugins/tool_hello_world/plugin.c b/plugins/tool_hello_world/plugin.c
-+--- a/plugins/tool_hello_world/plugin.c 2020-06-08 22:07:44.000000000 +0200
-++++ b/plugins/tool_hello_world/plugin.c 2020-06-10 20:18:48.495507560 +0200
-+@@ -42,17 +42,19 @@
-+ #include <gdk/gdkx.h>
-+
-+ static RemminaPluginService *remmina_plugin_service = NULL;
-++#define remmina_plugin_debug(fmt, ...) remmina_plugin_service->_remmina_debug(__func__, fmt __VA_OPT__(,) __VA_ARGS__)
-++
-+
-+ static void remmina_plugin_tool_init(RemminaProtocolWidget *gp)
-+ {
-+ TRACE_CALL(__func__);
-+- remmina_plugin_service->_debug("[%s] Plugin init", PLUGIN_NAME);
-++ remmina_plugin_debug("[%s] Plugin init", PLUGIN_NAME);
-+ }
-+
-+ static gboolean remmina_plugin_tool_open_connection(RemminaProtocolWidget *gp)
-+ {
-+ TRACE_CALL(__func__);
-+- remmina_plugin_service->_debug("[%s] Plugin open connection", PLUGIN_NAME);
-++ remmina_plugin_debug("[%s] Plugin open connection", PLUGIN_NAME);
-+
-+ GtkDialog *dialog;
-+ dialog = GTK_DIALOG(gtk_message_dialog_new(NULL, GTK_DIALOG_MODAL | GTK_DIALOG_USE_HEADER_BAR,
-+@@ -65,7 +67,7 @@ static gboolean remmina_plugin_tool_open
-+ static gboolean remmina_plugin_tool_close_connection(RemminaProtocolWidget *gp)
-+ {
-+ TRACE_CALL(__func__);
-+- remmina_plugin_service->_debug("[%s] Plugin close connection", PLUGIN_NAME);
-++ remmina_plugin_debug("[%s] Plugin close connection", PLUGIN_NAME);
-+ remmina_plugin_service->protocol_plugin_emit_signal(gp, "disconnect");
-+ return FALSE;
-+ }
+From 5d569e04f33b2c9a8f735d928ad2c9cec9d1c4b5 Mon Sep 17 00:00:00 2001
+From: Antenore Gatta <antenore@simbiosi.org>
+Date: Sun, 14 Jun 2020 09:05:18 +0200
+Subject: [PATCH] Build failure with -DWITH_EXAMPLES=yes, closes #2228
+
+Signed-off-by: Antenore Gatta <antenore@simbiosi.org>
+---
+ plugins/tool_hello_world/plugin.c | 7 ++++---
+ 1 file changed, 4 insertions(+), 3 deletions(-)
+
+diff --git a/plugins/tool_hello_world/plugin.c b/plugins/tool_hello_world/plugin.c
+index 3e277435d..9695fd586 100644
+--- a/plugins/tool_hello_world/plugin.c
++++ b/plugins/tool_hello_world/plugin.c
+@@ -42,17 +42,18 @@
+ #include <gdk/gdkx.h>
+
+ static RemminaPluginService *remmina_plugin_service = NULL;
++#define REMMINA_PLUGIN_DEBUG(fmt, ...) remmina_plugin_service->_remmina_debug(__func__, fmt, ##__VA_ARGS__)
+
+ static void remmina_plugin_tool_init(RemminaProtocolWidget *gp)
+ {
+ TRACE_CALL(__func__);
+- remmina_plugin_service->_debug("[%s] Plugin init", PLUGIN_NAME);
++ REMMINA_PLUGIN_DEBUG("[%s] Plugin init", PLUGIN_NAME);
+ }
+
+ static gboolean remmina_plugin_tool_open_connection(RemminaProtocolWidget *gp)
+ {
+ TRACE_CALL(__func__);
+- remmina_plugin_service->_debug("[%s] Plugin open connection", PLUGIN_NAME);
++ REMMINA_PLUGIN_DEBUG("[%s] Plugin open connection", PLUGIN_NAME);
+
+ GtkDialog *dialog;
+ dialog = GTK_DIALOG(gtk_message_dialog_new(NULL, GTK_DIALOG_MODAL | GTK_DIALOG_USE_HEADER_BAR,
+@@ -65,7 +66,7 @@ static gboolean remmina_plugin_tool_open_connection(RemminaProtocolWidget *gp)
+ static gboolean remmina_plugin_tool_close_connection(RemminaProtocolWidget *gp)
+ {
+ TRACE_CALL(__func__);
+- remmina_plugin_service->_debug("[%s] Plugin close connection", PLUGIN_NAME);
++ REMMINA_PLUGIN_DEBUG("[%s] Plugin close connection", PLUGIN_NAME);
+ remmina_plugin_service->protocol_plugin_emit_signal(gp, "disconnect");
+ return FALSE;
+ }
+--
+GitLab
+