pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/x11/konsole konsole: Newer QT API fixes.
details: https://anonhg.NetBSD.org/pkgsrc/rev/54a489beab73
branches: trunk
changeset: 379249:54a489beab73
user: jperkin <jperkin%pkgsrc.org@localhost>
date: Fri May 13 15:00:04 2022 +0000
description:
konsole: Newer QT API fixes.
diffstat:
x11/konsole/distinfo | 4 +-
x11/konsole/patches/patch-src_ProcessInfo.cpp | 40 ++++++++++++++++++++++++--
2 files changed, 39 insertions(+), 5 deletions(-)
diffs (67 lines):
diff -r 16c12e40206c -r 54a489beab73 x11/konsole/distinfo
--- a/x11/konsole/distinfo Fri May 13 14:52:07 2022 +0000
+++ b/x11/konsole/distinfo Fri May 13 15:00:04 2022 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.13 2021/10/26 11:34:03 nia Exp $
+$NetBSD: distinfo,v 1.14 2022/05/13 15:00:04 jperkin Exp $
BLAKE2s (konsole-20.12.3.tar.xz) = 9ecfd4599123ffcf934020afeba6db4ee0130541241a01b36a184b2b128640bd
SHA512 (konsole-20.12.3.tar.xz) = a48eaa0080b26369f5f163f3ae345bca7f35aa06d581ecc0bbeca54fee2e9b900a4b648f940a67f506ecb00dba971220f1c1c7a699efcbb6e27ee0932c27e37a
Size (konsole-20.12.3.tar.xz) = 1250536 bytes
-SHA1 (patch-src_ProcessInfo.cpp) = 3919cc3b4c3b1f4acc6bd8fc1bbf58ce66803ef3
+SHA1 (patch-src_ProcessInfo.cpp) = 6ca72a192f0fd852a2dcd1576715f2cb423af2bb
diff -r 16c12e40206c -r 54a489beab73 x11/konsole/patches/patch-src_ProcessInfo.cpp
--- a/x11/konsole/patches/patch-src_ProcessInfo.cpp Fri May 13 14:52:07 2022 +0000
+++ b/x11/konsole/patches/patch-src_ProcessInfo.cpp Fri May 13 15:00:04 2022 +0000
@@ -1,6 +1,6 @@
-$NetBSD: patch-src_ProcessInfo.cpp,v 1.5 2021/04/07 12:28:32 markd Exp $
+$NetBSD: patch-src_ProcessInfo.cpp,v 1.6 2022/05/13 15:00:04 jperkin Exp $
-NetBSD support
+NetBSD support and QT fixes.
--- src/ProcessInfo.cpp.orig 2021-02-24 23:11:38.000000000 +0000
+++ src/ProcessInfo.cpp
@@ -169,7 +169,41 @@
#elif defined(Q_OS_OPENBSD)
class OpenBSDProcessInfo : public UnixProcessInfo
{
-@@ -937,6 +1095,8 @@ ProcessInfo *ProcessInfo::newInstance(in
+@@ -879,7 +1037,7 @@ protected:
+ // version uses readlink.
+ bool readCurrentDir(int pid) override
+ {
+- QFileInfo info(QString("/proc/%1/path/cwd").arg(pid));
++ QFileInfo info(QStringLiteral("/proc/%1/path/cwd").arg(pid));
+ const bool readable = info.isReadable();
+
+ if (readable && info.isSymLink()) {
+@@ -899,7 +1057,7 @@ protected:
+ private:
+ bool readProcInfo(int pid) override
+ {
+- QFile psinfo(QString("/proc/%1/psinfo").arg(pid));
++ QFile psinfo(QStringLiteral("/proc/%1/psinfo").arg(pid));
+ if (psinfo.open(QIODevice::ReadOnly)) {
+ struct psinfo info;
+ if (psinfo.read((char *)&info, sizeof(info)) != sizeof(info)) {
+@@ -908,12 +1066,13 @@ private:
+
+ setParentPid(info.pr_ppid);
+ setForegroundPid(info.pr_pgid);
+- setName(info.pr_fname);
++ //setName(info.pr_fname);
++ setName(QString::fromUtf8(info.pr_fname));
+ setPid(pid);
+
+ // Bogus, because we're treating the arguments as one single string
+ info.pr_psargs[PRARGSZ - 1] = 0;
+- addArgument(info.pr_psargs);
++ addArgument(QString::fromUtf8(info.pr_psargs));
+ }
+ return true;
+ }
+@@ -937,6 +1096,8 @@ ProcessInfo *ProcessInfo::newInstance(in
info = new MacProcessInfo(pid);
#elif defined(Q_OS_FREEBSD)
info = new FreeBSDProcessInfo(pid);
Home |
Main Index |
Thread Index |
Old Index