public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/chromium] epel9-next: Workaround for build error on pp64le
@ 2026-08-07 16:06 Than Ngo
0 siblings, 0 replies; only message in thread
From: Than Ngo @ 2026-08-07 16:06 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/chromium
Branch : epel9-next
Commit : 3a9f738b6fe57119ebb94d8c128b7f70fe8216a0
Author : Than Ngo <than@redhat.com>
Date : 2024-05-28T00:24:30+02:00
Stats : +58/-6 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/chromium/c/3a9f738b6fe57119ebb94d8c128b7f70fe8216a0?branch=epel9-next
Log:
Workaround for build error on pp64le
---
diff --git a/chromium.conf b/chromium.conf
index 686a277..cadab28 100644
--- a/chromium.conf
+++ b/chromium.conf
@@ -1,3 +1,49 @@
# system wide chromium flags
+
+# GRAPHIC_DRIVER=[amd|intel|nvidia|default]
+GRAPHIC_DRIVER=default
+
+# WEB_DARKMODE=[on|off]
+WEB_DARKMODE=off
+
CHROMIUM_FLAGS=""
-CHROMIUM_FLAGS+=" --use-gl=angle --use-angle=gl --enable-features=VaapiVideoEncoder,VaapiVideoDecodeLinuxGL"
+CHROMIUM_FLAGS+=" --disable-features=AudioServiceSandbox"
+CHROMIUM_FLAGS+=" --enable-native-gpu-memory-buffers"
+CHROMIUM_FLAGS+=" --enable-gpu-memory-buffer-video-frames"
+CHROMIUM_FLAGS+=" --enable-zero-copy"
+CHROMIUM_FLAGS+=" --use-gl=angle"
+CHROMIUM_FLAGS+=" --ignore-gpu-blocklist --disable-gpu-driver-bug-workaround"
+CHROMIUM_FLAGS+=" --enable-chrome-browser-cloud-management"
+
+case "$GRAPHIC_DRIVER" in
+ amd)
+ # Need new mesa with AMD multi planes support, is not yet supported in fedora
+ # see https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26165
+ CHROMIUM_FLAGS+=" --use-angle=vulkan --enable-accelerated-video-decode"
+ CHROMIUM_FLAGS+=" --enable-features=Vulkan,VulkanFromANGLE,DefaultANGLEVulkan,VaapiIgnoreDriverChecks,VaapiVideoDecoder,UseMultiPlaneFormatForHardwareVideo"
+ ;;
+ nvidia)
+ # The NVIDIA VaAPI drivers are known to not support Chromium
+ # see https://crbug.com/1492880. This feature switch is
+ # provided for developers to test VaAPI drivers on NVIDIA GPUs
+ CHROMIUM_FLAGS+=" --use-angle=gl"
+ CHROMIUM_FLAGS+=" --enable-features=VaapiVideoDecodeLinuxGL,VaapiVideoEncoder,VaapiOnNvidiaGPUs"
+ ;;
+ intel)
+ CHROMIUM_FLAGS+=" --use-angle=gl"
+ CHROMIUM_FLAGS+=" --enable-features=VaapiVideoEncoder,VaapiVideoDecodeLinuxGL"
+ ;;
+ *)
+ CHROMIUM_FLAGS=""
+ ;;
+esac
+
+# Web Dark mode
+if [ "$WEB_DARKMODE" == "on" ] ; then
+ darktype="WebContentsForceDark:inversion_method/cielab_based/image_behavior/none/foreground_lightness_threshold/150/background_lightness_threshold/205"
+ if [ -z "$CHROMIUM_FLAGS" ] ; then
+ CHROMIUM_FLAGS+=" --enable-features=$darktype"
+ else
+ CHROMIUM_FLAGS+=",$darktype"
+ fi
+fi
diff --git a/chromium.spec b/chromium.spec
index ec897e7..25a9deb 100644
--- a/chromium.spec
+++ b/chromium.spec
@@ -36,7 +36,7 @@
# enable|disable headless client build
%global build_headless 1
%ifarch ppc64le
-%global build_headless 0
+%global cfi 0
%endif
# enable|disable chrome-remote-desktop build
@@ -179,6 +179,11 @@
%endif
%endif
+%ifarch ppc64le
+# workaround for a bug in new llvm on f40/rawhide (ppc64le)
+%global cfi 0
+%endif
+
# set correct toolchain
%if %{clang}
%global toolchain clang
@@ -307,7 +312,7 @@
Name: chromium%{chromium_channel}
Version: 125.0.6422.112
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use
Url: http://www.chromium.org/Home
License: BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND GPL-2.0-or-later AND ISC AND OpenSSL AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-only)
@@ -674,9 +679,7 @@ BuildRequires: pkgconfig(Qt6Core)
BuildRequires: pkgconfig(Qt6Widgets)
%endif
-%if %{cfi}
BuildRequires: compiler-rt
-%endif
%if ! %{bundleharfbuzz}
BuildRequires: harfbuzz-devel >= 2.4.0
@@ -1471,7 +1474,7 @@ sed -i 's|OFFICIAL_BUILD|GOOGLE_CHROME_BUILD|g' tools/generate_shim_headers/gene
CHROMIUM_CORE_GN_DEFINES+=' chrome_pgo_phase=0'
%if ! %{cfi}
-CHROMIUM_CORE_GN_DEFINES+=' is_cfi=false'
+CHROMIUM_CORE_GN_DEFINES+=' is_cfi=false use_thin_lto=false'
%endif
%if %{useapikey}
@@ -2107,6 +2110,9 @@ getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-deskt
%endif
%changelog
+* Tue May 28 2024 Than Ngo <than@redhat.com> - 125.0.6422.112-2
+- Workaround for build error on pp64le
+
* Sun May 26 2024 Than Ngo <than@redhat.com> - 125.0.6422.112-1
- update to 125.0.6422.112
* High CVE-2024-5274: Type Confusion in V8
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-07 16:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-07 16:06 [rpms/chromium] epel9-next: Workaround for build error on pp64le Than Ngo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox