lxqt-base/liblxqt: fix build with Qt 5.14
authorJimi Huotari <chiitoo@gentoo.org>
Mon, 23 Dec 2019 19:01:48 +0000 (21:01 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Mon, 23 Dec 2019 21:45:16 +0000 (22:45 +0100)
Closes: https://bugs.gentoo.org/703596
Package-Manager: Portage-2.3.82, Repoman-2.3.20
Signed-off-by: Jimi Huotari <chiitoo@gentoo.org>
Closes: https://github.com/gentoo/gentoo/pull/14108
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
lxqt-base/liblxqt/files/liblxqt-0.14.1-qt-5.14-build.patch [new file with mode: 0644]
lxqt-base/liblxqt/liblxqt-0.14.1.ebuild

diff --git a/lxqt-base/liblxqt/files/liblxqt-0.14.1-qt-5.14-build.patch b/lxqt-base/liblxqt/files/liblxqt-0.14.1-qt-5.14-build.patch
new file mode 100644 (file)
index 0000000..54fd906
--- /dev/null
@@ -0,0 +1,24 @@
+From 534c6f6b5240daa81a2b6206a8ec028a69ee5c2d Mon Sep 17 00:00:00 2001
+From: Jimi Huotari <chiitoo@gentoo.org>
+Date: Mon, 23 Dec 2019 21:20:16 +0200
+Subject: [PATCH] Fix build with Qt 5.14.
+
+---
+ lxqtpowermanager.cpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/lxqtpowermanager.cpp b/lxqtpowermanager.cpp
+index aef5ca2..b0926f9 100644
+--- a/lxqtpowermanager.cpp
++++ b/lxqtpowermanager.cpp
+@@ -32,6 +32,7 @@
+ #include <QApplication>
+ #include <QDesktopWidget>
+ #include <QtDebug>
++#include <QFile>
+ #include "lxqttranslator.h"
+ #include "lxqtglobals.h"
+ #include "lxqtsettings.h"
+-- 
+2.24.1
+
index 5ad13018bb8fe43c7e9d7d0512c31f2c0189ec52..7e6e012311275983f8a2bd8aa722078317e4beb7 100644 (file)
@@ -19,6 +19,8 @@ fi
 LICENSE="LGPL-2.1+ BSD"
 SLOT="0/$(ver_cut 1-2)"
 
+PATCHES=( "${FILESDIR}/${P}-qt-5.14-build.patch" ) # Bug 703596
+
 BDEPEND="
        dev-qt/linguist-tools:5
        >=dev-util/lxqt-build-tools-0.6.0