From 8aeb5133c380bf9f7db1cf9fa0938818f50c2741 Mon Sep 17 00:00:00 2001 From: Niclas Zeising Date: Tue, 25 Aug 2020 13:14:10 +0000 Subject: [PATCH] net/remmina: Fix build with -fno-common Add a patch from upstream to fix the build of net/remmina with -fno-common, which is the default with llvm 11. MFH: 2020Q3 (implicit, -fno-common fixes, ok by joenum) --- net/remmina/files/patch-27f84d1c.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 net/remmina/files/patch-27f84d1c.c diff --git a/net/remmina/files/patch-27f84d1c.c b/net/remmina/files/patch-27f84d1c.c new file mode 100644 index 000000000000..303e7d8469ce --- /dev/null +++ b/net/remmina/files/patch-27f84d1c.c @@ -0,0 +1,23 @@ +diff --git a/src/remmina_stats.c b/src/remmina_stats.c +index a6eb6f609ba7f0a5d444da2eb9f34684725625a5..3b7cbf0bf61964cc027c936b753bece49986c193 100644 +--- src/remmina_stats.c ++++ 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);