summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBranko Grubic <bitlord0xff@gmail.com>2023-09-28 18:52:10 +0200
committerBen Kohler <bkohler@gentoo.org>2023-10-02 09:47:57 -0500
commit7b7b08a26f6128f5467e26715a4ae074caaadb01 (patch)
tree99769276529c25cc69774210b92f99f3fa88140f /net-misc/remmina
parentsys-apps/hwinfo: add 23.2 (diff)
downloadgentoo-7b7b08a26f6128f5467e26715a4ae074caaadb01.tar.gz
gentoo-7b7b08a26f6128f5467e26715a4ae074caaadb01.tar.bz2
gentoo-7b7b08a26f6128f5467e26715a4ae074caaadb01.zip
net-misc/remmina: Fixes build with USE="-ssh"
Bug: https://gitlab.com/Remmina/Remmina/-/issues/2981 Bug: https://bugs.gentoo.org/914851 Signed-off-by: Branko Grubic <bitlord0xff@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/33106 Signed-off-by: Ben Kohler <bkohler@gentoo.org>
Diffstat (limited to 'net-misc/remmina')
-rw-r--r--net-misc/remmina/files/remmina-1.4.32-REM-2981.patch54
-rw-r--r--net-misc/remmina/remmina-1.4.32.ebuild1
2 files changed, 55 insertions, 0 deletions
diff --git a/net-misc/remmina/files/remmina-1.4.32-REM-2981.patch b/net-misc/remmina/files/remmina-1.4.32-REM-2981.patch
new file mode 100644
index 000000000000..5725349b2cae
--- /dev/null
+++ b/net-misc/remmina/files/remmina-1.4.32-REM-2981.patch
@@ -0,0 +1,54 @@
+From dbd6f94974c4d7df313963ffefecb1ff8ca9ecb6 Mon Sep 17 00:00:00 2001
+From: myheroyuki <myheroyuki@outlook.com>
+Date: Sun, 24 Sep 2023 23:15:58 +0900
+Subject: [PATCH] [REM-2981] Move ssh-unrelated code outside of HAVE_LIBSSH
+ ifdef
+
+---
+ src/remmina_file_editor.c | 23 ++++++++++++-----------
+ 1 file changed, 12 insertions(+), 11 deletions(-)
+
+diff --git a/src/remmina_file_editor.c b/src/remmina_file_editor.c
+index feee4a031..1c1fa9858 100644
+--- a/src/remmina_file_editor.c
++++ b/src/remmina_file_editor.c
+@@ -361,17 +361,6 @@ static GtkWidget *remmina_file_editor_create_notebook_tab(RemminaFileEditor *gfe
+ return grid;
+ }
+
+-#ifdef HAVE_LIBSSH
+-
+-static void remmina_file_editor_ssh_tunnel_server_custom_radio_on_toggled(GtkToggleButton *togglebutton, RemminaFileEditor *gfe)
+-{
+- TRACE_CALL(__func__);
+- gtk_widget_set_sensitive(GTK_WIDGET(gfe->priv->ssh_tunnel_server_entry),
+- gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(gfe->priv->ssh_tunnel_enabled_check)) &&
+- (gfe->priv->ssh_tunnel_server_custom_radio == NULL ||
+- gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(gfe->priv->ssh_tunnel_server_custom_radio))));
+-}
+-
+
+ static void remmina_file_editor_assistance_enabled_check_on_toggled(GtkToggleButton *togglebutton,
+ RemminaFileEditor *gfe)
+@@ -392,6 +381,18 @@ static void remmina_file_editor_assistance_enabled_check_on_toggled(GtkToggleBut
+ }
+ }
+
++#ifdef HAVE_LIBSSH
++
++static void remmina_file_editor_ssh_tunnel_server_custom_radio_on_toggled(GtkToggleButton *togglebutton, RemminaFileEditor *gfe)
++{
++ TRACE_CALL(__func__);
++ gtk_widget_set_sensitive(GTK_WIDGET(gfe->priv->ssh_tunnel_server_entry),
++ gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(gfe->priv->ssh_tunnel_enabled_check)) &&
++ (gfe->priv->ssh_tunnel_server_custom_radio == NULL ||
++ gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(gfe->priv->ssh_tunnel_server_custom_radio))));
++}
++
++
+ static void remmina_file_editor_ssh_tunnel_enabled_check_on_toggled(GtkToggleButton *togglebutton,
+ RemminaFileEditor *gfe, RemminaProtocolSSHSetting ssh_setting)
+ {
+--
+2.42.0
+
diff --git a/net-misc/remmina/remmina-1.4.32.ebuild b/net-misc/remmina/remmina-1.4.32.ebuild
index 86fae2ec9b89..772019a15889 100644
--- a/net-misc/remmina/remmina-1.4.32.ebuild
+++ b/net-misc/remmina/remmina-1.4.32.ebuild
@@ -71,6 +71,7 @@ pkg_setup() {
}
src_prepare() {
+ PATCHES+=( ${FILESDIR}/${P}-REM-2981.patch ) #914851
xdg_environment_reset
cmake_src_prepare
}