git » qt5-wayland.git » commit 692310e

Fix Plasma-Wayland crashes

author Antonio Rojas
2018-01-17 07:21:12 UTC
committer Antonio Rojas
2018-01-17 07:21:12 UTC
parent 1bdb39b5b392ae0d83d54e317c2d7afaa66144c4

Fix Plasma-Wayland crashes

PKGBUILD +8 -3

diff --git a/PKGBUILD b/PKGBUILD
index be5b1b9..8273f77 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,7 +5,7 @@
 pkgname=qt5-wayland
 _qtver=5.10.0
 pkgver=${_qtver/-/}
-pkgrel=1
+pkgrel=2
 arch=('x86_64')
 url='http://qt-project.org/'
 license=('GPL3' 'LGPL3' 'FDL' 'custom')
@@ -13,11 +13,16 @@ pkgdesc='Provides APIs for Wayland'
 depends=('qt5-declarative' 'libxcomposite' 'wayland') # namcap note: wayland is needed for nvidia-libgl users
 groups=('qt' 'qt5')
 _pkgfqn="${pkgname/5-/}-everywhere-src-${_qtver}"
-source=("http://download.qt.io/official_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz")
-sha256sums=('5657f9656c95f83880f92e7697a1c13c9739bf4d0bfd867e711fff7c84004b93')
+source=("http://download.qt.io/official_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz"
+        qtbug-65553.patch::"https://github.com/qt/qtwayland/commit/bf09c7a1.patch")
+sha256sums=('5657f9656c95f83880f92e7697a1c13c9739bf4d0bfd867e711fff7c84004b93'
+            'e2437aa2bca824396cf1df6c4a4f311b59ff1a823886a5d00fb687cb9553fba7')
 
 prepare() {
   mkdir -p build
+
+  cd $_pkgfqn
+  patch -p1 -i ../qtbug-65553.patch # Fix frequent crashes in Plasma Wayland
 }
 
 build() {