From a0156393b4dc706487f01c2dc01ffb5ce67f3f30 Mon Sep 17 00:00:00 2001 From: Francesco Marinucci Date: Thu, 18 Oct 2018 17:11:00 +0200 Subject: [PATCH] [skip-ci] qt5: fixed minor issues in PKGBUILDs' --- qt5-doc/PKGBUILD | 6 ++--- qt5-examples/PKGBUILD | 2 +- qt5-webengine/PKGBUILD | 14 +++--------- qt5-webengine/qtwebengine-wayland.patch | 30 +------------------------ qt5-webkit/PKGBUILD | 2 +- 5 files changed, 9 insertions(+), 45 deletions(-) diff --git a/qt5-doc/PKGBUILD b/qt5-doc/PKGBUILD index c5ec07ecc..82093098f 100644 --- a/qt5-doc/PKGBUILD +++ b/qt5-doc/PKGBUILD @@ -2,16 +2,16 @@ pkgname=qt5-doc pkgver=5.11.2 pkgrel=1 -arch=('any') +arch=('x86_64') url='http://qt-project.org/' license=('GPL3' 'LGPL' 'FDL' 'custom') pkgdesc='A cross-platform application and UI framework (Documentation)' depends=('qt5-base') -makedepends=('qt5-tools' 'python2' 'pciutils' 'libxtst' 'libxcursor' 'libxrandr' 'libxss') +makedepends=('qt5-tools' 'python2' 'pciutils' 'libxtst' 'libxcursor' 'libxrandr' 'libxss' 'clang') groups=('qt5') _pkgfqn="qt-everywhere-src-${pkgver}" source=("http://download.qt.io/official_releases/qt/${pkgver%.*}/$pkgver/single/${_pkgfqn}.tar.xz") -md5sums=('07b54e751ca7b4fcf180fc66df405b1d') +md5sums=('152a8ade9c11fe33ff5bc95310a1bb64') prepare() { cd ${_pkgfqn} diff --git a/qt5-examples/PKGBUILD b/qt5-examples/PKGBUILD index b42419d91..f0980c423 100644 --- a/qt5-examples/PKGBUILD +++ b/qt5-examples/PKGBUILD @@ -11,7 +11,7 @@ makedepends=() groups=('qt5') _pkgfqn="qt-everywhere-src-${pkgver}" source=("http://download.qt.io/official_releases/qt/${pkgver%.*}/$pkgver/single/${_pkgfqn}.tar.xz") -md5sums=('') +md5sums=('152a8ade9c11fe33ff5bc95310a1bb64') package() { _base="$pkgdir"/usr/share/doc/qt5/examples diff --git a/qt5-webengine/PKGBUILD b/qt5-webengine/PKGBUILD index ee3904cf9..2cba070e0 100644 --- a/qt5-webengine/PKGBUILD +++ b/qt5-webengine/PKGBUILD @@ -7,18 +7,15 @@ url='http://qt-project.org/' license=('LGPL3' 'LGPL2.1' 'BSD') pkgdesc='Provides support for web applications using the Chromium browser project' depends=('qt5-webchannel' 'qt5-location' 'libxcomposite' 'libxrandr' 'pciutils' 'libxss' - 'libevent' 'snappy' 'nss' 'protobuf' 'libxslt' 'minizip' 'ffmpeg' 're2' 'libvpx') + 'libevent' 'snappy' 'nss' 'libxslt' 'minizip' 'ffmpeg' 're2' 'libvpx') makedepends=('python2' 'git' 'gperf' 'jsoncpp' 'ninja' 'qt5-tools') groups=('qt5') options=('debug') _pkgfqn="${pkgname/5-/}-everywhere-src-${pkgver}" source=("http://download.qt.io/official_releases/qt/${pkgver%.*}/$pkgver/submodules/${_pkgfqn}.tar.xz" - qtwebengine-harmony.patch qtwebengine-ffmpeg4.patch - qtwebengine-wayland.patch::"http://code.qt.io/cgit/qt/qtwebengine.git/patch/?id=a66d4cd8") + qtwebengine-harmony.patch) md5sums=('183b1e44bac4f70b54a77a9e569ff554' - '254061cb349cff714230b7cca83b0a4c' - '2835f9fe8097ff3d6098812c70f48044' - '04360a0896a267ee6b32df946db8202f') + '254061cb349cff714230b7cca83b0a4c') prepare() { mkdir -p build @@ -31,12 +28,7 @@ prepare() { # FreeType 2.8.1 patch -Np1 -i ../qtwebengine-harmony.patch - # Fix openGL detection on Wayland - patch -p1 -i ../qtwebengine-wayland.patch - cd src/3rdparty/chromium - # Fix build with ffmpeg 4 - patch -p2 -i "$srcdir"/qtwebengine-ffmpeg4.patch } build() { diff --git a/qt5-webengine/qtwebengine-wayland.patch b/qt5-webengine/qtwebengine-wayland.patch index 4b2676faa..3a090cbe5 100644 --- a/qt5-webengine/qtwebengine-wayland.patch +++ b/qt5-webengine/qtwebengine-wayland.patch @@ -36,33 +36,5 @@ index 9ed1db8b..95491709 100644 QT_END_NAMESPACE #if defined(USE_OZONE) || defined(OS_WIN) -diff --git a/src/core/gl_context_qt.h b/src/core/gl_context_qt.h -index 8ffdad58..cecceabc 100644 ---- a/src/core/gl_context_qt.h -+++ b/src/core/gl_context_qt.h -@@ -63,6 +63,7 @@ public: - static void* getXDisplay(); - static void* getNativeDisplay(); - static QFunctionPointer getGlXGetProcAddress(); -+ static QFunctionPointer getEglGetProcAddress(); - private: - Q_INVOKABLE bool initializeContextOnBrowserThread(gl::GLContext* context, gl::GLSurface* surface, gl::GLContextAttribs attribs); - -diff --git a/src/core/gl_surface_qt.cpp b/src/core/gl_surface_qt.cpp -index 7e579246..4d38d7c2 100644 ---- a/src/core/gl_surface_qt.cpp -+++ b/src/core/gl_surface_qt.cpp -@@ -227,6 +227,10 @@ bool InitializeStaticGLBindings(GLImplementation implementation) { - base::GetFunctionPointerFromNativeLibrary(library, - "eglGetProcAddress")); - if (!get_proc_address) { -+ QFunctionPointer address = GLContextHelper::getEglGetProcAddress(); -+ get_proc_address = reinterpret_cast(address); -+ } -+ if (!get_proc_address) { - LOG(ERROR) << "eglGetProcAddress not found."; - base::UnloadNativeLibrary(library); - return false; --- -cgit v1.1-6-g87c4 + diff --git a/qt5-webkit/PKGBUILD b/qt5-webkit/PKGBUILD index 8450a4123..13aba74ff 100644 --- a/qt5-webkit/PKGBUILD +++ b/qt5-webkit/PKGBUILD @@ -1,7 +1,7 @@ pkgname=qt5-webkit _qtver=5.212.0-alpha2 pkgver=${_qtver/-/} -pkgrel=8 +pkgrel=9 arch=(x86_64) url='http://qt-project.org/' license=(GPL3 LGPL3 FDL custom)