commit:     1b229dd19792f4d0e63f94ab248c16a6a2b927bd
Author:     Stephan Hartmann <stha09 <AT> googlemail <DOT> com>
AuthorDate: Fri Jul 24 17:42:24 2020 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Sun Jul 26 16:42:38 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b229dd1

www-client/chromium: beta channel bump to 85.0.4183.39

Bug: https://bugs.gentoo.org/733296
Package-Manager: Portage-2.3.99, Repoman-2.3.23
Signed-off-by: Stephan Hartmann <stha09 <AT> googlemail.com>
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 www-client/chromium/Manifest                       |  2 +-
 ...4183.26.ebuild => chromium-85.0.4183.39.ebuild} |  5 +-
 www-client/chromium/files/chromium-launcher-r5.sh  | 56 ++++++++++++++++++++++
 3 files changed, 61 insertions(+), 2 deletions(-)

diff --git a/www-client/chromium/Manifest b/www-client/chromium/Manifest
index 09ce705e91e..13948d07b41 100644
--- a/www-client/chromium/Manifest
+++ b/www-client/chromium/Manifest
@@ -1,6 +1,6 @@
 DIST chromium-84-patchset-3.tar.xz 20148 BLAKE2B 
d910570b43f63bcf4ead90ca4e4005a08d7c85b5b4e7af2a70ec4bc18265cbe8b075523878710075cfee4e0631eb3374e1e6d06251f4bf03377954807b1951e9
 SHA512 
316db8b0359b10a988242a0d665475d912fa9b610a547478d8c39b337afc02780a54d7024e231eb4fd402063cf439f6e2b4bb92a4968c8e0c3e69d84a2ae1664
 DIST chromium-84.0.4147.89.tar.xz 845153972 BLAKE2B 
e8101805af6278fc9c49041071e7cd6d53fe79ba74b83b636584db57f459f003559758a51a1cd155d7fe3d5d0d21c95d37f84e638644c6e08b39ea02cce902be
 SHA512 
cc207a5f09a89e42bc12fd491d5d0ef11c04daaa324aa696d2f8a37679b8f2171d3b265296968c3312e158b0fd2c059e12727a7463d3bd2f640d5bbd43c4f676
 DIST chromium-85-patchset-2.tar.xz 9724 BLAKE2B 
929d6abe3a66db395a9cedc63510a6a0ed0d79057f92ade22fe26221bf46a63e88fb40d6e54e6ffa837d142ec5da22e2b428f3153db431e3389de0b230fa2aec
 SHA512 
753ce53c2c10cf1abdce334086a633dfcb4543c86a2dccbee0ad1bc8a8a0b642cdd18e2277c67088a380a9fa2ca8fd655e2fc0b3a2931de3230afa046615cd0e
-DIST chromium-85.0.4183.26.tar.xz 863782884 BLAKE2B 
a08f042f07b96e490f8e2d7ca132a249f2745296ad5250bfb65550e632483cfbae3a60ed42fda5608bbe7ade3356b84fb4dea7d4dba5dbd7c284a3c5c46e0199
 SHA512 
00267e64bcbb8c464fa624e203bbfde9d6dd324d70a83ef903e5cec0332ddf6fd540c742fce99c23931522e57e54e46280cda7dc0e085b33cf2c36ef45bbd935
+DIST chromium-85.0.4183.39.tar.xz 863788052 BLAKE2B 
76551471aab570e6484b0dae31191f2d2aace5f360353274a265f205b7c24997b75c6d32b15ff0e34dd0c31edb70491f4f5f7bb8fe331f8b110fa77051572d54
 SHA512 
23ac7d6d96a6abaee565b791d75b03fa0b9ff9f3a8bd8f4c42896f345530796485d756ac96f97e566f4c9d054ca3fa9b14d5dc774533f50e5a9e1ea5669d663b
 DIST setuptools-44.1.0.zip 858569 BLAKE2B 
f59f154e121502a731e51294ccd293d60ffccadacf51e23b53bf7ceba38858948b86783238061136c827ac3373ea7ea8e6253d4bb53f3f1dd69284568ec65a68
 SHA512 
4dfb0f42d334b835758e865a26ecd1e725711fa2b9c38ddc273b8b3849fba04527bc97436d11ba1e98f1a42922aa0f0b9032e32998273c705fac6e10735eacbf
 DIST xcb-proto-1.14.tar.xz 143384 BLAKE2B 
60212b0f0ce039a64a2e6cbbc78564eeffc57cff20987b37dc780d8d97ae888a7dbfbbaadc6e0e4bedfc5d1e360f16318e3825ad8406de668d9c7c66cf7f4b5d
 SHA512 
de66d568163b6da2be9d6c59984f3afa3acd119a781378638045fd68018665ef5c9af98f024e9962ba3eb7c7a4d85c27ba70ffafceb2324ccc6940f34de16690

diff --git a/www-client/chromium/chromium-85.0.4183.26.ebuild 
b/www-client/chromium/chromium-85.0.4183.39.ebuild
similarity index 99%
rename from www-client/chromium/chromium-85.0.4183.26.ebuild
rename to www-client/chromium/chromium-85.0.4183.39.ebuild
index dd5f9553613..6a310604e12 100644
--- a/www-client/chromium/chromium-85.0.4183.26.ebuild
+++ b/www-client/chromium/chromium-85.0.4183.39.ebuild
@@ -687,6 +687,9 @@ src_configure() {
        # Chromium relies on this, but was disabled in >=clang-10, 
crbug.com/1042470
        append-cxxflags $(test-flags-CXX -flax-vector-conversions=all)
 
+       # Disable unknown warning message from clang.
+       tc-is-clang && append-flags -Wno-unknown-warning-option
+
        # Explicitly disable ICU data file support for system-icu builds.
        if use system-icu; then
                myconf_gn+=" icu_use_data_file=false"
@@ -783,7 +786,7 @@ src_install() {
                        "s:/usr/lib/:/usr/$(get_libdir)/:g;
                        s:@@OZONE_AUTO_SESSION@@:$(ozone_auto_session):g"
        )
-       sed "${sedargs[@]}" "${FILESDIR}/chromium-launcher-r4.sh" > 
chromium-launcher.sh || die
+       sed "${sedargs[@]}" "${FILESDIR}/chromium-launcher-r5.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-launcher-r5.sh 
b/www-client/chromium/files/chromium-launcher-r5.sh
new file mode 100644
index 00000000000..d9aa3af9a05
--- /dev/null
+++ b/www-client/chromium/files/chromium-launcher-r5.sh
@@ -0,0 +1,56 @@
+#!/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
+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
+       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} "$@"

Reply via email to