diff options
author | Alexey Dokuchaev <danfe@FreeBSD.org> | 2019-04-07 17:17:25 +0000 |
---|---|---|
committer | Alexey Dokuchaev <danfe@FreeBSD.org> | 2019-04-07 17:17:25 +0000 |
commit | d91ef086c2ac1e2999a6268cc7b32d1525fb0d60 (patch) | |
tree | 6b04b3c737c59618c6c804543da54cb8f0de546d | |
parent | bc0ceb2206100cac06031fb38c6fa1bed876f998 (diff) | |
download | ports-d91ef086c2ac1e2999a6268cc7b32d1525fb0d60.tar.gz ports-d91ef086c2ac1e2999a6268cc7b32d1525fb0d60.zip |
Notes
-rw-r--r-- | net-im/psi/files/patch-src_systeminfo.cpp | 19 |
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(); + } |