Date: Friday, April 21, 2017 @ 11:59:40 Author: arojas Revision: 293814
archrelease: copy kde-unstable to kde-unstable-x86_64 Added: qt5-webengine/repos/kde-unstable-x86_64/ qt5-webengine/repos/kde-unstable-x86_64/PKGBUILD (from rev 293813, qt5-webengine/kde-unstable/PKGBUILD) qt5-webengine/repos/kde-unstable-x86_64/qt5-webengine-nss.patch (from rev 293813, qt5-webengine/kde-unstable/qt5-webengine-nss.patch) -------------------------+ PKGBUILD | 54 ++++++++++++++++++++++++++++++++++++++++++++++ qt5-webengine-nss.patch | 31 ++++++++++++++++++++++++++ 2 files changed, 85 insertions(+) Copied: qt5-webengine/repos/kde-unstable-x86_64/PKGBUILD (from rev 293813, qt5-webengine/kde-unstable/PKGBUILD) =================================================================== --- kde-unstable-x86_64/PKGBUILD (rev 0) +++ kde-unstable-x86_64/PKGBUILD 2017-04-21 11:59:40 UTC (rev 293814) @@ -0,0 +1,54 @@ +# $Id: PKGBUILD 240297 2015-06-03 10:22:03Z fyan $ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Andrea Scarpino <and...@archlinux.org> + +pkgname=qt5-webengine +_qtver=5.9.0-beta2 +pkgver=${_qtver/-/} +pkgrel=1 +arch=('i686' 'x86_64') +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' 'libvpx' + 'libevent' 'libsrtp' 'snappy' 'nss' 'protobuf' 'libxslt' 'libxdamage' 'minizip' 'ffmpeg') + # namcap note: libxdamage is needed for nvidia users +makedepends=('python2' 'git' 'gperf' 'jsoncpp' 'ninja') +groups=('qt' 'qt5') +_pkgfqn="${pkgname/5-/}-opensource-src-${_qtver}" +source=("http://download.qt.io/development_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz" + qt5-webengine-nss.patch) + +sha256sums=('a98709230ed0015e9fa3d82d93cdc757934e5bf577563caf9e5f56217c46ae85' + '4419e688bfda63b399a9ea2f28d5e4c8c6294096d363b657903329dbba0499cd') + +prepare() { + mkdir -p build + + # Hack to force using python2 + mkdir -p bin + ln -s /usr/bin/python2 bin/python + + # Fix opening some websites with recent NSS https://github.com/QupZilla/qupzilla/issues/1870 (KaOSx patch) + cd ${_pkgfqn} + # patch -p1 -i ../qt5-webengine-nss.patch +} + +build() { + cd build + + export PATH="$srcdir/bin:$PATH" + qmake CONFIG+="proprietary-codecs" WEBENGINE_CONFIG+="use_proprietary_codecs use_system_ffmpeg use_system_icu" ../${_pkgfqn} + make +} + +package() { + cd build + make INSTALL_ROOT="$pkgdir" install + + # Drop QMAKE_PRL_BUILD_DIR because reference the build dir + find "$pkgdir/usr/lib" -type f -name '*.prl' \ + -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \; + + install -Dm644 "$srcdir"/${_pkgfqn}/src/3rdparty/chromium/LICENSE "$pkgdir"/usr/share/licenses/${pkgname}/LICENSE.chromium +} Copied: qt5-webengine/repos/kde-unstable-x86_64/qt5-webengine-nss.patch (from rev 293813, qt5-webengine/kde-unstable/qt5-webengine-nss.patch) =================================================================== --- kde-unstable-x86_64/qt5-webengine-nss.patch (rev 0) +++ kde-unstable-x86_64/qt5-webengine-nss.patch 2017-04-21 11:59:40 UTC (rev 293814) @@ -0,0 +1,31 @@ +diff -ur qtwebengine-opensource-src-5.6.0-beta/src/3rdparty/chromium/net/socket/ssl_client_socket_openssl.cc +qtwebengine-opensource-src-5.6.0-beta-chimera-nss-init/src/3rdparty/chromium/net/socket/ssl_client_socket_openssl.cc +--- qtwebengine-opensource-src-5.6.0-beta/src/3rdparty/chromium/net/socket/ssl_client_socket_openssl.cc 2015-12-10 18:17:21.000000000 +0100 ++++ qtwebengine-opensource-src-5.6.0-beta-chimera-nss-init/src/3rdparty/chromium/net/socket/ssl_client_socket_openssl.cc 2016-01-14 +17:11:38.432633534 +0100 +@@ -57,6 +57,10 @@ + #include "net/ssl/ssl_platform_key.h" + #endif + ++#if defined(USE_NSS_CERTS) || defined(OS_IOS) ++#include "net/cert_net/nss_ocsp.h" ++#endif ++ + namespace net { + + namespace { +@@ -795,6 +799,14 @@ + DCHECK(!ssl_); + DCHECK(!transport_bio_); + ++#if defined(USE_NSS_CERTS) || defined(OS_IOS) ++ if (ssl_config_.cert_io_enabled) { ++ // TODO(davidben): Move this out of SSLClientSocket. See ++ // https://crbug.com/539520. ++ EnsureNSSHttpIOInit(); ++ } ++#endif ++ + SSLContext* context = SSLContext::GetInstance(); + crypto::OpenSSLErrStackTracer err_tracer(FROM_HERE); +