Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-qt/qtwebengine/
Date: Wed, 30 Mar 2022 05:53:03
Message-Id: 1648619545.b71ef3813eee40a6575dfb3e6c4127e9ca49c043.asturm@gentoo
1 commit: b71ef3813eee40a6575dfb3e6c4127e9ca49c043
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Wed Mar 30 05:50:11 2022 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 30 05:52:25 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b71ef381
7
8 dev-qt/qtwebengine: Drop 5.15.3_p20220310
9
10 Package-Manager: Portage-3.0.30, Repoman-3.0.3
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 dev-qt/qtwebengine/Manifest | 1 -
14 .../qtwebengine-5.15.3_p20220310.ebuild | 265 ---------------------
15 2 files changed, 266 deletions(-)
16
17 diff --git a/dev-qt/qtwebengine/Manifest b/dev-qt/qtwebengine/Manifest
18 index edffb438ff5c..eedc182c4dad 100644
19 --- a/dev-qt/qtwebengine/Manifest
20 +++ b/dev-qt/qtwebengine/Manifest
21 @@ -1,5 +1,4 @@
22 DIST qtwebengine-5.15.2-r1-chromium87-ppc64le.tar.xz 28784 BLAKE2B aa101d14446f3282fda8932cc75a249d88b79319f0886d95777292776d94ac5f4fc114c3893b2801fbba6abb14f381172bb14b15b5ffef12413db3a16e4d1ca6 SHA512 3324e0076eb18e2ae2248428d2730cfb3413761514b2bb57e25b8db79248aaaa8098d9f7cebfa08f1a3b39b1d0a382aafed75c5ae8273918909335957921305e
23 DIST qtwebengine-5.15.2_p20211019-jumbo-build.patch.bz2 2930 BLAKE2B fca1d1406874d04eafb64bb4d8730512a6307ba44fb99d76f428ca1bd4a303758e0c3bd8f92a59f7bcf62e5b767c5a8ed239028bdb74ad7a8b62abf88d38c101 SHA512 61cbfbe4ff340b75ea8d356e031e932ac03fe65dd009999ff897ca4b0185d1d989490daf75ffeaaabb3e92c870c11c7ff8ad2cd6372f5363b3d774b8ecca6d89
24 DIST qtwebengine-5.15.2_p20211216.tar.xz 318953468 BLAKE2B 65b1bc5be8d08d10b75fee20f78a9a783f878874907335818cddde500e80633e91a999e92fd3de69d004c3621a8337c9bef2c949e03e552cab1d89d901e0dae2 SHA512 f72db4b6dcbdaa171bf2997ab3a77325f9845ef1d72cd994e6152f0f92d350de348ff15b1cde1140ab98b7eb10d6e2d2a3ac6b7d773ab43de37144faad37c3f3
25 -DIST qtwebengine-5.15.3_p20220310.tar.xz 319290976 BLAKE2B 0a0e74e7d94e59d81687ceb4d791034d43daaeef887894acedc2d2568a8c74e4b7303440518d377c16de21a546e2609fdd89ab64c0664c230df4657cec9d399c SHA512 e57c7c51d0f27d116d2dc80043cb563a1dbce2357221ba87ae3c3b0e8c781e3ef09f69b8f6f20fcb7d85d596ae312b2f85ebc35ba7ee283ab30caa8f796fe2d6
26 DIST qtwebengine-5.15.3_p20220329.tar.xz 318910384 BLAKE2B df4e88628eed5fa2304eec986dd397cd5f51e42f9fdf2dca1bc6d84ad40be406d112701124c745d003b4c22a33d5a69b39b66747e7b9a970a7c91b46ef3943f7 SHA512 650d9056477479fc4630102d7270185c99cdf1ec855f3f407725dd74a737756b7180565a924594c1b75dcbb061d3642af2447610bf22acd9c4cb2c90c7cf842b
27
28 diff --git a/dev-qt/qtwebengine/qtwebengine-5.15.3_p20220310.ebuild b/dev-qt/qtwebengine/qtwebengine-5.15.3_p20220310.ebuild
29 deleted file mode 100644
30 index 8c44a49805d8..000000000000
31 --- a/dev-qt/qtwebengine/qtwebengine-5.15.3_p20220310.ebuild
32 +++ /dev/null
33 @@ -1,265 +0,0 @@
34 -# Copyright 1999-2022 Gentoo Authors
35 -# Distributed under the terms of the GNU General Public License v2
36 -
37 -EAPI=8
38 -
39 -PYTHON_COMPAT=( python2_7 )
40 -PYTHON_REQ_USE="xml(+)"
41 -inherit check-reqs estack flag-o-matic multiprocessing python-any-r1 qt5-build toolchain-funcs
42 -
43 -DESCRIPTION="Library for rendering dynamic web content in Qt5 C++ and QML applications"
44 -HOMEPAGE="https://www.qt.io/"
45 -
46 -if [[ ${QT5_BUILD_TYPE} == release ]]; then
47 - KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
48 - if [[ ${PV} == ${QT5_PV}_p* ]]; then
49 - SRC_URI="https://dev.gentoo.org/~asturm/distfiles/${P}.tar.xz"
50 - S="${WORKDIR}/${P}"
51 - QT5_BUILD_DIR="${S}_build"
52 - fi
53 -else
54 - EGIT_BRANCH="5.15"
55 - EGIT_REPO_URI=(
56 - "https://code.qt.io/qt/${QT5_MODULE}.git"
57 - "https://github.com/qt/${QT5_MODULE}.git"
58 - )
59 - inherit git-r3
60 -fi
61 -
62 -# ppc64 patchset based on https://github.com/chromium-ppc64le releases
63 -SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${PN}-5.15.2_p20211019-jumbo-build.patch.bz2
64 - ppc64? ( https://dev.gentoo.org/~gyakovlev/distfiles/${PN}-5.15.2-r1-chromium87-ppc64le.tar.xz )"
65 -
66 -IUSE="alsa bindist designer geolocation +jumbo-build kerberos pulseaudio +system-ffmpeg +system-icu widgets"
67 -REQUIRED_USE="designer? ( widgets )"
68 -
69 -RDEPEND="
70 - app-arch/snappy:=
71 - dev-libs/glib:2
72 - dev-libs/nspr
73 - dev-libs/nss
74 - dev-libs/expat
75 - dev-libs/libevent:=
76 - dev-libs/libxml2[icu]
77 - dev-libs/libxslt
78 - dev-libs/re2:=
79 - =dev-qt/qtcore-${QT5_PV}*
80 - =dev-qt/qtdeclarative-${QT5_PV}*
81 - =dev-qt/qtgui-${QT5_PV}*
82 - =dev-qt/qtnetwork-${QT5_PV}*
83 - =dev-qt/qtprintsupport-${QT5_PV}*
84 - =dev-qt/qtwebchannel-${QT5_PV}*[qml]
85 - media-libs/fontconfig
86 - media-libs/freetype
87 - media-libs/harfbuzz:=
88 - media-libs/lcms:2
89 - media-libs/libjpeg-turbo:=
90 - media-libs/libpng:0=
91 - >=media-libs/libvpx-1.5:=[svc(+)]
92 - media-libs/libwebp:=
93 - media-libs/opus
94 - sys-apps/dbus
95 - sys-apps/pciutils
96 - sys-libs/zlib[minizip]
97 - virtual/libudev
98 - x11-libs/libdrm
99 - x11-libs/libX11
100 - x11-libs/libXcomposite
101 - x11-libs/libXcursor
102 - x11-libs/libXdamage
103 - x11-libs/libXext
104 - x11-libs/libXfixes
105 - x11-libs/libXi
106 - x11-libs/libxkbfile
107 - x11-libs/libXrandr
108 - x11-libs/libXrender
109 - x11-libs/libXScrnSaver
110 - x11-libs/libXtst
111 - alsa? ( media-libs/alsa-lib )
112 - designer? ( =dev-qt/designer-${QT5_PV}* )
113 - geolocation? ( =dev-qt/qtpositioning-${QT5_PV}* )
114 - kerberos? ( virtual/krb5 )
115 - pulseaudio? ( media-sound/pulseaudio:= )
116 - system-ffmpeg? ( media-video/ffmpeg:0= )
117 - system-icu? ( >=dev-libs/icu-69.1:= )
118 - widgets? (
119 - =dev-qt/qtdeclarative-${QT5_PV}*[widgets]
120 - =dev-qt/qtwidgets-${QT5_PV}*
121 - )
122 -"
123 -DEPEND="${RDEPEND}
124 - media-libs/libglvnd
125 -"
126 -BDEPEND="${PYTHON_DEPS}
127 - dev-util/gperf
128 - dev-util/ninja
129 - dev-util/re2c
130 - net-libs/nodejs[ssl]
131 - sys-devel/bison
132 - sys-devel/flex
133 - ppc64? ( >=dev-util/gn-0.1807 )
134 -"
135 -
136 -PATCHES=(
137 - "${FILESDIR}/${PN}-5.15.2-disable-fatal-warnings.patch" # downstream, bug 695446
138 - "${FILESDIR}/${PN}-5.15.2-extra_gn.patch" # downstream, bug 774186
139 - "${FILESDIR}/${PN}-5.15.2_p20210224-chromium-87-v8-icu68.patch" # downstream, bug 757606
140 - "${FILESDIR}/${PN}-5.15.2_p20210224-disable-git.patch" # downstream snapshot fix
141 - "${FILESDIR}/${PN}-5.15.2_p20211015-pdfium-system-lcms2.patch" # by Debian, QTBUG-61746
142 - "${WORKDIR}/${PN}-5.15.2_p20211019-jumbo-build.patch" # bug 813957
143 -)
144 -
145 -qtwebengine_check-reqs() {
146 - # bug #307861
147 - eshopts_push -s extglob
148 - if is-flagq '-g?(gdb)?([1-9])'; then
149 - ewarn "You have enabled debug info (probably have -g or -ggdb in your CFLAGS/CXXFLAGS)."
150 - ewarn "You may experience really long compilation times and/or increased memory usage."
151 - ewarn "If compilation fails, please try removing -g/-ggdb before reporting a bug."
152 - fi
153 - eshopts_pop
154 -
155 - [[ ${MERGE_TYPE} == binary ]] && return
156 -
157 - # (check-reqs added for bug #570534)
158 - #
159 - # Estimate the amount of RAM required
160 - # Multiplier is *10 because Bash doesn't do floating point maths.
161 - # Let's crudely assume ~2GB per compiler job for GCC.
162 - local multiplier=20
163 -
164 - # And call it ~1.5GB for Clang.
165 - if tc-is-clang ; then
166 - multiplier=15
167 - fi
168 -
169 - local CHECKREQS_DISK_BUILD="7G"
170 - local CHECKREQS_DISK_USR="150M"
171 - if ! has "distcc" ${FEATURES} ; then
172 - # bug #830661
173 - # Not super realistic to come up with good estimates for distcc right now
174 - local CHECKREQS_MEMORY=$(($(makeopts_jobs)*multiplier/10))G
175 - fi
176 -
177 - check-reqs_${EBUILD_PHASE_FUNC}
178 -}
179 -
180 -pkg_pretend() {
181 - qtwebengine_check-reqs
182 -}
183 -
184 -pkg_setup() {
185 - qtwebengine_check-reqs
186 - python-any-r1_pkg_setup
187 -}
188 -
189 -src_unpack() {
190 - case ${QT5_BUILD_TYPE} in
191 - live) git-r3_src_unpack ;&
192 - release) default ;;
193 - esac
194 -}
195 -
196 -src_prepare() {
197 - if [[ ${PV} == ${QT5_PV}_p* ]]; then
198 - # This is made from git, and for some reason will fail w/o .git directories.
199 - mkdir -p .git src/3rdparty/chromium/.git || die
200 - fi
201 - # We need to make sure this integrates well into Qt 5.15.2 installation.
202 - # Otherwise revdeps fail w/o heavy changes. This is the simplest way to do it.
203 - # See also: https://www.qt.io/blog/building-qt-webengine-against-other-qt-versions
204 - sed -e "/^MODULE_VERSION/s/5\.15\.[3456789]/${QT5_PV}/" -i .qmake.conf || die
205 -
206 - # QTBUG-88657 - jumbo-build could still make trouble
207 - if ! use jumbo-build; then
208 - sed -i -e 's|use_jumbo_build=true|use_jumbo_build=false|' \
209 - src/buildtools/config/common.pri || die
210 - fi
211 -
212 - # bug 620444 - ensure local headers are used
213 - find "${S}" -type f -name "*.pr[fio]" | \
214 - xargs sed -i -e 's|INCLUDEPATH += |&$${QTWEBENGINE_ROOT}_build/include $${QTWEBENGINE_ROOT}/include |' || die
215 -
216 - if use system-icu; then
217 - # Sanity check to ensure that bundled copy of ICU is not used.
218 - # Whole src/3rdparty/chromium/third_party/icu directory cannot be deleted because
219 - # src/3rdparty/chromium/third_party/icu/BUILD.gn is used by build system.
220 - # If usage of headers of bundled copy of ICU occurs, then lists of shim headers in
221 - # shim_headers("icui18n_shim") and shim_headers("icuuc_shim") in
222 - # src/3rdparty/chromium/third_party/icu/BUILD.gn should be updated.
223 - local file
224 - while read file; do
225 - echo "#error This file should not be used!" > "${file}" || die
226 - done < <(find src/3rdparty/chromium/third_party/icu -type f "(" -name "*.c" -o -name "*.cpp" -o -name "*.h" ")" 2>/dev/null)
227 - fi
228 -
229 - # src/3rdparty/gn fails with libc++ due to passing of `-static-libstdc++`
230 - if tc-is-clang && has_version 'sys-devel/clang[default-libcxx]'; then
231 - eapply "${FILESDIR}/${PN}-5.15.2_p20210521-clang-libc++.patch"
232 - fi
233 -
234 - qt_use_disable_config alsa webengine-alsa src/buildtools/config/linux.pri
235 - qt_use_disable_config pulseaudio webengine-pulseaudio src/buildtools/config/linux.pri
236 -
237 - qt_use_disable_mod designer webenginewidgets src/plugins/plugins.pro
238 -
239 - qt_use_disable_mod widgets widgets src/src.pro
240 -
241 - qt5-build_src_prepare
242 -
243 - # we need to generate ppc64 stuff because upstream does not ship it yet
244 - if use ppc64; then
245 - einfo "Patching for ppc64le and generating build files"
246 - eapply "${FILESDIR}/qtwebengine-5.15.2-enable-ppc64.patch"
247 - pushd src/3rdparty/chromium > /dev/null || die
248 - eapply -p0 "${WORKDIR}/${PN}-ppc64le"
249 - popd > /dev/null || die
250 - pushd src/3rdparty/chromium/third_party/libvpx > /dev/null || die
251 - mkdir -vp source/config/linux/ppc64 || die
252 - mkdir -p source/libvpx/test || die
253 - touch source/libvpx/test/test.mk || die
254 - ./generate_gni.sh || die
255 - popd >/dev/null || die
256 - fi
257 -}
258 -
259 -src_configure() {
260 - export NINJA_PATH=/usr/bin/ninja
261 - export NINJAFLAGS="${NINJAFLAGS:--j$(makeopts_jobs) -l$(makeopts_loadavg "${MAKEOPTS}" 0) -v}"
262 -
263 - local myqmakeargs=(
264 - --
265 - -no-build-qtpdf
266 - -printing-and-pdf
267 - -system-opus
268 - -system-webp
269 - $(qt_use alsa)
270 - $(qt_use !bindist proprietary-codecs)
271 - $(qt_use geolocation webengine-geolocation)
272 - $(qt_use kerberos webengine-kerberos)
273 - $(qt_use pulseaudio)
274 - $(usex system-ffmpeg -system-ffmpeg -qt-ffmpeg)
275 - $(qt_use system-icu webengine-icu)
276 - )
277 - qt5-build_src_configure
278 -}
279 -
280 -src_install() {
281 - qt5-build_src_install
282 -
283 - # bug 601472
284 - if [[ ! -f ${D}${QT5_LIBDIR}/libQt5WebEngine.so ]]; then
285 - die "${CATEGORY}/${PF} failed to build anything. Please report to https://bugs.gentoo.org/"
286 - fi
287 -}
288 -
289 -pkg_preinst() {
290 - elog "This version of Qt WebEngine is based on Chromium version 87.0.4280, with"
291 - elog "additional security fixes from newer versions. Extensive as it is, the"
292 - elog "list of backports is impossible to evaluate, but always bound to be behind"
293 - elog "Chromium's release schedule."
294 - elog "In addition, various online services may deny service based on an outdated"
295 - elog "user agent version (and/or other checks). Google is already known to do so."
296 - elog
297 - elog "tldr: Your web browsing experience will be compromised."
298 -}