Gentoo Archives: gentoo-commits

From: Stephan Hartmann <sultan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-client/chromium/files/, www-client/chromium/
Date: Mon, 26 Jul 2021 21:17:19
Message-Id: 1627334228.0c8827bdd3d8723d0d84d79787e6c9f241306385.sultan@gentoo
1 commit: 0c8827bdd3d8723d0d84d79787e6c9f241306385
2 Author: Stephan Hartmann <sultan <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jul 26 21:16:01 2021 +0000
4 Commit: Stephan Hartmann <sultan <AT> gentoo <DOT> org>
5 CommitDate: Mon Jul 26 21:17:08 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c8827bd
7
8 www-client/chromium: dev channel bump to 93.0.4577.8
9
10 Bug: https://bugs.gentoo.org/803260
11 Bug: https://bugs.gentoo.org/769989
12 Package-Manager: Portage-3.0.20, Repoman-3.0.2
13 Signed-off-by: Stephan Hartmann <sultan <AT> gentoo.org>
14
15 www-client/chromium/Manifest | 4 +-
16 ...0.4557.4.ebuild => chromium-93.0.4577.8.ebuild} | 21 ++----
17 .../files/chromium-93-EnumTable-crash.patch | 79 ++++++++++++++++++++++
18 3 files changed, 88 insertions(+), 16 deletions(-)
19
20 diff --git a/www-client/chromium/Manifest b/www-client/chromium/Manifest
21 index a238f1b3018..17bdadfd498 100644
22 --- a/www-client/chromium/Manifest
23 +++ b/www-client/chromium/Manifest
24 @@ -5,7 +5,7 @@ DIST chromium-92-glibc-2.33-patch.tar.xz 12636 BLAKE2B 0621d2135c1a0864374010c36
25 DIST chromium-92-patchset-7.tar.xz 4004 BLAKE2B 8587663a072eb08abacbc2e54924855f29efefdbec46acf5cb8b0cc40b816b96ba7694c4ab1abe997572a6dbecf94ea27f368a7337263adfff44f2b4b042d862 SHA512 65c8267ab0921719c71d4b03a4315bbb1ceec35ce4794de9dcc6099b2c349baf4782b67316ebb8c9db233630b7fc89fa0baf719f9f0f41eb39972cdeb437e612
26 DIST chromium-92-ppc64le-1.tar.xz 30416 BLAKE2B e953e3ba1ac0ff4bae437328eb1c52fb3863007ff92db91c6858c8c5f7b4c5c39fb8bf6898c3385c7faa82666f1a18aae7fcb5379b9199e58c5c0526fbd9dbee SHA512 b5a20076a34705c53c56d7763189ebfd860a456ca544a7f0c9ce30c877be92270ea724f1bebb9b597b301def27dde0a672b0c30e16e6abbf958cecfd60b07ec5
27 DIST chromium-92.0.4515.107.tar.xz 957809240 BLAKE2B 61f34c6de424dbc0bed4a3f6ede42c936389e3280ffccc6db8750674fc512257120fad4006bf5e31701cfebf9cd12df96bb2936296293312317dee85748bf773 SHA512 8814a3371e38836cee02178fa06bee612d00efe561791278351ef5312f5225742d416043fe6e25e9e353ae3d82dbd5ef57c9b1f115423da6537288e9aece779a
28 -DIST chromium-93-patchset-5.tar.xz 4404 BLAKE2B f347a66c5767bb03dd6a0feda433f51f5110e0429c6f55494000bd1a61a4f3b6a218e7f12ce91a02adae94ee0a85d0aceb12aef5a0537e9362f23817edb662c0 SHA512 39d3bd5ad51e33d5d82a42d5289ab137bdb3280e4d2d647fce86eb59d14a01e9f31531cf82ba9055168c18d1fb96e3013e2d40dc89b30c725c89241d34b7b25d
29 -DIST chromium-93.0.4557.4.tar.xz 1034639148 BLAKE2B d515e5be84f63bd21e757750963188390bc1b888aeb50a1b7767805784e6efce1c89f058fe5bcdf73a8790677a2b76cd3f01cc6df1b245996924ae46e91911d6 SHA512 b5b214d639becdfdb4a6bd2ee04c9556ee4eca0e436ed6580c8e6d9e5a37476ae1fa208eef741aa8d8535f30f1e751041aaf02fff57dbd685341d7b5866a81cc
30 +DIST chromium-93-patchset-6.tar.xz 6796 BLAKE2B 2688c68becac1187668b459f9827ffca79de6c7ee64299dff20f91cb774af676ec3d95d809b4fc5f7bd663c3b8c904a46ac9cd3ec70a5ce248456dcd48834932 SHA512 eaf0d2bc29c53c7021ccded9c14463bbde2887926c069154c0126ee1bf513bf41a38eeb3dc21023a2e9637ce3e1e541a3b2a79a990bb8becae0da0a04e57c76a
31 +DIST chromium-93.0.4577.8.tar.xz 1041484708 BLAKE2B 7978b7771c9e964efc28e691fc16e7b0679372ef86d7477327f40e8f7682638606e88711cce438f12616011e1e3bc4ad2d0b9be741a409cc8001a78f0632c0a7 SHA512 8940dee8186244bca134b83a452a7d2668d2a382ef32034cf4b7e8c781d709c679418e4fc97f744f14d10f8bdf0d9104eaadbd32efd0dce43d600b4cf5b933e4
32 DIST highway-0.12.1.tar.gz 1480579 BLAKE2B 2889f96e33ae4411b14dae2229d86b0581f2044f50d6bb829a83417f0d67f0c9a8c03d552d09a985231ea11e88497fa405efcb85d158b5734b477bec5764a1eb SHA512 d14aeffc80739a5993177fb190ac03998d495004e9c54126c0e0b174c28be52a3f3fe581d8a08db67c34bd00045223d1850e7b384a2e7fe37a8150d7908004cb
33 DIST setuptools-44.1.0.zip 858569 BLAKE2B f59f154e121502a731e51294ccd293d60ffccadacf51e23b53bf7ceba38858948b86783238061136c827ac3373ea7ea8e6253d4bb53f3f1dd69284568ec65a68 SHA512 4dfb0f42d334b835758e865a26ecd1e725711fa2b9c38ddc273b8b3849fba04527bc97436d11ba1e98f1a42922aa0f0b9032e32998273c705fac6e10735eacbf
34
35 diff --git a/www-client/chromium/chromium-93.0.4557.4.ebuild b/www-client/chromium/chromium-93.0.4577.8.ebuild
36 similarity index 98%
37 rename from www-client/chromium/chromium-93.0.4557.4.ebuild
38 rename to www-client/chromium/chromium-93.0.4577.8.ebuild
39 index 206632b872e..8bcd0f7a812 100644
40 --- a/www-client/chromium/chromium-93.0.4557.4.ebuild
41 +++ b/www-client/chromium/chromium-93.0.4577.8.ebuild
42 @@ -13,10 +13,11 @@ inherit check-reqs chromium-2 desktop flag-o-matic multilib ninja-utils pax-util
43
44 DESCRIPTION="Open-source version of Google Chrome web browser"
45 HOMEPAGE="https://chromium.org/"
46 -PATCHSET="5"
47 +PATCHSET="6"
48 PATCHSET_NAME="chromium-$(ver_cut 1)-patchset-${PATCHSET}"
49 SRC_URI="https://commondatastorage.googleapis.com/chromium-browser-official/${P}.tar.xz
50 https://github.com/stha09/chromium-patches/releases/download/${PATCHSET_NAME}/${PATCHSET_NAME}.tar.xz
51 + https://dev.gentoo.org/~sultan/distfiles/www-client/${PN}/${PN}-92-glibc-2.33-patch.tar.xz
52 arm64? ( https://github.com/google/highway/archive/refs/tags/0.12.1.tar.gz -> highway-0.12.1.tar.gz )"
53
54 LICENSE="BSD"
55 @@ -55,7 +56,7 @@ COMMON_DEPEND="
56 >=dev-libs/nss-3.26:=
57 >=media-libs/alsa-lib-1.0.19:=
58 media-libs/fontconfig:=
59 - media-libs/freetype:=
60 + >=media-libs/freetype-2.11.0:=
61 >=media-libs/harfbuzz-2.4.0:0=[icu(-)]
62 media-libs/libjpeg-turbo:=
63 media-libs/libpng:=
64 @@ -232,22 +233,14 @@ src_prepare() {
65
66 local PATCHES=(
67 "${WORKDIR}/patches"
68 - "${FILESDIR}/chromium-92-EnumTable-crash.patch"
69 + "${WORKDIR}/sandbox-patches/chromium-syscall_broker.patch"
70 + "${WORKDIR}/sandbox-patches/chromium-fstatat-crash.patch"
71 + "${FILESDIR}/chromium-92-GetUsableSize-nullptr.patch"
72 + "${FILESDIR}/chromium-93-EnumTable-crash.patch"
73 "${FILESDIR}/chromium-93-InkDropHost-crash.patch"
74 "${FILESDIR}/chromium-shim_headers.patch"
75 )
76
77 - # seccomp sandbox is broken if compiled against >=sys-libs/glibc-2.33, bug #769989
78 - if has_version -d ">=sys-libs/glibc-2.33"; then
79 - ewarn "Adding experimental glibc-2.33 sandbox patch. Seccomp sandbox might"
80 - ewarn "still not work correctly. In case of issues, try to disable seccomp"
81 - ewarn "sandbox by adding --disable-seccomp-filter-sandbox to CHROMIUM_FLAGS"
82 - ewarn "in /etc/chromium/default."
83 - PATCHES+=(
84 - "${FILESDIR}/chromium-glibc-2.33.patch"
85 - )
86 - fi
87 -
88 default
89
90 mkdir -p third_party/node/linux/node-linux-x64/bin || die
91
92 diff --git a/www-client/chromium/files/chromium-93-EnumTable-crash.patch b/www-client/chromium/files/chromium-93-EnumTable-crash.patch
93 new file mode 100644
94 index 00000000000..a5c2defa0ae
95 --- /dev/null
96 +++ b/www-client/chromium/files/chromium-93-EnumTable-crash.patch
97 @@ -0,0 +1,79 @@
98 +diff --git a/components/cast_channel/enum_table.h b/components/cast_channel/enum_table.h
99 +index a63ae86..83ada65 100644
100 +--- a/components/cast_channel/enum_table.h
101 ++++ b/components/cast_channel/enum_table.h
102 +@@ -8,6 +8,7 @@
103 + #include <cstdint>
104 + #include <cstring>
105 + #include <ostream>
106 ++#include <vector>
107 +
108 + #include "base/check_op.h"
109 + #include "base/macros.h"
110 +@@ -213,7 +214,7 @@ class
111 +
112 + template <typename E>
113 + friend class EnumTable;
114 +- DISALLOW_COPY_AND_ASSIGN(GenericEnumTableEntry);
115 ++ DISALLOW_ASSIGN(GenericEnumTableEntry);
116 + };
117 +
118 + // Yes, these constructors really needs to be inlined. Even though they look
119 +@@ -251,8 +252,7 @@ class EnumTable {
120 + // Constructor for regular entries.
121 + constexpr Entry(E value, base::StringPiece str)
122 + : GenericEnumTableEntry(static_cast<int32_t>(value), str) {}
123 +-
124 +- DISALLOW_COPY_AND_ASSIGN(Entry);
125 ++ DISALLOW_ASSIGN(Entry);
126 + };
127 +
128 + static_assert(sizeof(E) <= sizeof(int32_t),
129 +@@ -307,15 +307,14 @@ class EnumTable {
130 + if (is_sorted_) {
131 + const std::size_t index = static_cast<std::size_t>(value);
132 + if (ANALYZER_ASSUME_TRUE(index < data_.size())) {
133 +- const auto& entry = data_.begin()[index];
134 ++ const auto& entry = data_[index];
135 + if (ANALYZER_ASSUME_TRUE(entry.has_str()))
136 + return entry.str();
137 + }
138 + return absl::nullopt;
139 + }
140 + return GenericEnumTableEntry::FindByValue(
141 +- reinterpret_cast<const GenericEnumTableEntry*>(data_.begin()),
142 +- data_.size(), static_cast<int32_t>(value));
143 ++ &data_[0], data_.size(), static_cast<int32_t>(value));
144 + }
145 +
146 + // This overload of GetString is designed for cases where the argument is a
147 +@@ -343,8 +342,7 @@ class EnumTable {
148 + // enum value directly.
149 + absl::optional<E> GetEnum(base::StringPiece str) const {
150 + auto* entry = GenericEnumTableEntry::FindByString(
151 +- reinterpret_cast<const GenericEnumTableEntry*>(data_.begin()),
152 +- data_.size(), str);
153 ++ &data_[0], data_.size(), str);
154 + return entry ? static_cast<E>(entry->value) : absl::optional<E>();
155 + }
156 +
157 +@@ -359,7 +357,7 @@ class EnumTable {
158 + // Align the data on a cache line boundary.
159 + alignas(64)
160 + #endif
161 +- std::initializer_list<Entry> data_;
162 ++ const std::vector<Entry> data_;
163 + bool is_sorted_;
164 +
165 + constexpr EnumTable(std::initializer_list<Entry> data, bool is_sorted)
166 +@@ -371,8 +369,8 @@ class EnumTable {
167 +
168 + for (std::size_t i = 0; i < data.size(); i++) {
169 + for (std::size_t j = i + 1; j < data.size(); j++) {
170 +- const Entry& ei = data.begin()[i];
171 +- const Entry& ej = data.begin()[j];
172 ++ const Entry& ei = data[i];
173 ++ const Entry& ej = data[j];
174 + DCHECK(ei.value != ej.value)
175 + << "Found duplicate enum values at indices " << i << " and " << j;
176 + DCHECK(!(ei.has_str() && ej.has_str() && ei.str() == ej.str()))