commit:     89949e527754f03fed66122a4302e5ac5b409d6d
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 22 02:19:07 2024 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Fri Mar 22 02:23:09 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=89949e52

www-client/qutebrowser: fix tests qith upcoming Qt6.6.3+6.7.0

Thought this was 6.7.0-only at first, but seems it was backported
to 6.6.3 which should release very soon.

Not touching live given upstream is likely to look more closely at
6.7.0 issues soon.

Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 .../qutebrowser/files/qutebrowser-3.1.0-qt663-tests.patch    | 12 ++++++++++++
 www-client/qutebrowser/qutebrowser-3.1.0.ebuild              |  4 ++++
 2 files changed, 16 insertions(+)

diff --git a/www-client/qutebrowser/files/qutebrowser-3.1.0-qt663-tests.patch 
b/www-client/qutebrowser/files/qutebrowser-3.1.0-qt663-tests.patch
new file mode 100644
index 000000000000..e262623ab1c7
--- /dev/null
+++ b/www-client/qutebrowser/files/qutebrowser-3.1.0-qt663-tests.patch
@@ -0,0 +1,12 @@
+6.6.3 and 6.7.0-rc start to emit a new warning that causes:
+test_browsertab.py:13: Failure: Qt messages with level WARNING or above emitted
+
+It still seems(?) to be able to find qutebrowser's installed dictionaries
+fine and spellchecking works. Let's just ignore this warning for now.
+--- a/pytest.ini
++++ b/pytest.ini
+@@ -63,2 +63,4 @@
+     Error in contacting registry: 
"org\.freedesktop\.DBus\.Error\.Disconnected" "Not connected to D-Bus server"
++    # Qt 6.6.3 and 6.7.0, not looked into but spellchecking still functions
++    ^Path override failed for key base::DIR_APP_DICTIONARIES and path .*
+ xfail_strict = true

diff --git a/www-client/qutebrowser/qutebrowser-3.1.0.ebuild 
b/www-client/qutebrowser/qutebrowser-3.1.0.ebuild
index 8bf80f2e1370..b71080584826 100644
--- a/www-client/qutebrowser/qutebrowser-3.1.0.ebuild
+++ b/www-client/qutebrowser/qutebrowser-3.1.0.ebuild
@@ -81,6 +81,10 @@ fi
 
 distutils_enable_tests pytest
 
+PATCHES=(
+       "${FILESDIR}"/${P}-qt663-tests.patch
+)
+
 src_prepare() {
        distutils-r1_src_prepare
 

Reply via email to