author | Antonio Rojas
<arojas@archlinux.org> 2016-11-20 00:38:59 UTC |
committer | Antonio Rojas
<arojas@archlinux.org> 2016-11-20 00:38:59 UTC |
parent | e3767a29959c71abeddb8b7afe935520a1670417 |
PKGBUILD | +8 | -3 |
no-gtk-qpa-on-wayland.patch | +13 | -0 |
diff --git a/PKGBUILD b/PKGBUILD index 4f52328..e430853 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -5,7 +5,7 @@ pkgname=qt5-base _qtver=5.7.0 pkgver=${_qtver/-/} -pkgrel=3 +pkgrel=5 arch=('i686' 'x86_64') url='http://qt-project.org/' license=('GPL3' 'LGPL3' 'FDL' 'custom') @@ -30,12 +30,14 @@ source=("http://download.qt.io/official_releases/qt/${pkgver%.*}/${_qtver}/submo qtbug-53071.patch::"https://github.com/qtproject/qtbase/commit/e9041c7fc.patch" qtbug-53071b.patch::"https://github.com/qtproject/qtbase/commit/cd25866f.patch" qtbug-53237.patch::"https://github.com/qtproject/qtbase/commit/8e889378.patch" - qtbug-49452.patch::"https://github.com/qt/qtbase/commit/6f423555.patch") + qtbug-49452.patch::"https://github.com/qt/qtbase/commit/6f423555.patch" + no-gtk-qpa-on-wayland.patch) md5sums=('184f9460b40752d71b15b827260580c2' '462f079cd46f869def6858903a718bf5' 'da4fd787ea877516397a027412e975e1' '981255fb1aea0d3c0b5c5f306fe374da' - '646aea77ca90031c453a65ef61db55f9') + '646aea77ca90031c453a65ef61db55f9' + '880c9d0060916888ba17b7f9ea41a8c5') prepare() { cd ${_pkgfqn} @@ -63,6 +65,9 @@ prepare() { # Fix freetype engine performance patch -p1 -i ../qtbug-49452.patch + + # Don't use the GTK QPA on Wayland - file chooser segfaults + patch -p1 -i ../no-gtk-qpa-on-wayland.patch } build() { diff --git a/no-gtk-qpa-on-wayland.patch b/no-gtk-qpa-on-wayland.patch new file mode 100644 index 0000000..741f17a --- /dev/null +++ b/no-gtk-qpa-on-wayland.patch @@ -0,0 +1,13 @@ +diff --git a/src/platformsupport/themes/genericunix/qgenericunixthemes.cpp b/src/platformsupport/themes/genericunix/qgenericunixthemes.cpp +index db264d1..e3cb2f3 100644 +--- a/src/platformsupport/themes/genericunix/qgenericunixthemes.cpp ++++ b/src/platformsupport/themes/genericunix/qgenericunixthemes.cpp +@@ -814,7 +814,7 @@ QStringList QGenericUnixTheme::themeNames() + #ifndef QT_NO_SETTINGS + result.push_back(QLatin1String(QKdeTheme::name)); + #endif +- } else if (gtkBasedEnvironments.contains(desktopName)) { ++ } else if (gtkBasedEnvironments.contains(desktopName) && QString::fromLocal8Bit(qgetenv("XDG_SESSION_TYPE")) != QLatin1String("wayland")) { + // prefer the GTK3 theme implementation with native dialogs etc. + result.push_back(QStringLiteral("gtk3")); + // fallback to the generic Gnome theme if loading the GTK3 theme fails