commit:     e2ba17ea684c685b213acc48dc7eefcac684b7a2
Author:     Ben Kohler <bkohler <AT> gentoo <DOT> org>
AuthorDate: Sun Feb  9 13:31:48 2020 +0000
Commit:     Ben Kohler <bkohler <AT> gentoo <DOT> org>
CommitDate: Sun Feb  9 13:32:13 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2ba17ea

net-misc/remmina: add -fno-common/gcc10 fix from upstream

Closes: https://bugs.gentoo.org/708740
Package-Manager: Portage-2.3.88, Repoman-2.3.20
Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org>

 net-misc/remmina/files/remmina-gcc10.patch | 36 ++++++++++++++++++++++++++++++
 net-misc/remmina/remmina-1.3.10.ebuild     |  1 +
 2 files changed, 37 insertions(+)

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 <[email protected]>
+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}"
 

Reply via email to