public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Than Ngo <than@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/chromium] epel9-next: update config file
Date: Fri, 07 Aug 2026 16:04:40 GMT	[thread overview]
Message-ID: <178611868059.1.14955688889790175063.rpms-chromium-90d7c820b8ea@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/chromium
Branch : epel9-next
Commit : 90d7c820b8eaabde5c4efcbf3ada7c83fc471711
Author : Than Ngo <than@redhat.com>
Date   : 2023-02-06T18:28:56+01:00
Stats  : +12/-9 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/chromium/c/90d7c820b8eaabde5c4efcbf3ada7c83fc471711?branch=epel9-next

Log:
update config file

---
diff --git a/chromium.conf b/chromium.conf
index ef74e36..72c565c 100644
--- a/chromium.conf
+++ b/chromium.conf
@@ -1,3 +1,5 @@
 # system wide chromium flags
 
-# CHROMIUM_FLAGS="--ozone-platform=x11 --use-gl=egl"
+if [ "$XDG_SESSION_TYPE" == "wayland" ] || [[ $WAYLAND_DISPLAY ]] ; then
+  CHROMIUM_FLAGS="--use-gl=egl"
+fi

diff --git a/chromium.spec b/chromium.spec
index 5d8d8e7..3081d50 100644
--- a/chromium.spec
+++ b/chromium.spec
@@ -1441,14 +1441,19 @@ mkdir -p %{builddir} && cp -a %{_bindir}/gn %{builddir}/
 %install
 rm -rf %{buildroot}
 
-mkdir -p %{buildroot}%{_bindir}
-mkdir -p %{buildroot}%{chromium_path}/locales
+mkdir -p %{buildroot}%{_bindir} \
+         %{buildroot}%{chromium_path}/locales \
+         %{buildroot}%{_sysconfdir}/%{name}
 
-%if %{use_vaapi}
+# install system wide chromium config
+cp -a %{SOURCE2} %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf
 cp -a %{SOURCE3} %{buildroot}%{chromium_path}/%{chromium_browser_channel}.sh
-%else
+
+%if ! %{use_vaapi}
+# remove vaapi flags
 grep -v features %{SOURCE3} > %{buildroot}%{chromium_path}/%{chromium_browser_channel}.sh
 chmod 755 %{buildroot}%{chromium_path}/%{chromium_browser_channel}.sh
+echo "# system wide chromium flags" > %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf
 %endif
 
 export BUILD_TARGET=`cat /etc/redhat-release`
@@ -1607,12 +1612,8 @@ mkdir -p %{buildroot}%{_datadir}/icons/hicolor/24x24/apps
 cp -a chrome/app/theme/chromium/product_logo_24.png %{buildroot}%{_datadir}/icons/hicolor/24x24/apps/%{chromium_browser_channel}.png
 
 # Install the master_preferences file
-mkdir -p %{buildroot}%{_sysconfdir}/%{name}
 install -m 0644 %{SOURCE13} %{buildroot}%{_sysconfdir}/%{name}/
 
-# Install system wide chromium config
-install -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/%{name}/
-
 mkdir -p %{buildroot}%{_datadir}/applications/
 desktop-file-install --dir %{buildroot}%{_datadir}/applications %{SOURCE4}
 

                 reply	other threads:[~2026-08-07 16:04 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178611868059.1.14955688889790175063.rpms-chromium-90d7c820b8ea@fedoraproject.org \
    --to=than@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox