summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2023-08-24 06:45:34 -0400
committerIonen Wolkens <ionen@gentoo.org>2023-09-05 09:01:05 -0400
commitbc93add36f0bae8810477eba29492453ec95fe22 (patch)
treefd04b401ca147efc828ee133324530b8fae3ad70 /dev-qt/qtwebengine
parentdev-qt/qtwebengine: do not install gn (qt6) (diff)
downloadgentoo-bc93add36f0bae8810477eba29492453ec95fe22.tar.gz
gentoo-bc93add36f0bae8810477eba29492453ec95fe22.tar.bz2
gentoo-bc93add36f0bae8810477eba29492453ec95fe22.zip
dev-qt/qtwebengine: automate chromium version warning (qt6)
Just an unnecessary disparity between ebuilds to maintain, plus would typically be inaccurate in live ebuilds (albeit check may make live version fail on a whim if format changes, but kept fatal or else issues will be easy to miss on bumps). Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'dev-qt/qtwebengine')
-rw-r--r--dev-qt/qtwebengine/qtwebengine-6.5.2.ebuild34
-rw-r--r--dev-qt/qtwebengine/qtwebengine-6.5.9999.ebuild34
-rw-r--r--dev-qt/qtwebengine/qtwebengine-6.9999.ebuild34
3 files changed, 60 insertions, 42 deletions
diff --git a/dev-qt/qtwebengine/qtwebengine-6.5.2.ebuild b/dev-qt/qtwebengine/qtwebengine-6.5.2.ebuild
index d1552563301d..d4166696621f 100644
--- a/dev-qt/qtwebengine/qtwebengine-6.5.2.ebuild
+++ b/dev-qt/qtwebengine/qtwebengine-6.5.2.ebuild
@@ -8,9 +8,6 @@ PYTHON_REQ_USE="xml(+)"
inherit check-reqs estack flag-o-matic multiprocessing
inherit prefix python-any-r1 qt6-build toolchain-funcs
-CHROMIUM_VER=108.0.5359.181
-CHROMIUM_PATCHES_VER=114.0.5735.133
-
DESCRIPTION="Library for rendering dynamic web content in Qt6 C++ and QML applications"
if [[ ${QT6_BUILD_TYPE} == release ]]; then
@@ -141,17 +138,6 @@ pkg_setup() {
python-any-r1_pkg_setup
}
-pkg_preinst() {
- elog "This version of Qt WebEngine is based on Chromium version ${CHROMIUM_VER}, with"
- elog "additional security fixes up to ${CHROMIUM_PATCHES_VER}. Extensive as it is, the"
- elog "list of backports is impossible to evaluate, but always bound to be behind"
- elog "Chromium's release schedule."
- elog "In addition, various online services may deny service based on an outdated"
- elog "user agent version (and/or other checks). Google is already known to do so."
- elog
- elog "tldr: Your web browsing experience will be compromised."
-}
-
src_prepare() {
qt6-build_src_prepare
@@ -177,6 +163,14 @@ src_prepare() {
# for www-plugins/chrome-binary-plugins (widevine) search paths on prefix
hprefixify -w /Gentoo/ src/core/content_client_qt.cpp
+
+ # store chromium versions, only used in postinst for a warning
+ local chromium
+ mapfile -t chromium < CHROMIUM_VERSION || die
+ [[ ${chromium[1]} =~ ^Based.*:[^0-9]+([0-9.]+$) ]] &&
+ QT6_CHROMIUM_VER=${BASH_REMATCH[1]} || die
+ [[ ${chromium[2]} =~ ^Patched.+:[^0-9]+([0-9.]+$) ]] &&
+ QT6_CHROMIUM_PATCHES_VER=${BASH_REMATCH[1]} || die
}
src_configure() {
@@ -267,3 +261,15 @@ src_test() {
# random failures in several tests without -j1
qt6-build_src_test -j1
}
+
+pkg_postinst() {
+ elog "This version of Qt WebEngine is based on Chromium version ${QT6_CHROMIUM_VER}, with"
+ elog "additional security fixes up to ${QT6_CHROMIUM_PATCHES_VER}. Extensive as it is, the"
+ elog "list of backports is impossible to evaluate, but always bound to be behind"
+ elog "Chromium's release schedule."
+ elog
+ elog "In addition, various online services may deny service based on an outdated"
+ elog "user agent version (and/or other checks). Google is already known to do so."
+ elog
+ elog "tl;dr your web browsing experience will be compromised."
+}
diff --git a/dev-qt/qtwebengine/qtwebengine-6.5.9999.ebuild b/dev-qt/qtwebengine/qtwebengine-6.5.9999.ebuild
index 1028503b6bdc..0914c4a43390 100644
--- a/dev-qt/qtwebengine/qtwebengine-6.5.9999.ebuild
+++ b/dev-qt/qtwebengine/qtwebengine-6.5.9999.ebuild
@@ -8,9 +8,6 @@ PYTHON_REQ_USE="xml(+)"
inherit check-reqs estack flag-o-matic multiprocessing
inherit prefix python-any-r1 qt6-build toolchain-funcs
-CHROMIUM_VER=108.0.5359.181
-CHROMIUM_PATCHES_VER=113.0.5672.126
-
DESCRIPTION="Library for rendering dynamic web content in Qt6 C++ and QML applications"
if [[ ${QT6_BUILD_TYPE} == release ]]; then
@@ -137,17 +134,6 @@ pkg_setup() {
python-any-r1_pkg_setup
}
-pkg_preinst() {
- elog "This version of Qt WebEngine is based on Chromium version ${CHROMIUM_VER}, with"
- elog "additional security fixes up to ${CHROMIUM_PATCHES_VER}. Extensive as it is, the"
- elog "list of backports is impossible to evaluate, but always bound to be behind"
- elog "Chromium's release schedule."
- elog "In addition, various online services may deny service based on an outdated"
- elog "user agent version (and/or other checks). Google is already known to do so."
- elog
- elog "tldr: Your web browsing experience will be compromised."
-}
-
src_prepare() {
qt6-build_src_prepare
@@ -173,6 +159,14 @@ src_prepare() {
# for www-plugins/chrome-binary-plugins (widevine) search paths on prefix
hprefixify -w /Gentoo/ src/core/content_client_qt.cpp
+
+ # store chromium versions, only used in postinst for a warning
+ local chromium
+ mapfile -t chromium < CHROMIUM_VERSION || die
+ [[ ${chromium[1]} =~ ^Based.*:[^0-9]+([0-9.]+$) ]] &&
+ QT6_CHROMIUM_VER=${BASH_REMATCH[1]} || die
+ [[ ${chromium[2]} =~ ^Patched.+:[^0-9]+([0-9.]+$) ]] &&
+ QT6_CHROMIUM_PATCHES_VER=${BASH_REMATCH[1]} || die
}
src_configure() {
@@ -263,3 +257,15 @@ src_test() {
# random failures in several tests without -j1
qt6-build_src_test -j1
}
+
+pkg_postinst() {
+ elog "This version of Qt WebEngine is based on Chromium version ${QT6_CHROMIUM_VER}, with"
+ elog "additional security fixes up to ${QT6_CHROMIUM_PATCHES_VER}. Extensive as it is, the"
+ elog "list of backports is impossible to evaluate, but always bound to be behind"
+ elog "Chromium's release schedule."
+ elog
+ elog "In addition, various online services may deny service based on an outdated"
+ elog "user agent version (and/or other checks). Google is already known to do so."
+ elog
+ elog "tl;dr your web browsing experience will be compromised."
+}
diff --git a/dev-qt/qtwebengine/qtwebengine-6.9999.ebuild b/dev-qt/qtwebengine/qtwebengine-6.9999.ebuild
index 77a4ac3d9fff..0914c4a43390 100644
--- a/dev-qt/qtwebengine/qtwebengine-6.9999.ebuild
+++ b/dev-qt/qtwebengine/qtwebengine-6.9999.ebuild
@@ -8,9 +8,6 @@ PYTHON_REQ_USE="xml(+)"
inherit check-reqs estack flag-o-matic multiprocessing
inherit prefix python-any-r1 qt6-build toolchain-funcs
-CHROMIUM_VER=108.0.5359.181
-CHROMIUM_PATCHES_VER=114.0.5735.133
-
DESCRIPTION="Library for rendering dynamic web content in Qt6 C++ and QML applications"
if [[ ${QT6_BUILD_TYPE} == release ]]; then
@@ -137,17 +134,6 @@ pkg_setup() {
python-any-r1_pkg_setup
}
-pkg_preinst() {
- elog "This version of Qt WebEngine is based on Chromium version ${CHROMIUM_VER}, with"
- elog "additional security fixes up to ${CHROMIUM_PATCHES_VER}. Extensive as it is, the"
- elog "list of backports is impossible to evaluate, but always bound to be behind"
- elog "Chromium's release schedule."
- elog "In addition, various online services may deny service based on an outdated"
- elog "user agent version (and/or other checks). Google is already known to do so."
- elog
- elog "tldr: Your web browsing experience will be compromised."
-}
-
src_prepare() {
qt6-build_src_prepare
@@ -173,6 +159,14 @@ src_prepare() {
# for www-plugins/chrome-binary-plugins (widevine) search paths on prefix
hprefixify -w /Gentoo/ src/core/content_client_qt.cpp
+
+ # store chromium versions, only used in postinst for a warning
+ local chromium
+ mapfile -t chromium < CHROMIUM_VERSION || die
+ [[ ${chromium[1]} =~ ^Based.*:[^0-9]+([0-9.]+$) ]] &&
+ QT6_CHROMIUM_VER=${BASH_REMATCH[1]} || die
+ [[ ${chromium[2]} =~ ^Patched.+:[^0-9]+([0-9.]+$) ]] &&
+ QT6_CHROMIUM_PATCHES_VER=${BASH_REMATCH[1]} || die
}
src_configure() {
@@ -263,3 +257,15 @@ src_test() {
# random failures in several tests without -j1
qt6-build_src_test -j1
}
+
+pkg_postinst() {
+ elog "This version of Qt WebEngine is based on Chromium version ${QT6_CHROMIUM_VER}, with"
+ elog "additional security fixes up to ${QT6_CHROMIUM_PATCHES_VER}. Extensive as it is, the"
+ elog "list of backports is impossible to evaluate, but always bound to be behind"
+ elog "Chromium's release schedule."
+ elog
+ elog "In addition, various online services may deny service based on an outdated"
+ elog "user agent version (and/or other checks). Google is already known to do so."
+ elog
+ elog "tl;dr your web browsing experience will be compromised."
+}