From bd9a3a4ce30a75d45bfa8bac8a527f499adf38f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Tue, 29 Aug 2023 09:07:37 +0700 Subject: [PATCH] fcitx5-qt: fix vtable undefined reference --- srcpkgs/fcitx5-qt/patches/vtable.patch | 90 ++++++++++++++++++++++++++ srcpkgs/fcitx5-qt/template | 11 ++-- 2 files changed, 97 insertions(+), 4 deletions(-) create mode 100644 srcpkgs/fcitx5-qt/patches/vtable.patch diff --git a/srcpkgs/fcitx5-qt/patches/vtable.patch b/srcpkgs/fcitx5-qt/patches/vtable.patch new file mode 100644 index 00000000000..024e932b05c --- /dev/null +++ b/srcpkgs/fcitx5-qt/patches/vtable.patch @@ -0,0 +1,90 @@ +diff --git a/qt5/platforminputcontext/fcitx4inputcontextproxy.h b/qt5/platforminputcontext/fcitx4inputcontextproxy.h +index 650c27f..6c530ae 100644 +--- a/qt5/platforminputcontext/fcitx4inputcontextproxy.h ++++ b/qt5/platforminputcontext/fcitx4inputcontextproxy.h +@@ -25,7 +25,7 @@ class Fcitx4InputContextProxy : public QObject { + Q_OBJECT + public: + Fcitx4InputContextProxy(Fcitx4Watcher *watcher, QObject *parent); +- ~Fcitx4InputContextProxy(); ++ virtual ~Fcitx4InputContextProxy(); + + bool isValid() const; + void setDisplay(const QString &display); +diff --git a/qt5/platforminputcontext/fcitx4inputmethodproxy.h b/qt5/platforminputcontext/fcitx4inputmethodproxy.h +index 2354bde..94e6978 100644 +--- a/qt5/platforminputcontext/fcitx4inputmethodproxy.h ++++ b/qt5/platforminputcontext/fcitx4inputmethodproxy.h +@@ -39,7 +39,7 @@ public: + const QDBusConnection &connection, + QObject *parent = nullptr); + +- ~Fcitx4InputMethodProxy(); ++ virtual ~Fcitx4InputMethodProxy(); + + public Q_SLOTS: // METHODS + inline QDBusPendingReply