With this remmina still starts. I don't use it, so haven't tested any further.

OK?

>From 186c110fb0d4e38902631e5f1ec81d0d7e82a9a1 Mon Sep 17 00:00:00 2001
From: Greg Steuck <[email protected]>
Date: Thu, 4 Feb 2021 22:18:59 -0800
Subject: [PATCH] Fix x11/remmina -fno-common from upstream

---
 x11/remmina/patches/patch-src_remmina_stats_c | 27 +++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 x11/remmina/patches/patch-src_remmina_stats_c

diff --git x11/remmina/patches/patch-src_remmina_stats_c 
x11/remmina/patches/patch-src_remmina_stats_c
new file mode 100644
index 00000000000..16ede22637d
--- /dev/null
+++ x11/remmina/patches/patch-src_remmina_stats_c
@@ -0,0 +1,27 @@
+$OpenBSD$
+
+Makes compile with -fno-common. Taken from upstream:
+https://github.com/FreeRDP/Remmina/commit/27f84d1c0a2e4c2432281f25ef3026bb00bbdc15
+
+Index: src/remmina_stats.c
+--- src/remmina_stats.c.orig
++++ src/remmina_stats.c
+@@ -158,8 +158,6 @@
+ #endif
+ #include "remmina_stats.h"
+ 
+-struct utsname u;
+-
+ struct ProfilesData {
+       GHashTable *proto_count;
+       GHashTable *proto_date;
+@@ -805,9 +803,6 @@ JsonNode *remmina_stats_get_all()
+       n = remmina_stats_get_version();
+       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");
-- 
2.30.0

Reply via email to