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/files/, dev-qt/qtwebengine/
Date: Tue, 28 Dec 2021 12:19:41
Message-Id: 1640693964.13b149204829892b18787e3d974d719d1a0669dd.asturm@gentoo
1 commit: 13b149204829892b18787e3d974d719d1a0669dd
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 28 12:19:14 2021 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 28 12:19:24 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=13b14920
7
8 dev-qt/qtwebengine: Cleanup vulnerable 5.15.2_p20211019
9
10 Bug: https://bugs.gentoo.org/829161
11 Package-Manager: Portage-3.0.30, Repoman-3.0.3
12 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
13
14 dev-qt/qtwebengine/Manifest | 1 -
15 ...ne-5.15.2_p20210824-abseil-cpp-glibc-2.34.patch | 72 -------
16 ...gine-5.15.2_p20210824-breakpad-glibc-2.34.patch | 72 -------
17 .../qtwebengine-5.15.2_p20211019.ebuild | 229 ---------------------
18 4 files changed, 374 deletions(-)
19
20 diff --git a/dev-qt/qtwebengine/Manifest b/dev-qt/qtwebengine/Manifest
21 index 9ee52fe9cdbc..7a80969c4c8e 100644
22 --- a/dev-qt/qtwebengine/Manifest
23 +++ b/dev-qt/qtwebengine/Manifest
24 @@ -1,4 +1,3 @@
25 DIST qtwebengine-5.15.2-r1-chromium87-ppc64le.tar.xz 28784 BLAKE2B aa101d14446f3282fda8932cc75a249d88b79319f0886d95777292776d94ac5f4fc114c3893b2801fbba6abb14f381172bb14b15b5ffef12413db3a16e4d1ca6 SHA512 3324e0076eb18e2ae2248428d2730cfb3413761514b2bb57e25b8db79248aaaa8098d9f7cebfa08f1a3b39b1d0a382aafed75c5ae8273918909335957921305e
26 DIST qtwebengine-5.15.2_p20211019-jumbo-build.patch.bz2 2930 BLAKE2B fca1d1406874d04eafb64bb4d8730512a6307ba44fb99d76f428ca1bd4a303758e0c3bd8f92a59f7bcf62e5b767c5a8ed239028bdb74ad7a8b62abf88d38c101 SHA512 61cbfbe4ff340b75ea8d356e031e932ac03fe65dd009999ff897ca4b0185d1d989490daf75ffeaaabb3e92c870c11c7ff8ad2cd6372f5363b3d774b8ecca6d89
27 -DIST qtwebengine-5.15.2_p20211019.tar.xz 320325744 BLAKE2B fac2f2a44e0f443a2642c0a0b3888ff15d047ce5b2de6673213db308e60f3e26b12adf98ad1dcf305630f0bc55abff078942711fbd10d05dc5a4095faadead25 SHA512 4abd2ca416228bbafa31aad9deae1466748930c02bcc08b559bbbb21fda598f720137e2af0cfa176dd534c8da97934d76e59b72c124b73564378fda0deaddaee
28 DIST qtwebengine-5.15.2_p20211216.tar.xz 318953468 BLAKE2B 65b1bc5be8d08d10b75fee20f78a9a783f878874907335818cddde500e80633e91a999e92fd3de69d004c3621a8337c9bef2c949e03e552cab1d89d901e0dae2 SHA512 f72db4b6dcbdaa171bf2997ab3a77325f9845ef1d72cd994e6152f0f92d350de348ff15b1cde1140ab98b7eb10d6e2d2a3ac6b7d773ab43de37144faad37c3f3
29
30 diff --git a/dev-qt/qtwebengine/files/qtwebengine-5.15.2_p20210824-abseil-cpp-glibc-2.34.patch b/dev-qt/qtwebengine/files/qtwebengine-5.15.2_p20210824-abseil-cpp-glibc-2.34.patch
31 deleted file mode 100644
32 index dfaa634bdb1f..000000000000
33 --- a/dev-qt/qtwebengine/files/qtwebengine-5.15.2_p20210824-abseil-cpp-glibc-2.34.patch
34 +++ /dev/null
35 @@ -1,72 +0,0 @@
36 -From 78b1bcff4d9b977313e9ea15068168e1b11f5ba1 Mon Sep 17 00:00:00 2001
37 -From: Martin Jansa <Martin.Jansa@×××××.com>
38 -Date: Wed, 4 Aug 2021 19:08:03 +0200
39 -Subject: [PATCH] chromium: abseil-cpp: fix build with glibc-2.34
40 -
41 -* backport a fix from upstream abseil-cpp:
42 - https://github.com/abseil/abseil-cpp/commit/a9831f1cbf93fb18dd951453635f488037454ce9
43 -
44 - to fix:
45 -
46 -[97/24505] CXX obj/third_party/abseil-cpp/absl/debugging/failure_signal_handler/failure_signal_handler.o
47 -FAILED: obj/third_party/abseil-cpp/absl/debugging/failure_signal_handler/failure_signal_handler.o
48 -/OE/build/luneos-honister/webos-ports/tmp-glibc/work/core2-64-webos-linux/qtwebengine/5.15.4+gitAUTOINC+dd7f7a9166_555f348ae8-r0/recipe-sysroot-native/usr/bin/x86_64-webos-linux/x86_64-webos-linux-g++ -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -Wdate-time --sysroot=/OE/build/luneos-honister/webos-ports/tmp-glibc/work/core2-64-webos-linux/qtwebengine/5.15.4+gitAUTOINC+dd7f7a9166_555f348ae8-r0/recipe-sysroot -MMD -MF obj/third_party/abseil-cpp/absl/debugging/failure_signal_handler/failure_signal_handler.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_NSS_CERTS=1 -DUSE_OZONE=1 -DOFFICIAL_BUILD -DTOOLKIT_QT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -DCR_SYSROOT_HASH=5f64b417e1018dcf8fcc81dc2714e0f264b9b911 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DABSL_ALLOCATOR_NOTHROW=1 -Igen -I../../../../git/src/3rdparty/chromium -I../../../../git/src/3rdparty/chromium/third_party/abseil-cpp -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-prote
49 ctor -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pipe -pthread -m64 -O2 -fno-ident -fdata-sections -ffunction-sections -fno-omit-frame-pointer -g1 -fvisibility=hidden -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations -fno-delete-null-pointer-checks -Wno-comments -Wno-packed-not-aligned -Wno-dangling-else -Wno-missing-field-initializers -Wno-unused-parameter -std=gnu++14 -fno-exceptions -fno-rtti --sysroot=../../../../recipe-sysroot -fvisibility-inlines-hidden -Wno-narrowing -Wno-class-memaccess -Wno-attributes -Wno-class-memaccess -Wno-subobject-linkage -Wno-invalid-offsetof -Wno-return-type -Wno-deprecated-copy -c ../../../../git/src/3rdparty/chromium/third_party/abseil-cpp/absl/debugging/failure_signal_handler.cc -o obj/third_party/abseil-cpp/absl/debugging/failure_signal_handler/failure_signal_handler.o
50 -../../../../git/src/3rdparty/chromium/third_party/abseil-cpp/absl/debugging/failure_signal_handler.cc: In function 'bool absl::SetupAlternateStackOnce()':
51 -../../../../git/src/3rdparty/chromium/third_party/abseil-cpp/absl/debugging/failure_signal_handler.cc:138:32: error: no matching function for call to 'max(long int, int)'
52 - 138 | size_t stack_size = (std::max(SIGSTKSZ, 65536) + page_mask) & ~page_mask;
53 - | ~~~~~~~~^~~~~~~~~~~~~~~~~
54 -In file included from ../../../../recipe-sysroot/usr/include/c++/11.2.0/algorithm:61,
55 - from ../../../../git/src/3rdparty/chromium/third_party/abseil-cpp/absl/debugging/failure_signal_handler.cc:35:
56 -../../../../recipe-sysroot/usr/include/c++/11.2.0/bits/stl_algobase.h:254:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
57 - 254 | max(const _Tp& __a, const _Tp& __b)
58 - | ^~~
59 -../../../../recipe-sysroot/usr/include/c++/11.2.0/bits/stl_algobase.h:254:5: note: template argument deduction/substitution failed:
60 -../../../../git/src/3rdparty/chromium/third_party/abseil-cpp/absl/debugging/failure_signal_handler.cc:138:32: note: deduced conflicting types for parameter 'const _Tp' ('long int' and 'int')
61 - 138 | size_t stack_size = (std::max(SIGSTKSZ, 65536) + page_mask) & ~page_mask;
62 - | ~~~~~~~~^~~~~~~~~~~~~~~~~
63 -In file included from ../../../../recipe-sysroot/usr/include/c++/11.2.0/algorithm:61,
64 - from ../../../../git/src/3rdparty/chromium/third_party/abseil-cpp/absl/debugging/failure_signal_handler.cc:35:
65 -../../../../recipe-sysroot/usr/include/c++/11.2.0/bits/stl_algobase.h:300:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
66 - 300 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
67 - | ^~~
68 -../../../../recipe-sysroot/usr/include/c++/11.2.0/bits/stl_algobase.h:300:5: note: template argument deduction/substitution failed:
69 -../../../../git/src/3rdparty/chromium/third_party/abseil-cpp/absl/debugging/failure_signal_handler.cc:138:32: note: deduced conflicting types for parameter 'const _Tp' ('long int' and 'int')
70 - 138 | size_t stack_size = (std::max(SIGSTKSZ, 65536) + page_mask) & ~page_mask;
71 - | ~~~~~~~~^~~~~~~~~~~~~~~~~
72 -In file included from ../../../../recipe-sysroot/usr/include/c++/11.2.0/algorithm:62,
73 - from ../../../../git/src/3rdparty/chromium/third_party/abseil-cpp/absl/debugging/failure_signal_handler.cc:35:
74 -../../../../recipe-sysroot/usr/include/c++/11.2.0/bits/stl_algo.h:3461:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(std::initializer_list<_Tp>)'
75 - 3461 | max(initializer_list<_Tp> __l)
76 - | ^~~
77 -../../../../recipe-sysroot/usr/include/c++/11.2.0/bits/stl_algo.h:3461:5: note: template argument deduction/substitution failed:
78 -../../../../git/src/3rdparty/chromium/third_party/abseil-cpp/absl/debugging/failure_signal_handler.cc:138:32: note: mismatched types 'std::initializer_list<_Tp>' and 'long int'
79 - 138 | size_t stack_size = (std::max(SIGSTKSZ, 65536) + page_mask) & ~page_mask;
80 - | ~~~~~~~~^~~~~~~~~~~~~~~~~
81 -In file included from ../../../../recipe-sysroot/usr/include/c++/11.2.0/algorithm:62,
82 - from ../../../../git/src/3rdparty/chromium/third_party/abseil-cpp/absl/debugging/failure_signal_handler.cc:35:
83 -../../../../recipe-sysroot/usr/include/c++/11.2.0/bits/stl_algo.h:3467:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(std::initializer_list<_Tp>, _Compare)'
84 - 3467 | max(initializer_list<_Tp> __l, _Compare __comp)
85 - | ^~~
86 -../../../../recipe-sysroot/usr/include/c++/11.2.0/bits/stl_algo.h:3467:5: note: template argument deduction/substitution failed:
87 -../../../../git/src/3rdparty/chromium/third_party/abseil-cpp/absl/debugging/failure_signal_handler.cc:138:32: note: mismatched types 'std::initializer_list<_Tp>' and 'long int'
88 - 138 | size_t stack_size = (std::max(SIGSTKSZ, 65536) + page_mask) & ~page_mask;
89 - | ~~~~~~~~^~~~~~~~~~~~~~~~~
90 -
91 -Signed-off-by: Martin Jansa <Martin.Jansa@×××××.com>
92 ----
93 - .../abseil-cpp/absl/debugging/failure_signal_handler.cc | 2 +-
94 - 1 file changed, 1 insertion(+), 1 deletion(-)
95 -
96 -diff --git a/chromium/third_party/abseil-cpp/absl/debugging/failure_signal_handler.cc b/chromium/third_party/abseil-cpp/absl/debugging/failure_signal_handler.cc
97 -index 5d13bdbbbd1..150a43f2660 100644
98 ---- a/src/3rdparty/chromium/third_party/abseil-cpp/absl/debugging/failure_signal_handler.cc
99 -+++ b/src/3rdparty/chromium/third_party/abseil-cpp/absl/debugging/failure_signal_handler.cc
100 -@@ -135,7 +135,7 @@ static bool SetupAlternateStackOnce() {
101 - #else
102 - const size_t page_mask = sysconf(_SC_PAGESIZE) - 1;
103 - #endif
104 -- size_t stack_size = (std::max(SIGSTKSZ, 65536) + page_mask) & ~page_mask;
105 -+ size_t stack_size = (std::max<size_t>(SIGSTKSZ, 65536) + page_mask) & ~page_mask;
106 - #if defined(ABSL_HAVE_ADDRESS_SANITIZER) || \
107 - defined(ABSL_HAVE_MEMORY_SANITIZER) || defined(ABSL_HAVE_THREAD_SANITIZER)
108 - // Account for sanitizer instrumentation requiring additional stack space.
109
110 diff --git a/dev-qt/qtwebengine/files/qtwebengine-5.15.2_p20210824-breakpad-glibc-2.34.patch b/dev-qt/qtwebengine/files/qtwebengine-5.15.2_p20210824-breakpad-glibc-2.34.patch
111 deleted file mode 100644
112 index b91c239ac2b3..000000000000
113 --- a/dev-qt/qtwebengine/files/qtwebengine-5.15.2_p20210824-breakpad-glibc-2.34.patch
114 +++ /dev/null
115 @@ -1,72 +0,0 @@
116 -From a3bc792bdc116806a50e022d9102914c8daf6210 Mon Sep 17 00:00:00 2001
117 -From: Martin Jansa <Martin.Jansa@×××××.com>
118 -Date: Wed, 4 Aug 2021 19:11:06 +0200
119 -Subject: [PATCH] chromium: breakpad: fix build with glibc-2.34
120 -
121 -* fixes:
122 -[218/24061] CXX obj/third_party/breakpad/client/exception_handler.o
123 -FAILED: obj/third_party/breakpad/client/exception_handler.o
124 -/OE/build/luneos-honister/webos-ports/tmp-glibc/work/core2-64-webos-linux/qtwebengine/5.15.4+gitAUTOINC+dd7f7a9166_555f348ae8-r0/recipe-sysroot-native/usr/bin/x86_64-webos-linux/x86_64-webos-linux-g++ -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -Wdate-time --sysroot=/OE/build/luneos-honister/webos-ports/tmp-glibc/work/core2-64-webos-linux/qtwebengine/5.15.4+gitAUTOINC+dd7f7a9166_555f348ae8-r0/recipe-sysroot -MMD -MF obj/third_party/breakpad/client/exception_handler.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_NSS_CERTS=1 -DUSE_OZONE=1 -DOFFICIAL_BUILD -DTOOLKIT_QT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -DCR_SYSROOT_HASH=5f64b417e1018dcf8fcc81dc2714e0f264b9b911 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -I../../../../git/src/3rdparty/chromium/third_party/breakpad -I../../../../git/src/3rdparty/chromium/third_party/breakpad/breakpad/src -I../../../../git/src/3rdparty/chromium/third_party/breakpad/breakpad/src/client -I../../../../git/
125 src/3rdparty/chromium/third_party/breakpad/breakpad/src/third_party/linux/include -Igen -I../../../../git/src/3rdparty/chromium -I../../../../git/src/3rdparty/chromium/third_party/breakpad/breakpad/src -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pipe -pthread -m64 -O2 -fno-ident -fdata-sections -ffunction-sections -fno-omit-frame-pointer -g1 -fvisibility=hidden -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations -fno-delete-null-pointer-checks -Wno-comments -Wno-packed-not-aligned -Wno-dangling-else -Wno-missing-field-initializers -Wno-unused-parameter -std=gnu++14 -fno-exceptions -fno-rtti --sysroot=../../../../recipe-sysroot -fvisibility-inlines-hidden -Wno-narrowing -Wno-class-memaccess -Wno-attributes -Wno-class-memaccess -Wno-subobject-linkage -Wno-invalid-offsetof -Wno-return-type -Wno-deprecated-copy -c ../../../../git/src/3rdparty/chromium/third_party/breakpad/breakpad
126 /src/client/linux/handler/exception_handler.cc -o obj/third_party/breakpad/client/exception_handler.o
127 -../../../../git/src/3rdparty/chromium/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc: In function 'void google_breakpad::{anonymous}::InstallAlternateStackLocked()':
128 -../../../../git/src/3rdparty/chromium/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc:141:49: error: no matching function for call to 'max(int, long int)'
129 - 141 | static const unsigned kSigStackSize = std::max(16384, SIGSTKSZ);
130 - | ~~~~~~~~^~~~~~~~~~~~~~~~~
131 -In file included from ../../../../recipe-sysroot/usr/include/c++/11.2.0/bits/char_traits.h:39,
132 - from ../../../../recipe-sysroot/usr/include/c++/11.2.0/string:40,
133 - from ../../../../git/src/3rdparty/chromium/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h:38,
134 - from ../../../../git/src/3rdparty/chromium/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc:66:
135 -../../../../recipe-sysroot/usr/include/c++/11.2.0/bits/stl_algobase.h:254:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
136 - 254 | max(const _Tp& __a, const _Tp& __b)
137 - | ^~~
138 -../../../../recipe-sysroot/usr/include/c++/11.2.0/bits/stl_algobase.h:254:5: note: template argument deduction/substitution failed:
139 -../../../../git/src/3rdparty/chromium/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc:141:49: note: deduced conflicting types for parameter 'const _Tp' ('int' and 'long int')
140 - 141 | static const unsigned kSigStackSize = std::max(16384, SIGSTKSZ);
141 - | ~~~~~~~~^~~~~~~~~~~~~~~~~
142 -In file included from ../../../../recipe-sysroot/usr/include/c++/11.2.0/bits/char_traits.h:39,
143 - from ../../../../recipe-sysroot/usr/include/c++/11.2.0/string:40,
144 - from ../../../../git/src/3rdparty/chromium/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h:38,
145 - from ../../../../git/src/3rdparty/chromium/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc:66:
146 -../../../../recipe-sysroot/usr/include/c++/11.2.0/bits/stl_algobase.h:300:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
147 - 300 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
148 - | ^~~
149 -../../../../recipe-sysroot/usr/include/c++/11.2.0/bits/stl_algobase.h:300:5: note: template argument deduction/substitution failed:
150 -../../../../git/src/3rdparty/chromium/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc:141:49: note: deduced conflicting types for parameter 'const _Tp' ('int' and 'long int')
151 - 141 | static const unsigned kSigStackSize = std::max(16384, SIGSTKSZ);
152 - | ~~~~~~~~^~~~~~~~~~~~~~~~~
153 -In file included from ../../../../recipe-sysroot/usr/include/c++/11.2.0/algorithm:62,
154 - from ../../../../git/src/3rdparty/chromium/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc:85:
155 -../../../../recipe-sysroot/usr/include/c++/11.2.0/bits/stl_algo.h:3461:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(std::initializer_list<_Tp>)'
156 - 3461 | max(initializer_list<_Tp> __l)
157 - | ^~~
158 -../../../../recipe-sysroot/usr/include/c++/11.2.0/bits/stl_algo.h:3461:5: note: template argument deduction/substitution failed:
159 -../../../../git/src/3rdparty/chromium/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc:141:49: note: mismatched types 'std::initializer_list<_Tp>' and 'int'
160 - 141 | static const unsigned kSigStackSize = std::max(16384, SIGSTKSZ);
161 - | ~~~~~~~~^~~~~~~~~~~~~~~~~
162 -In file included from ../../../../recipe-sysroot/usr/include/c++/11.2.0/algorithm:62,
163 - from ../../../../git/src/3rdparty/chromium/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc:85:
164 -../../../../recipe-sysroot/usr/include/c++/11.2.0/bits/stl_algo.h:3467:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(std::initializer_list<_Tp>, _Compare)'
165 - 3467 | max(initializer_list<_Tp> __l, _Compare __comp)
166 - | ^~~
167 -../../../../recipe-sysroot/usr/include/c++/11.2.0/bits/stl_algo.h:3467:5: note: template argument deduction/substitution failed:
168 -../../../../git/src/3rdparty/chromium/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc:141:49: note: mismatched types 'std::initializer_list<_Tp>' and 'int'
169 - 141 | static const unsigned kSigStackSize = std::max(16384, SIGSTKSZ);
170 - | ~~~~~~~~^~~~~~~~~~~~~~~~~
171 -
172 -Signed-off-by: Martin Jansa <Martin.Jansa@×××××.com>
173 ----
174 - .../breakpad/src/client/linux/handler/exception_handler.cc | 2 +-
175 - 1 file changed, 1 insertion(+), 1 deletion(-)
176 -
177 -diff --git a/chromium/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc b/chromium/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc
178 -index ca353c40997..2e43ba6fc04 100644
179 ---- a/src/3rdparty/chromium/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc
180 -+++ b/src/3rdparty/chromium/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc
181 -@@ -138,7 +138,7 @@ void InstallAlternateStackLocked() {
182 - // SIGSTKSZ may be too small to prevent the signal handlers from overrunning
183 - // the alternative stack. Ensure that the size of the alternative stack is
184 - // large enough.
185 -- static const unsigned kSigStackSize = std::max(16384, SIGSTKSZ);
186 -+ static const unsigned kSigStackSize = std::max<size_t>(16384, SIGSTKSZ);
187 -
188 - // Only set an alternative stack if there isn't already one, or if the current
189 - // one is too small.
190
191 diff --git a/dev-qt/qtwebengine/qtwebengine-5.15.2_p20211019.ebuild b/dev-qt/qtwebengine/qtwebengine-5.15.2_p20211019.ebuild
192 deleted file mode 100644
193 index 1f1725cb3e32..000000000000
194 --- a/dev-qt/qtwebengine/qtwebengine-5.15.2_p20211019.ebuild
195 +++ /dev/null
196 @@ -1,229 +0,0 @@
197 -# Copyright 1999-2021 Gentoo Authors
198 -# Distributed under the terms of the GNU General Public License v2
199 -
200 -EAPI=8
201 -
202 -PYTHON_COMPAT=( python2_7 )
203 -PYTHON_REQ_USE="xml(+)"
204 -inherit estack flag-o-matic multiprocessing python-any-r1 qt5-build
205 -
206 -DESCRIPTION="Library for rendering dynamic web content in Qt5 C++ and QML applications"
207 -HOMEPAGE="https://www.qt.io/"
208 -
209 -if [[ ${QT5_BUILD_TYPE} == release ]]; then
210 - KEYWORDS="amd64 ~arm arm64 ~ppc64 x86"
211 - if [[ ${PV} == ${QT5_PV}_p* ]]; then
212 - SRC_URI="https://dev.gentoo.org/~asturm/distfiles/${P}.tar.xz"
213 - SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${PN}-5.15.2_p20211019-jumbo-build.patch.bz2"
214 - S="${WORKDIR}/${P}"
215 - QT5_BUILD_DIR="${S}_build"
216 - fi
217 -else
218 - EGIT_BRANCH="5.15"
219 - EGIT_REPO_URI=(
220 - "https://code.qt.io/qt/${QT5_MODULE}.git"
221 - "https://github.com/qt/${QT5_MODULE}.git"
222 - )
223 - inherit git-r3
224 -fi
225 -
226 -# patchset based on https://github.com/chromium-ppc64le releases
227 -SRC_URI+=" ppc64? ( https://dev.gentoo.org/~gyakovlev/distfiles/${PN}-5.15.2-r1-chromium87-ppc64le.tar.xz )"
228 -
229 -IUSE="alsa bindist designer geolocation +jumbo-build kerberos pulseaudio +system-ffmpeg +system-icu widgets"
230 -REQUIRED_USE="designer? ( widgets )"
231 -
232 -RDEPEND="
233 - app-arch/snappy:=
234 - dev-libs/glib:2
235 - dev-libs/nspr
236 - dev-libs/nss
237 - dev-libs/expat
238 - dev-libs/libevent:=
239 - dev-libs/libxml2[icu]
240 - dev-libs/libxslt
241 - dev-libs/re2:=
242 - =dev-qt/qtcore-${QT5_PV}*
243 - =dev-qt/qtdeclarative-${QT5_PV}*
244 - =dev-qt/qtgui-${QT5_PV}*
245 - =dev-qt/qtnetwork-${QT5_PV}*
246 - =dev-qt/qtprintsupport-${QT5_PV}*
247 - =dev-qt/qtwebchannel-${QT5_PV}*[qml]
248 - media-libs/fontconfig
249 - media-libs/freetype
250 - media-libs/harfbuzz:=
251 - media-libs/lcms:2
252 - media-libs/libjpeg-turbo:=
253 - media-libs/libpng:0=
254 - >=media-libs/libvpx-1.5:=[svc(+)]
255 - media-libs/libwebp:=
256 - media-libs/opus
257 - sys-apps/dbus
258 - sys-apps/pciutils
259 - sys-libs/zlib[minizip]
260 - virtual/libudev
261 - x11-libs/libdrm
262 - x11-libs/libX11
263 - x11-libs/libXcomposite
264 - x11-libs/libXcursor
265 - x11-libs/libXdamage
266 - x11-libs/libXext
267 - x11-libs/libXfixes
268 - x11-libs/libXi
269 - x11-libs/libxkbfile
270 - x11-libs/libXrandr
271 - x11-libs/libXrender
272 - x11-libs/libXScrnSaver
273 - x11-libs/libXtst
274 - alsa? ( media-libs/alsa-lib )
275 - designer? ( =dev-qt/designer-${QT5_PV}* )
276 - geolocation? ( =dev-qt/qtpositioning-${QT5_PV}* )
277 - kerberos? ( virtual/krb5 )
278 - pulseaudio? ( media-sound/pulseaudio:= )
279 - system-ffmpeg? ( media-video/ffmpeg:0= )
280 - system-icu? ( >=dev-libs/icu-69.1:= )
281 - widgets? (
282 - =dev-qt/qtdeclarative-${QT5_PV}*[widgets]
283 - =dev-qt/qtwidgets-${QT5_PV}*
284 - )
285 -"
286 -DEPEND="${RDEPEND}
287 - media-libs/libglvnd
288 -"
289 -BDEPEND="${PYTHON_DEPS}
290 - dev-util/gperf
291 - dev-util/ninja
292 - dev-util/re2c
293 - net-libs/nodejs[ssl]
294 - sys-devel/bison
295 - sys-devel/flex
296 - ppc64? ( >=dev-util/gn-0.1807 )
297 -"
298 -
299 -PATCHES=(
300 - "${FILESDIR}/${PN}-5.15.2-disable-fatal-warnings.patch" # downstream, bug 695446
301 - "${FILESDIR}/${PN}-5.15.2-extra_gn.patch" # downstream, bug 774186
302 - "${FILESDIR}/${PN}-5.15.2_p20210224-chromium-87-v8-icu68.patch" # downstream, bug 757606
303 - "${FILESDIR}/${PN}-5.15.2_p20210224-disable-git.patch" # downstream snapshot fix
304 - "${FILESDIR}/${PN}-5.15.2_p20211015-pdfium-system-lcms2.patch" # by Debian, QTBUG-61746
305 - "${FILESDIR}/${PN}-5.15.2_p20210824-abseil-cpp-glibc-2.34.patch" # bug 811312
306 - "${FILESDIR}/${PN}-5.15.2_p20210824-breakpad-glibc-2.34.patch" # bug 811312
307 - "${WORKDIR}/${PN}-5.15.2_p20211019-jumbo-build.patch" # bug 813957
308 -)
309 -
310 -pkg_preinst() {
311 - elog "This version of Qt WebEngine is based on Chromium version 87.0.4280, with"
312 - elog "additional security fixes from newer versions. Extensive as it is, the"
313 - elog "list of backports is impossible to evaluate, but always bound to be behind"
314 - elog "Chromium's release schedule."
315 - elog "In addition, various online services may deny service based on an outdated"
316 - elog "user agent version (and/or other checks). Google is already known to do so."
317 - elog
318 - elog "tldr: Your web browsing experience will be compromised."
319 -}
320 -
321 -src_unpack() {
322 - # bug 307861
323 - eshopts_push -s extglob
324 - if is-flagq '-g?(gdb)?([1-9])'; then
325 - ewarn
326 - ewarn "You have enabled debug info (probably have -g or -ggdb in your CFLAGS/CXXFLAGS)."
327 - ewarn "You may experience really long compilation times and/or increased memory usage."
328 - ewarn "If compilation fails, please try removing -g/-ggdb before reporting a bug."
329 - ewarn
330 - fi
331 - eshopts_pop
332 -
333 - case ${QT5_BUILD_TYPE} in
334 - live) git-r3_src_unpack ;&
335 - release) default ;;
336 - esac
337 -}
338 -
339 -src_prepare() {
340 - if [[ ${PV} == ${QT5_PV}_p* ]]; then
341 - # This is made from git, and for some reason will fail w/o .git directories.
342 - mkdir -p .git src/3rdparty/chromium/.git || die
343 - fi
344 - # We need to make sure this integrates well into Qt 5.15.2 installation.
345 - # Otherwise revdeps fail w/o heavy changes. This is the simplest way to do it.
346 - # See also: https://www.qt.io/blog/building-qt-webengine-against-other-qt-versions
347 - sed -e "/^MODULE_VERSION/s/5\.15\.[3456789]/${QT5_PV}/" -i .qmake.conf || die
348 -
349 - # QTBUG-88657 - jumbo-build could still make trouble
350 - if ! use jumbo-build; then
351 - sed -i -e 's|use_jumbo_build=true|use_jumbo_build=false|' \
352 - src/buildtools/config/common.pri || die
353 - fi
354 -
355 - # bug 620444 - ensure local headers are used
356 - find "${S}" -type f -name "*.pr[fio]" | \
357 - xargs sed -i -e 's|INCLUDEPATH += |&$${QTWEBENGINE_ROOT}_build/include $${QTWEBENGINE_ROOT}/include |' || die
358 -
359 - if use system-icu; then
360 - # Sanity check to ensure that bundled copy of ICU is not used.
361 - # Whole src/3rdparty/chromium/third_party/icu directory cannot be deleted because
362 - # src/3rdparty/chromium/third_party/icu/BUILD.gn is used by build system.
363 - # If usage of headers of bundled copy of ICU occurs, then lists of shim headers in
364 - # shim_headers("icui18n_shim") and shim_headers("icuuc_shim") in
365 - # src/3rdparty/chromium/third_party/icu/BUILD.gn should be updated.
366 - local file
367 - while read file; do
368 - echo "#error This file should not be used!" > "${file}" || die
369 - done < <(find src/3rdparty/chromium/third_party/icu -type f "(" -name "*.c" -o -name "*.cpp" -o -name "*.h" ")" 2>/dev/null)
370 - fi
371 -
372 - qt_use_disable_config alsa webengine-alsa src/buildtools/config/linux.pri
373 - qt_use_disable_config pulseaudio webengine-pulseaudio src/buildtools/config/linux.pri
374 -
375 - qt_use_disable_mod designer webenginewidgets src/plugins/plugins.pro
376 -
377 - qt_use_disable_mod widgets widgets src/src.pro
378 -
379 - qt5-build_src_prepare
380 -
381 - # we need to generate ppc64 stuff because upstream does not ship it yet
382 - if use ppc64; then
383 - einfo "Patching for ppc64le and generating build files"
384 - eapply "${FILESDIR}/qtwebengine-5.15.2-enable-ppc64.patch"
385 - pushd src/3rdparty/chromium > /dev/null || die
386 - eapply -p0 "${WORKDIR}/${PN}-ppc64le"
387 - popd > /dev/null || die
388 - pushd src/3rdparty/chromium/third_party/libvpx > /dev/null || die
389 - mkdir -vp source/config/linux/ppc64 || die
390 - mkdir -p source/libvpx/test || die
391 - touch source/libvpx/test/test.mk || die
392 - ./generate_gni.sh || die
393 - popd >/dev/null || die
394 - fi
395 -}
396 -
397 -src_configure() {
398 - export NINJA_PATH=/usr/bin/ninja
399 - export NINJAFLAGS="${NINJAFLAGS:--j$(makeopts_jobs) -l$(makeopts_loadavg "${MAKEOPTS}" 0) -v}"
400 -
401 - local myqmakeargs=(
402 - --
403 - -no-build-qtpdf
404 - -printing-and-pdf
405 - -system-opus
406 - -system-webp
407 - $(qt_use alsa)
408 - $(qt_use !bindist proprietary-codecs)
409 - $(qt_use geolocation webengine-geolocation)
410 - $(qt_use kerberos webengine-kerberos)
411 - $(qt_use pulseaudio)
412 - $(usex system-ffmpeg -system-ffmpeg -qt-ffmpeg)
413 - $(qt_use system-icu webengine-icu)
414 - )
415 - qt5-build_src_configure
416 -}
417 -
418 -src_install() {
419 - qt5-build_src_install
420 -
421 - # bug 601472
422 - if [[ ! -f ${D}${QT5_LIBDIR}/libQt5WebEngine.so ]]; then
423 - die "${CATEGORY}/${PF} failed to build anything. Please report to https://bugs.gentoo.org/"
424 - fi
425 -}