aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2019-04-07 17:17:25 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2019-04-07 17:17:25 +0000
commitd91ef086c2ac1e2999a6268cc7b32d1525fb0d60 (patch)
tree6b04b3c737c59618c6c804543da54cb8f0de546d
parentbc0ceb2206100cac06031fb38c6fa1bed876f998 (diff)
downloadports-d91ef086c2ac1e2999a6268cc7b32d1525fb0d60.tar.gz
ports-d91ef086c2ac1e2999a6268cc7b32d1525fb0d60.zip
Notes
-rw-r--r--net-im/psi/files/patch-src_systeminfo.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/net-im/psi/files/patch-src_systeminfo.cpp b/net-im/psi/files/patch-src_systeminfo.cpp
new file mode 100644
index 000000000000..049ba5d4e9f0
--- /dev/null
+++ b/net-im/psi/files/patch-src_systeminfo.cpp
@@ -0,0 +1,19 @@
+--- src/systeminfo.cpp.orig 2018-11-02 00:15:39 UTC
++++ src/systeminfo.cpp
+@@ -191,6 +191,16 @@ SystemInfo::SystemInfo() : QObject(QCoreApplication::i
+ }
+ #endif
+
++#ifdef __FreeBSD__
++ // QSysInfo::productVersion() on FreeBSD currently does not return
++ // correct OS version (see PR 237075)
++ if (os_version_str_ == "unknown") {
++ struct utsname u;
++ uname(&u);
++ os_version_str_ = u.release;
++ }
++#endif
++
+ if (!os_version_str_.isEmpty() && os_name_str_.contains(os_version_str_)) {
+ os_version_str_.clear();
+ }