diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-09-25 20:21:45 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-09-25 20:21:45 +0100 |
commit | c719fdcee603a5a706a45d10cb598762d56a727d (patch) | |
tree | 620cbf137661399a3fb1eff92914204f9a970713 /www-client/chromium | |
parent | cc4618c9ba3d974948ebf340b542d8cb01db2f55 (diff) |
gentoo resync : 25.09.2021
Diffstat (limited to 'www-client/chromium')
-rw-r--r-- | www-client/chromium/Manifest | 22 | ||||
-rw-r--r-- | www-client/chromium/chromium-94.0.4606.61.ebuild (renamed from www-client/chromium/chromium-94.0.4606.50.ebuild) | 14 | ||||
-rw-r--r-- | www-client/chromium/chromium-95.0.4638.17.ebuild (renamed from www-client/chromium/chromium-93.0.4577.82.ebuild) | 70 | ||||
-rw-r--r-- | www-client/chromium/chromium-96.0.4651.0.ebuild (renamed from www-client/chromium/chromium-95.0.4636.4.ebuild) | 18 | ||||
-rw-r--r-- | www-client/chromium/files/chromium-93-fix-build-with-system-ffmpeg.patch | 85 | ||||
-rw-r--r-- | www-client/chromium/files/chromium-95-maldoca-zlib.patch | 13 | ||||
-rw-r--r-- | www-client/chromium/metadata.xml | 1 |
7 files changed, 81 insertions, 142 deletions
diff --git a/www-client/chromium/Manifest b/www-client/chromium/Manifest index c6275a6e6f5f..57b0ab45a02e 100644 --- a/www-client/chromium/Manifest +++ b/www-client/chromium/Manifest @@ -1,21 +1,19 @@ AUX chromium-93-EnumTable-crash.patch 2863 BLAKE2B 72025b6fb1b8a2c3bb6d54ca9063c0cca8b8dda1344813abf55d361d197b28ccfffcc9d0bab7ef685752a8f9a4848f13b1de61e676b1d4386ea59b5cc137b68c SHA512 8a56fefbf99f9bb0262251685fa47166b27786f283ee3b84664a3b054da160647d7e359bbd051b6516c92472e5b19e55b1ff23b0021877712a78c8fc2d81963e AUX chromium-93-InkDropHost-crash.patch 1134 BLAKE2B 1593c406c48b629ea3170a518cf86e936af36c554bc97a380324ab6fc930e49a359dc3ef6787ab08314a6a8f5da85714b0fa9d8589d6a46b1d06cbbd7e401f22 SHA512 474d7f55505e1275238d71d1723d74a66fc9f27a16ed293aa80ffefbe5500cd65a0bf13ec76a9bca0334a245f22120099fb367d12b93adc14500104d11cd3bff -AUX chromium-93-fix-build-with-system-ffmpeg.patch 3145 BLAKE2B ddaf6786f202634bee2d2e8ffbe02b665eb84f4b9ac468d7fc1051e3eacc31afb629877869c7313bd82075ba22e9a5a58e11c53cc0f4bd694b4779db4a340c31 SHA512 f01a112ec4e132502284c22364d3204973f69b0447e94af6dadb626409fab142486440a0bad18246e46161e80dcc0440b070258685c10f44786fbf6625b8d7cd +AUX chromium-95-maldoca-zlib.patch 445 BLAKE2B 2793d344ff3083cfadc572bd1ce6932643cf00f11d1cd596f8aaff68363a12a79c4b42a389b1a1843fbe6d760de8960cafc5d3b2f7769f4ea04ff4ef74703839 SHA512 962834cdc6a32be31d61ac526067c7e73fe322c3e3cb72c234735e08d6cd15830ed461493c41febe35d40de60120fa85d2da7b3a62dafbe180b1e213e3d8940c AUX chromium-browser.xml 407 BLAKE2B 168d78b0855546ca559cfb51aff0bc85d5e6ae974c25eb76e4a02f6d11659489c6e40397a0b2f7bc1fda336fd2c6dd8c863fccc3340719210b41c7fef51927f4 SHA512 b767fb4fd1925029d95560fc14cb7ab12ae43b2fe923e92d75e733b9723cbe1dcdf6df041a2b62554e98b79b47ef3f6028c773e72e6fd53166a021d49657aeca AUX chromium-launcher-r6.sh 1593 BLAKE2B a871bd572239552390b216c89269dfe132474e1f57bfd0429f605af8285634659725c550b701e537f56adf20cba2dcb27dd9dadd390366dedc147f1ee987f462 SHA512 c01cb376eae2871dfa7a488d96ac8cc3445230eeb0fbd865948c5b3b601820468e85f2f0b9b30fff940c736aded050b7802759b8562e6378747af93c1d4f08a3 AUX chromium-launcher-r7.sh 1631 BLAKE2B ae28d758264446511fd2b64ba69fe920144b351e8833e0e98f43d00633e850094c288b5d97d1a84801ea13aceb294623692c86c1b9be5811b7b97fa8a07a1ecd SHA512 1e97f8394bd8bb4b29570b1b85176efe6258314a596f079bee1c4018113e0023aa54a93690ba8de2a00d127af10dbe2cc3fb3127b72b841c6f28f9e7bed820e0 AUX chromium-shim_headers.patch 1510 BLAKE2B 9716cd250b249c6255aca01a385ef8a2a6f1df9ea3cf7499715543c14f8be62fd323b6048b890aa2be45891e7a765d92de3f41c3b3a88c08dae4b806c048e20f SHA512 c74bcf690a41b4f9b364477d23408d493aa674e3bd014940098a594471297c2a425241f908510061b5f11c9cfe009c4a803370edd757d3c0ab8d9c0cc128135c AUX chromium-use-oauth2-client-switches-as-default.patch 1085 BLAKE2B baf3c463305934c126af4f7c5be305863edc7eec3add5b5ada30565b49b5944021eb40f1a9643e7eec3f973c502d9b02426f00b760570fcea5f1509219e41c6f SHA512 fe2878ee45778bac894ea17a668511d27ad2ca40988d5f11439790b700bfefd6560f3931415b4e6c543fcbbfc7cfef55cc757ed4ace1d111039ae78c46b81945 AUX chromium.default 148 BLAKE2B 5ee5b582c59a6e4bef87bbb0e232e2470ad412b1fbbb3b9af6ef7153edb55c5b9080cc16a5a115b0c5b3c381aa87ce57a7b12bdd2070e67dac10a6c2995ddbaf SHA512 0d4849e03592fb58b05e62a43021eca7e61615616c8907c3b2e445402e03adaf9e8fa25b0a745d6c31eb037456215cc02b59e345a3a06d932e76cf990c92d739 -DIST chromium-92-glibc-2.33-patch.tar.xz 12636 BLAKE2B 0621d2135c1a0864374010c36959deda7b612d448e28780bfe8968fcd45363c091a84413eb3c6f560e9f805a421b910f33e9cc023055e7bf7801aa374d41dc80 SHA512 6d9e999c0b18186f2db28a804f9f84f6b472cf2fac33d72a0b09ded3106f43378a6eaf52b316e0b07a3876d9074ba299a285bdf06193553ee81bdbea4bc66294 -DIST chromium-93-patchset-6.tar.xz 6796 BLAKE2B 2688c68becac1187668b459f9827ffca79de6c7ee64299dff20f91cb774af676ec3d95d809b4fc5f7bd663c3b8c904a46ac9cd3ec70a5ce248456dcd48834932 SHA512 eaf0d2bc29c53c7021ccded9c14463bbde2887926c069154c0126ee1bf513bf41a38eeb3dc21023a2e9637ce3e1e541a3b2a79a990bb8becae0da0a04e57c76a -DIST chromium-93.0.4577.82.tar.xz 1038808440 BLAKE2B ec6fd783b40b8e02bbf6cc48eb1ff0a99b059d64de16e91eeadf69bf3297d2e6d0430823d6d15a2a838c579f84c9f5f894da345009b126a84509781998d57ffc SHA512 730e4a316fee4a5be1bf95301cf25c0c1d192ceeb661f051c1d74b7083fe928f1c5fd24c744cbbda6ef39c9edc64607a2621644e153e5e3de2201b5ac60e4d64 DIST chromium-94-patchset-3.tar.xz 5052 BLAKE2B 3946b555d22792023696e85dbdb02a5fc43e39819c3a1a25c782d12771a608b068a7d11f757fa6390e7d295fe9c2b3b8085c31bd79d35edcd882a3f9f66df8dd SHA512 42f7beb412a7e691f35603625cbb316223706891f2a289301e4786ab92cfd4414d2f4a365f7637ba49a28508e18523670e59ae88512bc56afdd79d22f62f407e -DIST chromium-94.0.4606.50.tar.xz 1039765752 BLAKE2B 7bf10b9de827e96dde2d3882554f9020e0c26158a9045a3d0131ed8ef34ea241d383ec9ba161e792ce9c68fa712a4677e395a5923817d9c69d4c6c305c8fc3c6 SHA512 27128f56d4e1bab5d63dee908e60022f38693e27eb9e1d81754dc8da59dedc23897e5e962c6be125af067f181e9273a1eebd623256faba9692de667b41e85aeb -DIST chromium-95-patchset-3.tar.xz 4040 BLAKE2B 4d3b31cf667b4a6b4ef0987d990a6e8bd5c57b3a3c0a71063360d77b0834154fff398b22e13a1de40c2b56833d33c1cb3fb364e4a47861d6fff8a311ddb64911 SHA512 7fbd1b76e28e5ebccd22fbcb735c93149702ea4c1fe4096f4e37730d97336eb84253ba2aab8a6d055d0dc0d519672608229e3b9941653594427e76c6ea07a0cc -DIST chromium-95.0.4636.4.tar.xz 1212923072 BLAKE2B 3ae2700ef6f8dfab61baa1862f1f7c198fc6807ca64db04366631381db6630343b094f70faac737b440ba517fdb5bb1ae803f38a10f6303d282e1a71451ff33b SHA512 1839d66780746fd93f46d856dd42388b5fae54f297c637d1dfe4913deaa7e2b5cdedc64d7e82c7bd8779ee07d825aec620eae4b2927fb1b7120577f5935966a6 -DIST highway-0.12.1.tar.gz 1480579 BLAKE2B 2889f96e33ae4411b14dae2229d86b0581f2044f50d6bb829a83417f0d67f0c9a8c03d552d09a985231ea11e88497fa405efcb85d158b5734b477bec5764a1eb SHA512 d14aeffc80739a5993177fb190ac03998d495004e9c54126c0e0b174c28be52a3f3fe581d8a08db67c34bd00045223d1850e7b384a2e7fe37a8150d7908004cb -EBUILD chromium-93.0.4577.82.ebuild 30068 BLAKE2B 1e6a0766502aeb07dd1df85bb6aa4d9772d8d9de84dcbe27b1705b0c389e9d2f5dac061a1e3199f81923639b8d9a03706d062cc98a7cb9f4fa53fc88a89c341c SHA512 ac3f7bfce13b577e75aa0ab34ee9eb889d463f5548f85d7f46515000ebe192d61b078c2410fd6ea887c6fcbbc9339b207d009cf3e3d19f1433f53ae192d66b91 -EBUILD chromium-94.0.4606.50.ebuild 29784 BLAKE2B ed0789b90e8752c1bffa0947b351396243e2bd087662461e485f84be0653877079091583b89d066ca3c6c66697366c1ba932ccec8cbec2a8ec955b9279430023 SHA512 19cc849f062851ffb32f7a0473ca74977f59aaf62dcf0a46537692d5b05ff3eb2588e24c8db5190f438bb181d9c97c6f06de8f9fce2c611b74061142414e3981 -EBUILD chromium-95.0.4636.4.ebuild 29790 BLAKE2B 4f651892ec2854f6ad0d3bcab1dd01096c7cd0a42c23fc6659d87a76123df088c80bcc1eb686bc29d4d6f8f2f29a57e53f111b3aeb2686b4c5a908a250263b7d SHA512 c3c34135975f8738a04f32c97baf186768387cb768b4659ec96009444dada8212bb5dc7e3a9276749fcf5aafb7f97acb1f60d153bc48a90be20e2d569764b574 -MISC metadata.xml 1689 BLAKE2B 9a69ec23535a359319e55d507c122afa94cf2a9be3f869fccc98a0942a9aa59917d55892e692c13ab503a66b5c97e2eda18638f4cfff0acbc035665d4e7570a0 SHA512 17a188bfd1231153d0f5516f05e4b7fb52e42d81d9a2429e3eb2091376cbb7efb535fe40e128335ab13ab6b321d02a962ce1909cb205d60871d3bc0cef1dfa4d +DIST chromium-94.0.4606.61.tar.xz 1039880428 BLAKE2B ed6993c9f1352c58bb6f534d1bae96ed379b2114d76f4383c79211589482d12e81df74f4ca057c26c54b47ee9b6ba94012bc9ec7391f510b2820ecac0df5b031 SHA512 e33e1dfdfc2839b2c7481c4cb4482a9456a76d5e2bee066d21dbe8a01c619104191978120a1b87606722d9b9d53333ab2046df80095805b252c41036a11e3c57 +DIST chromium-95-patchset-4.tar.xz 4308 BLAKE2B e91cb78d2357af8c0dfc66e4d148c5e6ef20cf9a811bcebf411e07cc5af73f30760d889842923afb2945e57b0f67330deac3f9068b6ce7c487482a6434e5c672 SHA512 152657e13afab3caca6a9ff6c0b51203f5bc8b0a4075a4396794d7a85caddce1b26f989c7dede5fa9a54316334099d21889e6767885fbf974260a6e9bd90df9d +DIST chromium-95.0.4638.17.tar.xz 1212354740 BLAKE2B 5f4d65a3c21814cebe10134e73ec6c546beef92a5c3dbfa4798dd42141c0705cabee9f3b11a22c01422cf7e41e197ff7d249d84422728eb5411f691f7029f1ff SHA512 1e730e2855343d86d30a21e2d2cd7687b72f247e9e443c26f91aca3326bb70bacf525f23eea4b047ed441a6134774c1b0d931c601ff8125df226a1caff5989b7 +DIST chromium-96-patchset-1.tar.xz 3812 BLAKE2B 166aaf657b0e390668669d669d8e3a5efc3ab0e8fa9ffe31a376616cfaed8a17bf2afe5b4e338a3e1dcc80d58cbc6810054df36300838f11057625ab2910aaf0 SHA512 26affaf999aa2ed1ab16d8ac09b31163fa91badc03f0542f6f0022925a792029b8799ade9e152ad855d55caa909c3172f3380ab53032d0877337bd26caf30610 +DIST chromium-96.0.4651.0.tar.xz 1217921832 BLAKE2B 5fb3c214bcab050cc6e134afc50deff00458cf74862a494d3eb6095893b96c97a7574543f9a2ce95d3e14eca42e188e9672aec322f11ff7033d26a4b960c3386 SHA512 b8905dc1fad0323b9979a360f92a1daa2f7dff3f8d131564fd86ab2d497e9141875d0fc5d4fad20628972f76979720887856181b9d0c2837ee782446b71c4149 +EBUILD chromium-94.0.4606.61.ebuild 29944 BLAKE2B 0dc7ec42cb346c388bc8efe476a37109e8537ddc9fc96b5225066327d5416b9180c8d1c9762dfc848bb634e36633681668f42b589a0bbdb5fccd155b45a56f23 SHA512 0a39fed46c21f2d9d48a2e22765e2541b9a0108c65ead271774e674de70195063da6f64a6613d2a909793d933a6ecf976ac6b0253a09e7bf585e908325e66ff2 +EBUILD chromium-95.0.4638.17.ebuild 30127 BLAKE2B e94711146d28ce2c69a2705f98ef4d9dcccf85a3de733b9bc03acb56fe2721237883975c8bca78aa56e9adbed92fadf3cb1f68dab5963ad7abc3f644ce88b446 SHA512 deeab5582fe4be3c7a209c0ea13841b97f921745a5959fa90d46c8a496f6178f7757a1adb5d39d6f21ddf7722badb0c5a6c69ccd849d69da6cd7de2d6c40d131 +EBUILD chromium-96.0.4651.0.ebuild 30051 BLAKE2B c6f48f035e0db3c8ace8b05c1183b0b7dccf436d64f0f56edca39a9dd18716eac5c4edb270d89a5570e095731d3417024359eb12a8943bf4ad300127bb008546 SHA512 d4b8f08083aad7956f022503bcb645c94758bee2c6a24f736f7aa8a4f377adf429a2e66eb8cb19cf0c129b7c1cc838fd530f8da5d3e08eb7f584fd3cfae72336 +MISC metadata.xml 1775 BLAKE2B 2fa038c0f6ebe1d86427cdf0806400dd690e31a9ee2667ea9f4f744478a675b9da89f0f541869bfea4ae5e28af1210d67b2766474d16752322407aad401d2c37 SHA512 0f4430b96a7d4dea4f2f1707cc81b184445c0f9da1d5c35a84c7958a037c13068b1a1073edc4576d7131564fc14c2f3b41a97cb8665f45e5a18eddc428c9ed23 diff --git a/www-client/chromium/chromium-94.0.4606.50.ebuild b/www-client/chromium/chromium-94.0.4606.61.ebuild index 5b78ebe944a8..52510975416e 100644 --- a/www-client/chromium/chromium-94.0.4606.50.ebuild +++ b/www-client/chromium/chromium-94.0.4606.61.ebuild @@ -20,8 +20,8 @@ SRC_URI="https://commondatastorage.googleapis.com/chromium-browser-official/${P} LICENSE="BSD" SLOT="0" -KEYWORDS="~amd64 ~arm64 ~x86" -IUSE="component-build cups cpu_flags_arm_neon debug +hangouts headless +js-type-check kerberos official pic +proprietary-codecs pulseaudio screencast selinux +suid +system-ffmpeg +system-icu vaapi wayland widevine" +KEYWORDS="amd64 arm64 ~x86" +IUSE="component-build cups cpu_flags_arm_neon debug +hangouts headless +js-type-check kerberos official pic +proprietary-codecs pulseaudio screencast selinux +suid +system-ffmpeg +system-harfbuzz +system-icu vaapi wayland widevine" REQUIRED_USE=" component-build? ( !suid ) screencast? ( wayland ) @@ -55,7 +55,7 @@ COMMON_DEPEND=" >=media-libs/alsa-lib-1.0.19:= media-libs/fontconfig:= >=media-libs/freetype-2.11.0-r1:= - >=media-libs/harfbuzz-2.9.0:0=[icu(-)] + system-harfbuzz? ( >=media-libs/harfbuzz-2.9.0:0=[icu(-)] ) media-libs/libjpeg-turbo:= media-libs/libpng:= pulseaudio? ( media-sound/pulseaudio:= ) @@ -342,7 +342,6 @@ src_prepare() { third_party/google_input_tools/third_party/closure_library third_party/google_input_tools/third_party/closure_library/third_party/closure third_party/googletest - third_party/harfbuzz-ng/utils third_party/hunspell third_party/iccjpeg third_party/inspector_protocol @@ -484,6 +483,11 @@ src_prepare() { if ! use system-icu; then keeplibs+=( third_party/icu ) fi + if use system-harfbuzz; then + keeplibs+=( third_party/harfbuzz-ng/utils ) + else + keeplibs+=( third_party/harfbuzz-ng ) + fi if use wayland && ! use headless ; then keeplibs+=( third_party/wayland ) fi @@ -610,7 +614,7 @@ src_configure() { build/linux/unbundle/replace_gn_files.py --system-libraries "${gn_system_libraries[@]}" || die # See dependency logic in third_party/BUILD.gn - myconf_gn+=" use_system_harfbuzz=true" + myconf_gn+=" use_system_harfbuzz=$(usex system-harfbuzz true false)" # Disable deprecated libgnome-keyring dependency, bug #713012 myconf_gn+=" use_gnome_keyring=false" diff --git a/www-client/chromium/chromium-93.0.4577.82.ebuild b/www-client/chromium/chromium-95.0.4638.17.ebuild index d0757d6acb46..ec95c0b0bedc 100644 --- a/www-client/chromium/chromium-93.0.4577.82.ebuild +++ b/www-client/chromium/chromium-95.0.4638.17.ebuild @@ -13,17 +13,15 @@ inherit check-reqs chromium-2 desktop flag-o-matic multilib ninja-utils pax-util DESCRIPTION="Open-source version of Google Chrome web browser" HOMEPAGE="https://chromium.org/" -PATCHSET="6" +PATCHSET="4" PATCHSET_NAME="chromium-$(ver_cut 1)-patchset-${PATCHSET}" SRC_URI="https://commondatastorage.googleapis.com/chromium-browser-official/${P}.tar.xz - https://github.com/stha09/chromium-patches/releases/download/${PATCHSET_NAME}/${PATCHSET_NAME}.tar.xz - https://dev.gentoo.org/~sultan/distfiles/www-client/${PN}/${PN}-92-glibc-2.33-patch.tar.xz - arm64? ( https://github.com/google/highway/archive/refs/tags/0.12.1.tar.gz -> highway-0.12.1.tar.gz )" + https://github.com/stha09/chromium-patches/releases/download/${PATCHSET_NAME}/${PATCHSET_NAME}.tar.xz" LICENSE="BSD" SLOT="0" -KEYWORDS="amd64 arm64 ~x86" -IUSE="component-build cups cpu_flags_arm_neon +hangouts headless +js-type-check kerberos official pic +proprietary-codecs pulseaudio screencast selinux +suid +system-ffmpeg +system-icu vaapi wayland widevine" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="component-build cups cpu_flags_arm_neon debug +hangouts headless +js-type-check kerberos official pic +proprietary-codecs pulseaudio screencast selinux +suid +system-ffmpeg +system-harfbuzz +system-icu vaapi wayland widevine" REQUIRED_USE=" component-build? ( !suid ) screencast? ( wayland ) @@ -56,8 +54,8 @@ COMMON_DEPEND=" >=dev-libs/nss-3.26:= >=media-libs/alsa-lib-1.0.19:= media-libs/fontconfig:= - >=media-libs/freetype-2.11.0:= - >=media-libs/harfbuzz-2.4.0:0=[icu(-)] + >=media-libs/freetype-2.11.0-r1:= + system-harfbuzz? ( >=media-libs/harfbuzz-2.9.0:0=[icu(-)] ) media-libs/libjpeg-turbo:= media-libs/libpng:= pulseaudio? ( media-sound/pulseaudio:= ) @@ -198,8 +196,8 @@ pre_build_checks() { fi # Check build requirements, bug #541816 and bug #471810 . - CHECKREQS_MEMORY="3G" - CHECKREQS_DISK_BUILD="8G" + CHECKREQS_MEMORY="4G" + CHECKREQS_DISK_BUILD="9G" if ( shopt -s extglob; is-flagq '-g?(gdb)?([1-9])' ); then if use custom-cflags || use component-build; then CHECKREQS_DISK_BUILD="25G" @@ -233,13 +231,11 @@ src_prepare() { local PATCHES=( "${WORKDIR}/patches" - "${WORKDIR}/sandbox-patches/chromium-syscall_broker.patch" - "${WORKDIR}/sandbox-patches/chromium-fstatat-crash.patch" "${FILESDIR}/chromium-93-EnumTable-crash.patch" "${FILESDIR}/chromium-93-InkDropHost-crash.patch" + "${FILESDIR}/chromium-95-maldoca-zlib.patch" "${FILESDIR}/chromium-use-oauth2-client-switches-as-default.patch" "${FILESDIR}/chromium-shim_headers.patch" - "${FILESDIR}/chromium-93-fix-build-with-system-ffmpeg.patch" ) default @@ -250,12 +246,6 @@ src_prepare() { # adjust python interpreter version sed -i -e "s|\(^script_executable = \).*|\1\"${EPYTHON}\"|g" .gn || die - # bundled highway library does not support arm64 with GCC - if use arm64; then - rm -r third_party/highway/src || die - ln -s "${WORKDIR}/highway-0.12.1" third_party/highway/src || die - fi - local keeplibs=( base/third_party/cityhash base/third_party/double_conversion @@ -333,6 +323,7 @@ src_prepare() { third_party/devtools-frontend/src/front_end/third_party/marked third_party/devtools-frontend/src/front_end/third_party/puppeteer third_party/devtools-frontend/src/front_end/third_party/wasmparser + third_party/devtools-frontend/src/test/unittests/front_end/third_party/i18n third_party/devtools-frontend/src/third_party third_party/dom_distiller_js third_party/eigen3 @@ -352,7 +343,6 @@ src_prepare() { third_party/google_input_tools/third_party/closure_library third_party/google_input_tools/third_party/closure_library/third_party/closure third_party/googletest - third_party/harfbuzz-ng/utils third_party/hunspell third_party/iccjpeg third_party/inspector_protocol @@ -389,6 +379,9 @@ src_prepare() { third_party/lss third_party/lzma_sdk third_party/mako + third_party/maldoca + third_party/maldoca/src/third_party/tensorflow_protos + third_party/maldoca/src/third_party/zlibwrapper third_party/markupsafe third_party/mesa third_party/metrics_proto @@ -494,6 +487,11 @@ src_prepare() { if ! use system-icu; then keeplibs+=( third_party/icu ) fi + if use system-harfbuzz; then + keeplibs+=( third_party/harfbuzz-ng/utils ) + else + keeplibs+=( third_party/harfbuzz-ng ) + fi if use wayland && ! use headless ; then keeplibs+=( third_party/wayland ) fi @@ -570,6 +568,11 @@ src_configure() { # GN needs explicit config for Debug/Release as opposed to inferring it from build directory. myconf_gn+=" is_debug=false" + # enable DCHECK with USE=debug only, increases chrome binary size by 30%, bug #811138. + # DCHECK is fatal by default, make it configurable at runtime, #bug 807881. + myconf_gn+=" dcheck_always_on=$(usex debug true false)" + myconf_gn+=" dcheck_is_configurable=$(usex debug true false)" + # Component build isn't generally intended for use by end users. It's mostly useful # for development and debugging. myconf_gn+=" is_component_build=$(usex component-build true false)" @@ -580,9 +583,7 @@ src_configure() { # Use system-provided libraries. # TODO: freetype -- remove sources (https://bugs.chromium.org/p/pdfium/issues/detail?id=733). # TODO: use_system_hunspell (upstream changes needed). - # TODO: use_system_libsrtp (bug #459932). # TODO: use_system_protobuf (bug #525560). - # TODO: use_system_ssl (http://crbug.com/58087). # TODO: use_system_sqlite (http://crbug.com/22208). # libevent: https://bugs.gentoo.org/593458 @@ -615,7 +616,7 @@ src_configure() { build/linux/unbundle/replace_gn_files.py --system-libraries "${gn_system_libraries[@]}" || die # See dependency logic in third_party/BUILD.gn - myconf_gn+=" use_system_harfbuzz=true" + myconf_gn+=" use_system_harfbuzz=$(usex system-harfbuzz true false)" # Disable deprecated libgnome-keyring dependency, bug #713012 myconf_gn+=" use_gnome_keyring=false" @@ -628,11 +629,11 @@ src_configure() { myconf_gn+=" use_kerberos=$(usex kerberos true false)" myconf_gn+=" use_pulseaudio=$(usex pulseaudio true false)" myconf_gn+=" use_vaapi=$(usex vaapi true false)" - myconf_gn+=" rtc_use_pipewire=$(usex screencast true false) rtc_pipewire_version=\"0.3\"" + myconf_gn+=" rtc_use_pipewire=$(usex screencast true false)" # TODO: link_pulseaudio=true for GN. - myconf_gn+=" fieldtrial_testing_like_official_build=true" + myconf_gn+=" disable_fieldtrial_testing_config=true" # Never use bundled gold binary. Disable gold linker flags for now. # Do not use bundled clang. @@ -745,11 +746,6 @@ src_configure() { # Chromium relies on this, but was disabled in >=clang-10, crbug.com/1042470 append-cxxflags $(test-flags-CXX -flax-vector-conversions=all) - # highway/libjxl relies on this with arm64 - if use arm64 && tc-is-gcc; then - append-cxxflags -flax-vector-conversions - fi - # Disable unknown warning message from clang. tc-is-clang && append-flags -Wno-unknown-warning-option @@ -761,6 +757,7 @@ src_configure() { # Enable ozone wayland and/or headless support myconf_gn+=" use_ozone=true ozone_auto_platforms=false" myconf_gn+=" ozone_platform_headless=true" + myconf_gn+=" ozone_platform_x11=$(usex headless false true)" if use wayland || use headless; then if use headless; then myconf_gn+=" ozone_platform=\"headless\"" @@ -772,6 +769,8 @@ src_configure() { myconf_gn+=" use_xkbcommon=true" myconf_gn+=" ozone_platform=\"wayland\"" fi + else + myconf_gn+=" ozone_platform=\"x11\"" fi # Enable official builds @@ -852,14 +851,16 @@ src_install() { fi doexe out/Release/chromedriver - doexe out/Release/crashpad_handler + doexe out/Release/chrome_crashpad_handler + ozone_auto_session () { + use wayland && ! use headless && echo true || echo false + } local sedargs=( -e "s:/usr/lib/:/usr/$(get_libdir)/:g; - s:@@OZONE_AUTO_SESSION@@:$(usex wayland true false):g; - s:@@FORCE_OZONE_PLATFORM@@:$(usex headless true false):g" + s:@@OZONE_AUTO_SESSION@@:$(ozone_auto_session):g" ) - sed "${sedargs[@]}" "${FILESDIR}/chromium-launcher-r6.sh" > chromium-launcher.sh || die + sed "${sedargs[@]}" "${FILESDIR}/chromium-launcher-r7.sh" > chromium-launcher.sh || die doexe chromium-launcher.sh # It is important that we name the target "chromium-browser", @@ -893,6 +894,7 @@ src_install() { doins -r out/Release/locales doins -r out/Release/resources + doins -r out/Release/MEIPreload if [[ -d out/Release/swiftshader ]]; then insinto "${CHROMIUM_HOME}/swiftshader" diff --git a/www-client/chromium/chromium-95.0.4636.4.ebuild b/www-client/chromium/chromium-96.0.4651.0.ebuild index bd299825d135..909981765699 100644 --- a/www-client/chromium/chromium-95.0.4636.4.ebuild +++ b/www-client/chromium/chromium-96.0.4651.0.ebuild @@ -13,7 +13,7 @@ inherit check-reqs chromium-2 desktop flag-o-matic multilib ninja-utils pax-util DESCRIPTION="Open-source version of Google Chrome web browser" HOMEPAGE="https://chromium.org/" -PATCHSET="3" +PATCHSET="1" PATCHSET_NAME="chromium-$(ver_cut 1)-patchset-${PATCHSET}" SRC_URI="https://commondatastorage.googleapis.com/chromium-browser-official/${P}.tar.xz https://github.com/stha09/chromium-patches/releases/download/${PATCHSET_NAME}/${PATCHSET_NAME}.tar.xz" @@ -21,7 +21,7 @@ SRC_URI="https://commondatastorage.googleapis.com/chromium-browser-official/${P} LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~arm64 ~x86" -IUSE="component-build cups cpu_flags_arm_neon debug +hangouts headless +js-type-check kerberos official pic +proprietary-codecs pulseaudio screencast selinux +suid +system-ffmpeg +system-icu vaapi wayland widevine" +IUSE="component-build cups cpu_flags_arm_neon debug +hangouts headless +js-type-check kerberos official pic +proprietary-codecs pulseaudio screencast selinux +suid +system-ffmpeg +system-harfbuzz +system-icu vaapi wayland widevine" REQUIRED_USE=" component-build? ( !suid ) screencast? ( wayland ) @@ -55,7 +55,7 @@ COMMON_DEPEND=" >=media-libs/alsa-lib-1.0.19:= media-libs/fontconfig:= >=media-libs/freetype-2.11.0-r1:= - >=media-libs/harfbuzz-2.9.0:0=[icu(-)] + system-harfbuzz? ( >=media-libs/harfbuzz-2.9.0:0=[icu(-)] ) media-libs/libjpeg-turbo:= media-libs/libpng:= pulseaudio? ( media-sound/pulseaudio:= ) @@ -342,7 +342,6 @@ src_prepare() { third_party/google_input_tools/third_party/closure_library third_party/google_input_tools/third_party/closure_library/third_party/closure third_party/googletest - third_party/harfbuzz-ng/utils third_party/hunspell third_party/iccjpeg third_party/inspector_protocol @@ -379,6 +378,9 @@ src_prepare() { third_party/lss third_party/lzma_sdk third_party/mako + third_party/maldoca + third_party/maldoca/src/third_party/tensorflow_protos + third_party/maldoca/src/third_party/zlibwrapper third_party/markupsafe third_party/mesa third_party/metrics_proto @@ -439,7 +441,6 @@ src_prepare() { third_party/tflite third_party/tflite/src/third_party/eigen3 third_party/tflite/src/third_party/fft2d - third_party/tflite-support third_party/ruy third_party/six third_party/ukey2 @@ -484,6 +485,11 @@ src_prepare() { if ! use system-icu; then keeplibs+=( third_party/icu ) fi + if use system-harfbuzz; then + keeplibs+=( third_party/harfbuzz-ng/utils ) + else + keeplibs+=( third_party/harfbuzz-ng ) + fi if use wayland && ! use headless ; then keeplibs+=( third_party/wayland ) fi @@ -608,7 +614,7 @@ src_configure() { build/linux/unbundle/replace_gn_files.py --system-libraries "${gn_system_libraries[@]}" || die # See dependency logic in third_party/BUILD.gn - myconf_gn+=" use_system_harfbuzz=true" + myconf_gn+=" use_system_harfbuzz=$(usex system-harfbuzz true false)" # Disable deprecated libgnome-keyring dependency, bug #713012 myconf_gn+=" use_gnome_keyring=false" diff --git a/www-client/chromium/files/chromium-93-fix-build-with-system-ffmpeg.patch b/www-client/chromium/files/chromium-93-fix-build-with-system-ffmpeg.patch deleted file mode 100644 index c19066837192..000000000000 --- a/www-client/chromium/files/chromium-93-fix-build-with-system-ffmpeg.patch +++ /dev/null @@ -1,85 +0,0 @@ -From: 52c3e9c0f140a8742034e107fb0f371c0d73bf1d Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Marek=20Beh=C3=BAn?= <kabel@kernel.org> -Date: Sun, 12 Sep 2021 04:20:11 +0200 -Subject: [PATCH] chromium-93: fix building with system-ffmpeg -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -The version of ffmpeg bundled in Chromium changed ABI a little, which -affected the code in that the type of the last parameter of -av_packet_get_side_data() is now size_t instead of int. - -This causes Chromium to fail to build with system-ffmpeg if the system -ffmpeg's version does not yet have this ABI change. - -Fix the code to be able to compile with older ffmpeg as well. - -Signed-off-by: Marek BehĂșn <kabel@kernel.org> ---- - media/filters/audio_decoder_unittest.cc | 4 ++++ - media/filters/ffmpeg_demuxer.cc | 16 ++++++++++++++++ - 2 files changed, 20 insertions(+) - -diff --git a/media/filters/audio_decoder_unittest.cc b/media/filters/audio_decoder_unittest.cc ---- a/media/filters/audio_decoder_unittest.cc -+++ b/media/filters/audio_decoder_unittest.cc -@@ -109,7 +109,11 @@ void SetDiscardPadding(AVPacket* packet, - } - - // If the timestamp is positive, try to use FFmpeg's discard data. -+#if LIBAVUTIL_VERSION_MAJOR < 57 -+ int skip_samples_size = 0; -+#else - size_t skip_samples_size = 0; -+#endif - const uint32_t* skip_samples_ptr = - reinterpret_cast<const uint32_t*>(av_packet_get_side_data( - packet, AV_PKT_DATA_SKIP_SAMPLES, &skip_samples_size)); -diff --git a/media/filters/ffmpeg_demuxer.cc b/media/filters/ffmpeg_demuxer.cc ---- a/media/filters/ffmpeg_demuxer.cc -+++ b/media/filters/ffmpeg_demuxer.cc -@@ -427,11 +427,19 @@ void FFmpegDemuxerStream::EnqueuePacket( - scoped_refptr<DecoderBuffer> buffer; - - if (type() == DemuxerStream::TEXT) { -+#if LIBAVUTIL_VERSION_MAJOR < 57 -+ int id_size = 0; -+#else - size_t id_size = 0; -+#endif - uint8_t* id_data = av_packet_get_side_data( - packet.get(), AV_PKT_DATA_WEBVTT_IDENTIFIER, &id_size); - -+#if LIBAVUTIL_VERSION_MAJOR < 57 -+ int settings_size = 0; -+#else - size_t settings_size = 0; -+#endif - uint8_t* settings_data = av_packet_get_side_data( - packet.get(), AV_PKT_DATA_WEBVTT_SETTINGS, &settings_size); - -@@ -443,7 +451,11 @@ void FFmpegDemuxerStream::EnqueuePacket( - buffer = DecoderBuffer::CopyFrom(packet->data, packet->size, - side_data.data(), side_data.size()); - } else { -+#if LIBAVUTIL_VERSION_MAJOR < 57 -+ int side_data_size = 0; -+#else - size_t side_data_size = 0; -+#endif - uint8_t* side_data = av_packet_get_side_data( - packet.get(), AV_PKT_DATA_MATROSKA_BLOCKADDITIONAL, &side_data_size); - -@@ -504,7 +516,11 @@ void FFmpegDemuxerStream::EnqueuePacket( - packet->size - data_offset); - } - -+#if LIBAVUTIL_VERSION_MAJOR < 57 -+ int skip_samples_size = 0; -+#else - size_t skip_samples_size = 0; -+#endif - const uint32_t* skip_samples_ptr = - reinterpret_cast<const uint32_t*>(av_packet_get_side_data( - packet.get(), AV_PKT_DATA_SKIP_SAMPLES, &skip_samples_size)); diff --git a/www-client/chromium/files/chromium-95-maldoca-zlib.patch b/www-client/chromium/files/chromium-95-maldoca-zlib.patch new file mode 100644 index 000000000000..1f64a66ddcdb --- /dev/null +++ b/www-client/chromium/files/chromium-95-maldoca-zlib.patch @@ -0,0 +1,13 @@ +diff --git a/third_party/maldoca/BUILD.gn b/third_party/maldoca/BUILD.gn +index eeab205..29a0a2c 100644 +--- a/third_party/maldoca/BUILD.gn ++++ b/third_party/maldoca/BUILD.gn +@@ -224,7 +224,7 @@ source_set("maldoca-ole") { + "//third_party/libxml", + "//third_party/protobuf:protobuf_lite", + "//third_party/re2", +- "//third_party/zlib:zlib_common_headers", ++ "//third_party/zlib:zlib", + "//third_party/zlib/google:zip", + ] + diff --git a/www-client/chromium/metadata.xml b/www-client/chromium/metadata.xml index 7f4499480ad8..6797780530d5 100644 --- a/www-client/chromium/metadata.xml +++ b/www-client/chromium/metadata.xml @@ -17,6 +17,7 @@ <flag name="screencast">Enable support for remote desktop and screen cast using <pkg>media-video/pipewire</pkg></flag> <flag name="suid">Build the SUID sandbox, which is only needed on CONFIG_USER_NS=n kernels</flag> <flag name="system-ffmpeg">Use system ffmpeg instead of the bundled one</flag> + <flag name="system-harfbuzz">Use system harfbuzz instead of the bundled one.</flag> <flag name="system-icu">Use system icu instead of the bundled one</flag> <flag name="widevine">Unsupported closed-source DRM capability (required by Netflix VOD)</flag> </use> |