From b145fa9992a483d1bc44b8ab71a3f220f9f8ab2d Mon Sep 17 00:00:00 2001 From: John Date: Thu, 24 Jun 2021 20:58:41 +0200 Subject: [PATCH] qt6-base: update to 6.2.0. --- .../qt6-base/patches/musl-usr-path-hack.patch | 25 ++++++++++++++++ srcpkgs/qt6-base/template | 30 ++++++++++++++++--- srcpkgs/qt6-plugin-networkinformation | 1 + srcpkgs/qt6-plugin-tls-openssl | 1 + srcpkgs/qt6-plugin-tls-qcertonly | 1 + 5 files changed, 54 insertions(+), 4 deletions(-) create mode 100644 srcpkgs/qt6-base/patches/musl-usr-path-hack.patch create mode 120000 srcpkgs/qt6-plugin-networkinformation create mode 120000 srcpkgs/qt6-plugin-tls-openssl create mode 120000 srcpkgs/qt6-plugin-tls-qcertonly diff --git a/srcpkgs/qt6-base/patches/musl-usr-path-hack.patch b/srcpkgs/qt6-base/patches/musl-usr-path-hack.patch new file mode 100644 index 00000000000..a2ec7550e7b --- /dev/null +++ b/srcpkgs/qt6-base/patches/musl-usr-path-hack.patch @@ -0,0 +1,25 @@ +Source: @Johnnynator +Upsteam: No +Subject: Musl always returns /lib/libQt6Core.so.6 for Dl_info.dli_fname. +This also happens sometimes with qtwebengine on glibc. +This breaks qt6-webengine's search path for translations. +Using realpath instead would probably be a more correct solution. + +--- +diff --git qtbasesrc/corelib/global/qlibraryinfo.cpp qtbasesrc/corelib/global/qlibraryinfo.cpp +index 8bcf67e73d..28d7355310 100644 +--- a/src/corelib/global/qlibraryinfo.cpp ++++ b/src/corelib/global/qlibraryinfo.cpp +@@ -558,6 +558,12 @@ static QString getRelocatablePrefix() + int result = dladdr(reinterpret_cast(&QLibraryInfo::isDebugBuild), &info); + if (result > 0 && info.dli_fname) + prefixPath = prefixFromQtCoreLibraryHelper(QString::fromLocal8Bit(info.dli_fname)); ++#if 1 ++ QDir preDir(prefixPath); ++ if (preDir.isRoot()) { ++ prefixPath = QStringLiteral("/usr"); ++ } ++#endif + #elif defined(Q_OS_WIN) + HMODULE hModule = getWindowsModuleHandle(); + const int kBufferSize = 4096; diff --git a/srcpkgs/qt6-base/template b/srcpkgs/qt6-base/template index 0b3dd492fb1..3c7ba930d92 100644 --- a/srcpkgs/qt6-base/template +++ b/srcpkgs/qt6-base/template @@ -1,7 +1,7 @@ # Template file for 'qt6-base' pkgname=qt6-base -version=6.1.1 -revision=2 +version=6.2.0 +revision=1 wrksrc="qtbase-everywhere-src-${version}" build_style=cmake configure_args="-DINSTALL_DATADIR=share/qt6 @@ -22,13 +22,14 @@ makedepends="zlib-devel libzstd-devel dbus-devel libpng-devel tslib-devel libinput-devel gtk+3-devel libmariadbclient-devel postgresql-libs-devel libatomic-devel unixodbc-devel cups-devel libproxy-devel brotli-devel - sqlite-devel Vulkan-Headers mit-krb5-devel vulkan-loader libb2-devel" + sqlite-devel Vulkan-Headers mit-krb5-devel vulkan-loader libb2-devel + libXevie-devel libXcursor-devel" short_desc="Cross-platform application and UI framework (QT6)" maintainer="John " license="GPL-3.0-only WITH Qt-GPL-exception-1.0, LGPL-3.0-only, GPL-2.0-or-later" homepage="https://www.qt.io" distfiles="https://download.qt.io/official_releases/qt/${version%.*}/${version}/submodules/qtbase-everywhere-src-${version}.tar.xz" -checksum=21a8aa9f07170e047270c668c8b037536f40226db7adbc529a0b41c3a3cb3ff2 +checksum=fdfff0716d093bcb6bcd53746ce1d3c9701a6bf3326d47813866d43949b47769 python_version=3 if [ "$CROSS_BUILD" ]; then @@ -207,6 +208,27 @@ qt6-plugin-sqlite_package() { } } +qt6-plugin-tls-openssl_package() { + short_desc+=" - TLS plugin" + pkg_install() { + vmove usr/lib/qt6/plugins/tls/libqopensslbackend.so + } +} + +qt6-plugin-tls-qcertonly_package() { + short_desc+=" - TLS plugin" + pkg_install() { + vmove usr/lib/qt6/plugins/tls/libqcertonlybackend.so + } +} + +qt6-plugin-networkinformation() { + short_desc+=" - Networkinformation plugin" + pkg_install() { + vmove usr/lib/qt6/plugins/networkinformation/libqnetworkmanager.so + } +} + qt6-base-devel_package() { short_desc+=" - Development files" depends="qt6-base>=${version}_${revision} diff --git a/srcpkgs/qt6-plugin-networkinformation b/srcpkgs/qt6-plugin-networkinformation new file mode 120000 index 00000000000..8ddee598d5e --- /dev/null +++ b/srcpkgs/qt6-plugin-networkinformation @@ -0,0 +1 @@ +qt6-base \ No newline at end of file diff --git a/srcpkgs/qt6-plugin-tls-openssl b/srcpkgs/qt6-plugin-tls-openssl new file mode 120000 index 00000000000..8ddee598d5e --- /dev/null +++ b/srcpkgs/qt6-plugin-tls-openssl @@ -0,0 +1 @@ +qt6-base \ No newline at end of file diff --git a/srcpkgs/qt6-plugin-tls-qcertonly b/srcpkgs/qt6-plugin-tls-qcertonly new file mode 120000 index 00000000000..8ddee598d5e --- /dev/null +++ b/srcpkgs/qt6-plugin-tls-qcertonly @@ -0,0 +1 @@ +qt6-base \ No newline at end of file