1 |
commit: 59f5a7a6520eafedacc453910fb7f5f13c5ccb9e |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Mar 18 05:34:39 2023 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 18 23:22:12 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=59f5a7a6 |
7 |
|
8 |
www-client/qutebrowser: warn in 2.5.4 if downgrade from Qt6 |
9 |
|
10 |
Should have very few users actually using Qt6 (USE is masked, |
11 |
and ebuilds are unkeyworded), but given removed the _pre ebuild |
12 |
it's possible it'll cause an unexpected downgrade and it wouldn't |
13 |
hurt to warn (albeit should be fairly noticeable given the deps |
14 |
pulled are non-trivial). |
15 |
|
16 |
Switching will be less of a worry in qutebrowser-3.0.0 given it |
17 |
can detect a mismatch on startup, but the old 2.5.4 is oblivious. |
18 |
|
19 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
20 |
|
21 |
www-client/qutebrowser/qutebrowser-2.5.4.ebuild | 15 +++++++++++++++ |
22 |
1 file changed, 15 insertions(+) |
23 |
|
24 |
diff --git a/www-client/qutebrowser/qutebrowser-2.5.4.ebuild b/www-client/qutebrowser/qutebrowser-2.5.4.ebuild |
25 |
index 30a3498c8cf8..59de8c56dd4a 100644 |
26 |
--- a/www-client/qutebrowser/qutebrowser-2.5.4.ebuild |
27 |
+++ b/www-client/qutebrowser/qutebrowser-2.5.4.ebuild |
28 |
@@ -131,6 +131,12 @@ python_install_all() { |
29 |
einstalldocs |
30 |
} |
31 |
|
32 |
+pkg_preinst() { |
33 |
+ xdg_pkg_preinst |
34 |
+ |
35 |
+ has_version "${CATEGORY}/${PN}[qt6]" && QUTEBROWSER_HAD_QT6= |
36 |
+} |
37 |
+ |
38 |
pkg_postinst() { |
39 |
xdg_pkg_postinst |
40 |
|
41 |
@@ -139,4 +145,13 @@ pkg_postinst() { |
42 |
elog "have additional dependencies not covered by this ebuild, for example" |
43 |
elog "view_in_mpv needs media-video/mpv[lua] and net-misc/yt-dlp." |
44 |
fi |
45 |
+ |
46 |
+ if [[ -v QUTEBROWSER_HAD_QT6 ]]; then |
47 |
+ ewarn "This is a downgrade from Qt6-based ${PN} to Qt5-based, and this" |
48 |
+ ewarn "older version of ${PN} will /not/ warn on startup that this is" |
49 |
+ ewarn "going to destroy some browsing data (e.g. cookies) when older chromium" |
50 |
+ ewarn "version tries to use the newer ~/.local/share/${PN}/webengine." |
51 |
+ ewarn |
52 |
+ ewarn "It is recommended to backup in case or go back to Qt6." |
53 |
+ fi |
54 |
} |