www-client/qutebrowser: update live

Now defaults to Qt6 and auto-fallbacks to Qt5 if missing or broken,
but there is little reason to use automagic in our case and it should
use the backend ebuild set dependencies for (users can still override
this at runtime if really wanted).

Using sed is what machinery.py suggests.

On a side-note, selected qt6 tests currently pass and qt5 has one
failure. Will be reviewed further on release.

Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
Ionen Wolkens
2023-07-22 08:03:25 -04:00
parent f89da530cc
commit 0aa673fe2b

View File

@@ -88,11 +88,9 @@ src_prepare() {
-i ${PN}/config/qtargs.py || die
fi
# default to the requested Qt backend, current default is PyQt5 but
# sed unconditionally for safety in 9999 given this is going to change
# (note that using sed is the suggested solution by upstream for now)
sed -e "/^_DEFAULT_WRAPPER =/s/=.*/= \"PyQt$(usex qt6 6 5)\"/" \
-i ${PN}/qt/machinery.py || die
# ensure the requested backend is used in case multiple are available
sed -e "/^_WRAPPER_OVERRIDE =/s/None/\"PyQt$(usex qt6 6 5)\"/" \
-i qutebrowser/qt/machinery.py || die
# let eclass handle python
sed -i '/setup.py/d' misc/Makefile || die
@@ -130,9 +128,12 @@ python_test() {
# not worth running dbus over
tests/unit/browser/test_notification.py::TestDBus
# bug 819393
tests/unit/commands/test_userscripts.py::test_custom_env[_POSIXUserscriptRunner]
# tests that don't know about our newer qtwebengine:5
tests/unit/commands/test_userscripts.py::test_custom_env\[_POSIXUserscriptRunner\]
# test does not know about our newer fixed qtwebengine:5
tests/unit/browser/webengine/test_webenginedownloads.py::TestDataUrlWorkaround
# needs _WRAPPER_OVERRIDE = None, but we have changed it
tests/unit/test_qt_machinery.py::TestSelectWrapper::test_autoselect_by_default
tests/unit/test_qt_machinery.py::TestInit::test_none_available_{implicit,explicit}
)
# qtargs are mangled with widevine+prefix
use widevine && use prefix && EPYTEST_DESELECT+=( tests/unit/config/test_qtargs.py )