commit:     2d27d585c0f269f0a0e0762917e528e8340d5ea6
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Mon Apr 15 01:08:24 2024 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Mon Apr 15 01:15:38 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d27d585

www-client/qutebrowser: limit pdfjs to <4.1 for now

Incompatible with the non-legacy sdist of 4.1.329 and
will fail to load any pdf with type errors.

Not that 4.1.329 is in-tree yet, just doing it before it breaks
(revbumps are cheap for this package) and will revisit later.

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

 .../{qutebrowser-3.1.0.ebuild => qutebrowser-3.1.0-r1.ebuild}        | 2 +-
 www-client/qutebrowser/qutebrowser-9999.ebuild                       | 5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/www-client/qutebrowser/qutebrowser-3.1.0.ebuild 
b/www-client/qutebrowser/qutebrowser-3.1.0-r1.ebuild
similarity index 99%
rename from www-client/qutebrowser/qutebrowser-3.1.0.ebuild
rename to www-client/qutebrowser/qutebrowser-3.1.0-r1.ebuild
index a8f02d769926..f40f5009dff3 100644
--- a/www-client/qutebrowser/qutebrowser-3.1.0.ebuild
+++ b/www-client/qutebrowser/qutebrowser-3.1.0-r1.ebuild
@@ -41,7 +41,7 @@ RDEPEND="
                        dev-qt/qtbase:6[icu,sqlite]
                        
dev-python/PyQt6[${PYTHON_USEDEP},dbus,gui,network,opengl,printsupport,qml,sql,widgets]
                        dev-python/PyQt6-WebEngine[${PYTHON_USEDEP},widgets]
-                       pdf? ( www-plugins/pdfjs )
+                       pdf? ( <www-plugins/pdfjs-4.1 )
                )
                !qt6? (
                        dev-qt/qtcore:5[icu]

diff --git a/www-client/qutebrowser/qutebrowser-9999.ebuild 
b/www-client/qutebrowser/qutebrowser-9999.ebuild
index 63c251546529..c5e8c1d91fae 100644
--- a/www-client/qutebrowser/qutebrowser-9999.ebuild
+++ b/www-client/qutebrowser/qutebrowser-9999.ebuild
@@ -28,6 +28,9 @@ LICENSE="GPL-3+"
 SLOT="0"
 IUSE="+adblock pdf widevine"
 
+# TODO: keep an eye on fixes for pdfjs-4.1, may potentially be solved by
+# newer qtwebengine, qutebrowser upstream workarounds, pdfjs changes, or
+# if our pdfjs ebuild ever switch to the legacy sdist
 RDEPEND="
        $(python_gen_cond_dep '
                dev-python/PyQt6-WebEngine[${PYTHON_USEDEP},widgets]
@@ -40,7 +43,7 @@ RDEPEND="
                dev-python/zipp[${PYTHON_USEDEP}]
                dev-qt/qtbase:6[icu,sqlite]
                adblock? ( dev-python/adblock[${PYTHON_USEDEP}] )
-               pdf? ( www-plugins/pdfjs )
+               pdf? ( <www-plugins/pdfjs-4.1 )
                widevine? ( www-plugins/chrome-binary-plugins )
        ')
 "

Reply via email to