pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/x11/qtermwidget qtermwidget: amend the build fix patching
details: https://anonhg.NetBSD.org/pkgsrc/rev/81db1b7acddc
branches: trunk
changeset: 427952:81db1b7acddc
user: gutteridge <gutteridge%pkgsrc.org@localhost>
date: Thu Apr 23 04:11:19 2020 +0000
description:
qtermwidget: amend the build fix patching
Also fix macOS builds (upstream has done the same), and note the PR I
submitted for the NetBSD fix (which I should have sent months ago).
diffstat:
x11/qtermwidget/distinfo | 5 +++--
x11/qtermwidget/patches/patch-lib_kpty.cpp | 15 +++++++++++----
x11/qtermwidget/patches/patch-lib_kpty__p.h | 16 ++++++++++++++++
3 files changed, 30 insertions(+), 6 deletions(-)
diffs (68 lines):
diff -r d5be30155e22 -r 81db1b7acddc x11/qtermwidget/distinfo
--- a/x11/qtermwidget/distinfo Wed Apr 22 23:17:05 2020 +0000
+++ b/x11/qtermwidget/distinfo Thu Apr 23 04:11:19 2020 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.1 2020/02/20 05:47:44 gutteridge Exp $
+$NetBSD: distinfo,v 1.2 2020/04/23 04:11:19 gutteridge Exp $
SHA1 (qtermwidget-0.14.1.tar.xz) = 07d99b8f4a673fa1f965716f0db89a4ba9e3f9b5
RMD160 (qtermwidget-0.14.1.tar.xz) = 73bcdbf8847c1816b42ff3da3dbb7c67c1b58a4d
SHA512 (qtermwidget-0.14.1.tar.xz) = 6b6d4abd6fc21f10f5323321f26132c0ff5b9682d09a086e265e57976deb60fca8db9a9906a29a0ed8d0e7b83417d5852df55d0118936d5f7a1342a9c2cb6410
Size (qtermwidget-0.14.1.tar.xz) = 178952 bytes
-SHA1 (patch-lib_kpty.cpp) = 4da33557ecfa9faebc1003ac8fab9e4abe0ec3e4
+SHA1 (patch-lib_kpty.cpp) = 083f01444518ef6e9596417a112bde6b2f4b5c5c
+SHA1 (patch-lib_kpty__p.h) = bd122197507218057e6bf90139a8e1f332281a98
diff -r d5be30155e22 -r 81db1b7acddc x11/qtermwidget/patches/patch-lib_kpty.cpp
--- a/x11/qtermwidget/patches/patch-lib_kpty.cpp Wed Apr 22 23:17:05 2020 +0000
+++ b/x11/qtermwidget/patches/patch-lib_kpty.cpp Thu Apr 23 04:11:19 2020 +0000
@@ -1,6 +1,7 @@
-$NetBSD: patch-lib_kpty.cpp,v 1.1 2020/02/20 05:47:44 gutteridge Exp $
+$NetBSD: patch-lib_kpty.cpp,v 1.2 2020/04/23 04:11:19 gutteridge Exp $
-Allow the package to build on NetBSD.
+Allow the package to build on NetBSD and macOS.
+https://github.com/lxqt/qtermwidget/pull/338
--- lib/kpty.cpp.orig 2019-02-25 22:13:12.000000000 +0000
+++ lib/kpty.cpp
@@ -26,12 +27,18 @@
#if defined(__APPLE__)
#define HAVE_OPENPTY
#define HAVE_UTIL_H
-@@ -174,7 +180,7 @@ KPtyPrivate::~KPtyPrivate()
+@@ -174,14 +180,12 @@ KPtyPrivate::~KPtyPrivate()
{
}
-#ifndef HAVE_OPENPTY
-+#ifndef __APPLE__
bool KPtyPrivate::chownpty(bool)
{
// return !QProcess::execute(KStandardDirs::findExe("kgrantpty"),
+ // QStringList() << (grant?"--grant":"--revoke") << QString::number(masterFd));
+ return true;
+ }
+-#endif
+
+ /////////////////////////////
+ // public member functions //
diff -r d5be30155e22 -r 81db1b7acddc x11/qtermwidget/patches/patch-lib_kpty__p.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/qtermwidget/patches/patch-lib_kpty__p.h Thu Apr 23 04:11:19 2020 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-lib_kpty__p.h,v 1.1 2020/04/23 04:11:19 gutteridge Exp $
+
+Fix macOS build.
+
+--- lib/kpty_p.h.orig 2019-02-25 22:13:12.000000000 +0000
++++ lib/kpty_p.h
+@@ -35,9 +35,7 @@ public:
+ KPtyPrivate(KPty* parent);
+ virtual ~KPtyPrivate();
+
+-#ifndef HAVE_OPENPTY
+ bool chownpty(bool grant);
+-#endif
+
+ int masterFd;
+ int slaveFd;
Home |
Main Index |
Thread Index |
Old Index