diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-09-16 22:05:01 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-09-16 22:05:01 +0100 |
commit | cc4618c9ba3d974948ebf340b542d8cb01db2f55 (patch) | |
tree | 125ee67bb9e0d548771cf7b61d04bb1f0dc57687 /www-client/chromium | |
parent | 677b7ba5c317778df2ad7e70df94b9b7eec4adbc (diff) |
gentoo resync : 16.09.2021
Diffstat (limited to 'www-client/chromium')
-rw-r--r-- | www-client/chromium/Manifest | 18 | ||||
-rw-r--r-- | www-client/chromium/chromium-93.0.4577.82.ebuild (renamed from www-client/chromium/chromium-93.0.4577.63.ebuild) | 4 | ||||
-rw-r--r-- | www-client/chromium/chromium-94.0.4606.50.ebuild (renamed from www-client/chromium/chromium-94.0.4606.41.ebuild) | 3 | ||||
-rw-r--r-- | www-client/chromium/chromium-95.0.4636.4.ebuild (renamed from www-client/chromium/chromium-95.0.4628.3.ebuild) | 16 | ||||
-rw-r--r-- | www-client/chromium/files/chromium-93-fix-build-with-system-ffmpeg.patch | 85 | ||||
-rw-r--r-- | www-client/chromium/files/chromium-launcher-r7.sh | 59 | ||||
-rw-r--r-- | www-client/chromium/metadata.xml | 2 |
7 files changed, 174 insertions, 13 deletions
diff --git a/www-client/chromium/Manifest b/www-client/chromium/Manifest index fcefa4c27f9f..c6275a6e6f5f 100644 --- a/www-client/chromium/Manifest +++ b/www-client/chromium/Manifest @@ -1,19 +1,21 @@ 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-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.63.tar.xz 1038816588 BLAKE2B aa0eeea52345c7269e614ecc32710ea6c5b071d24a773040389df38159b1c60c99f5cf0e1c9e753e776aa23e9b58ef2f2e13d8ba448c3789f10fccd364babaad SHA512 b7d85dfe34d9a37e6b4f9b440ba6aaa2778d30f8bda583151dd6e5d2ab9d6136ee1ab321bfc5f59aa10b289c07f72298db11182d06ede8574ac280b2b6d8fa2f +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.41.tar.xz 1039866508 BLAKE2B b8a47fe1554966d9302127e05e1ea2ab3314c92c637985baaec849fd68420ced88231f9df1c96a6cc9a7e6c9e000ca8ad3982002b2cd62a18830f0950726096d SHA512 1f10f52680e3765056ce00e77d3463b3c84b16d3d39c5b44646499aabc1cca9ab11bd2ea65d4154768392ac4712710e9a7f99ee691ad7b402c07ea2076453141 -DIST chromium-95-patchset-2.tar.xz 4608 BLAKE2B bf3d17c1aa79b6070f64b3178d056682b61c9fa8414478379e72e346a805eb71b0e9ae649e13c51b933aa5424f038dbe350327989e3c8f237a7a4bfe1740607c SHA512 371de2fade344b230acbb19e5abdce0d30d27f8d85a862d43e97e8b6d20bd6878401df49729ebee26b93c8bbe38c8b9a0a785ef35aa93b28f53c9e4c3b4e5900 -DIST chromium-95.0.4628.3.tar.xz 1214022616 BLAKE2B 308f1f8411a8963352da4c1464152e750ee7e33d5830a7bcd76d5f9887622dafb17ee0968c27f17270d994a6946508a24cbefab27aeb1f00085236085db5b86c SHA512 32133bd50b98cd33bef6e6d6a5b3d44db8e38ce89a6961f308a656e4c27fe6056645318d1dfb6a8ed23562de76035e4d0b1a908ce0320d159bef3d27a0f19ad8 +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.63.ebuild 29915 BLAKE2B 715a51a9825e211fe69e2f842f02f01969befe98e9c9f16743b1da17a0f4c159809da8e7abad9b032324cc7f2f50c14a31cd715f299aed12db7ff2a77ecd3744 SHA512 ce07517d11e81d3b72043c6ed3d3c5d5023738b6cea76b3c335c9316f2f25ab398dee2f3d580340abeb9f97780daa4e7dcf5bca1900288306236970b226b42f9 -EBUILD chromium-94.0.4606.41.ebuild 29694 BLAKE2B f992a9c5792b121484aa78dd08705dbaaf3616eb4b702bd626eaf0b13c2665bc6e90d6bb292d50f93e8adaf650ea5bfd5c9982c84627e2be626e2f5260e8dd16 SHA512 1d5794a98d8ba7dafc2502acf9f9fdf458e11573c6a79a8cd0a36505cf8dd5f8e0e4cba939093be9deeafa4cb14386daf6c9c3697b060024732e329494987f20 -EBUILD chromium-95.0.4628.3.ebuild 29572 BLAKE2B 9a2020c9d99f5f458e771b4c7e2a3ec92145752f59b0ee1dd50607edbfa41282f472a4a64fef62114dfc7d8a99170af25f40e098a2efed822ed276ae85f77a9d SHA512 45eaa8998161ccda6b20391a6007b0231d9a408d8cf8e519c7557c014cadecd56e3de91f63b852876b168f8ebd43c81a720269326dd51fc79c155e27955b1159 -MISC metadata.xml 1688 BLAKE2B 598d5e46adbfb60002522f1299702a4bdacfb47628f1a877f1138b2f469e21737cf00745fef8ef6e99aae3253176555819e99f352921ff5950cfb1ba59ab738f SHA512 5c4d74046495e8178c9d2c5bb7e6ca7c7c073ab34876d5c01fc53d8e1b94bfea7e35ade2a569ed75c18fc712fa78d26745bf92ce374435821b3a4a53ae24a0b1 +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 diff --git a/www-client/chromium/chromium-93.0.4577.63.ebuild b/www-client/chromium/chromium-93.0.4577.82.ebuild index 2a9d81c8d47f..d0757d6acb46 100644 --- a/www-client/chromium/chromium-93.0.4577.63.ebuild +++ b/www-client/chromium/chromium-93.0.4577.82.ebuild @@ -239,6 +239,7 @@ src_prepare() { "${FILESDIR}/chromium-93-InkDropHost-crash.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 @@ -799,6 +800,9 @@ src_compile() { # Calling this here supports resumption via FEATURES=keepwork python_setup + # Don't inherit PYTHONPATH from environment, bug #789021, #812689 + local -x PYTHONPATH= + #"${EPYTHON}" tools/clang/scripts/update.py --force-local-build --gcc-toolchain /usr --skip-checkout --use-system-cmake --without-android || die # Build mksnapshot and pax-mark it. diff --git a/www-client/chromium/chromium-94.0.4606.41.ebuild b/www-client/chromium/chromium-94.0.4606.50.ebuild index 3fbd84fcf2db..5b78ebe944a8 100644 --- a/www-client/chromium/chromium-94.0.4606.41.ebuild +++ b/www-client/chromium/chromium-94.0.4606.50.ebuild @@ -790,6 +790,9 @@ src_compile() { # Calling this here supports resumption via FEATURES=keepwork python_setup + # Don't inherit PYTHONPATH from environment, bug #789021, #812689 + local -x PYTHONPATH= + #"${EPYTHON}" tools/clang/scripts/update.py --force-local-build --gcc-toolchain /usr --skip-checkout --use-system-cmake --without-android || die # Build mksnapshot and pax-mark it. diff --git a/www-client/chromium/chromium-95.0.4628.3.ebuild b/www-client/chromium/chromium-95.0.4636.4.ebuild index d2d31bd7ebe5..bd299825d135 100644 --- a/www-client/chromium/chromium-95.0.4628.3.ebuild +++ b/www-client/chromium/chromium-95.0.4636.4.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="2" +PATCHSET="3" 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" @@ -749,6 +749,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\"" @@ -760,6 +761,8 @@ src_configure() { myconf_gn+=" use_xkbcommon=true" myconf_gn+=" ozone_platform=\"wayland\"" fi + else + myconf_gn+=" ozone_platform=\"x11\"" fi # Enable official builds @@ -788,6 +791,9 @@ src_compile() { # Calling this here supports resumption via FEATURES=keepwork python_setup + # Don't inherit PYTHONPATH from environment, bug #789021, #812689 + local -x PYTHONPATH= + #"${EPYTHON}" tools/clang/scripts/update.py --force-local-build --gcc-toolchain /usr --skip-checkout --use-system-cmake --without-android || die # Build mksnapshot and pax-mark it. @@ -839,12 +845,14 @@ src_install() { doexe out/Release/chromedriver 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", 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 new file mode 100644 index 000000000000..c19066837192 --- /dev/null +++ b/www-client/chromium/files/chromium-93-fix-build-with-system-ffmpeg.patch @@ -0,0 +1,85 @@ +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-launcher-r7.sh b/www-client/chromium/files/chromium-launcher-r7.sh new file mode 100644 index 000000000000..1163ff3ddc09 --- /dev/null +++ b/www-client/chromium/files/chromium-launcher-r7.sh @@ -0,0 +1,59 @@ +#!/bin/bash + +# Allow the user to override command-line flags, bug #357629. +# This is based on Debian's chromium-browser package, and is intended +# to be consistent with Debian. +for f in /etc/chromium/*; do + [[ -f ${f} ]] && source "${f}" +done + +# Prefer user defined CHROMIUM_USER_FLAGS (from env) over system +# default CHROMIUM_FLAGS (from /etc/chromium/default). +CHROMIUM_FLAGS=${CHROMIUM_USER_FLAGS:-"$CHROMIUM_FLAGS"} + +# Let the wrapped binary know that it has been run through the wrapper +export CHROME_WRAPPER=$(readlink -f "$0") + +PROGDIR=${CHROME_WRAPPER%/*} + +case ":$PATH:" in + *:$PROGDIR:*) + # $PATH already contains $PROGDIR + ;; + *) + # Append $PROGDIR to $PATH + export PATH="$PATH:$PROGDIR" + ;; +esac + +if [[ ${EUID} == 0 && -O ${XDG_CONFIG_HOME:-${HOME}} ]]; then + # Running as root with HOME owned by root. + # Pass --user-data-dir to work around upstream failsafe. + CHROMIUM_FLAGS="--user-data-dir=${XDG_CONFIG_HOME:-${HOME}/.config}/chromium + ${CHROMIUM_FLAGS}" +fi + +# Select session type and platform +if @@OZONE_AUTO_SESSION@@; then + platform= + if [[ ${XDG_SESSION_TYPE} == x11 ]]; then + platform=x11 + elif [[ ${XDG_SESSION_TYPE} == wayland ]]; then + platform=wayland + else + if [[ -n ${WAYLAND_DISPLAY} ]]; then + platform=wayland + else + platform=x11 + fi + fi + if ${DISABLE_OZONE_PLATFORM:-false}; then + platform=x11 + fi + CHROMIUM_FLAGS="--ozone-platform=${platform} ${CHROMIUM_FLAGS}" +fi + +# Set the .desktop file name +export CHROME_DESKTOP="chromium-browser-chromium.desktop" + +exec -a "chromium-browser" "$PROGDIR/chrome" --extra-plugin-dir=/usr/lib/nsbrowser/plugins ${CHROMIUM_FLAGS} "$@" diff --git a/www-client/chromium/metadata.xml b/www-client/chromium/metadata.xml index cfc67c7e8ffa..7f4499480ad8 100644 --- a/www-client/chromium/metadata.xml +++ b/www-client/chromium/metadata.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> <maintainer type="project"> <email>chromium@gentoo.org</email> |