summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net-misc/remmina/files/remmina-gcc10.patch36
-rw-r--r--net-misc/remmina/remmina-1.3.10.ebuild1
2 files changed, 37 insertions, 0 deletions
diff --git a/net-misc/remmina/files/remmina-gcc10.patch b/net-misc/remmina/files/remmina-gcc10.patch
new file mode 100644
index 00000000000..214a8c88787
--- /dev/null
+++ b/net-misc/remmina/files/remmina-gcc10.patch
@@ -0,0 +1,36 @@
+From 27f84d1c0a2e4c2432281f25ef3026bb00bbdc15 Mon Sep 17 00:00:00 2001
+From: Antenore Gatta <antenore@simbiosi.org>
+Date: Sun, 9 Feb 2020 02:34:50 +0100
+Subject: [PATCH] Removing struct declaration utsname as not used - Closes
+ #2080
+
+---
+ src/remmina_stats.c | 5 -----
+ 1 file changed, 5 deletions(-)
+
+diff --git a/src/remmina_stats.c b/src/remmina_stats.c
+index a6eb6f609..3b7cbf0bf 100644
+--- a/src/remmina_stats.c
++++ b/src/remmina_stats.c
+@@ -159,8 +159,6 @@
+ #endif
+ #include "remmina_stats.h"
+
+-struct utsname u;
+-
+ struct ProfilesData {
+ GHashTable *proto_count;
+ GHashTable *proto_date;
+@@ -864,9 +862,6 @@ JsonNode *remmina_stats_get_all()
+ json_builder_set_member_name(b, "REMMINAVERSION");
+ json_builder_add_value(b, n);
+
+- if (uname(&u) == -1)
+- g_print("uname:");
+-
+ n = remmina_stats_get_os_info();
+ json_builder_set_member_name(b, "SYSTEM");
+ json_builder_add_value(b, n);
+--
+2.24.1
+
diff --git a/net-misc/remmina/remmina-1.3.10.ebuild b/net-misc/remmina/remmina-1.3.10.ebuild
index 42a9e58cb1c..37a05502cf5 100644
--- a/net-misc/remmina/remmina-1.3.10.ebuild
+++ b/net-misc/remmina/remmina-1.3.10.ebuild
@@ -51,6 +51,7 @@ RDEPEND="${CDEPEND}
"
DOCS=( AUTHORS CHANGELOG.md README.md THANKS.md )
+PATCHES=( "${FILESDIR}"/${PN}-gcc10.patch )
S="${WORKDIR}/${MY_P}"