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: - Fixed build error with clang20 in f42 and rawhide
Date: Fri, 07 Aug 2026 16:07:28 GMT	[thread overview]
Message-ID: <178611884849.1.5967773741072797477.rpms-chromium-34fff1ea7ffd@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/chromium
            Branch : epel9-next
            Commit : 34fff1ea7ffd70daacce0b18350359c78e194fd8
            Author : Than Ngo <than@redhat.com>
            Date   : 2025-03-12T10:01:48+01:00
            Stats  : +2/-2 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/chromium/c/34fff1ea7ffd70daacce0b18350359c78e194fd8?branch=epel9-next

            Log:
            - Fixed build error with clang20 in f42 and rawhide
- Fixed build error when using ccache

---
diff --git a/chromium-127-rust-clanglib.patch b/chromium-127-rust-clanglib.patch
index 3adf978..d419701 100644
--- a/chromium-127-rust-clanglib.patch
+++ b/chromium-127-rust-clanglib.patch
@@ -51,7 +51,7 @@ diff -up chromium-121.0.6167.57/build/config/clang/BUILD.gn.rust-clang_lib chrom
 +          assert(false)  # Unhandled cpu type
 +        }
 +        # different clang lib dir in fedora/epel
-+        if (clang_version == "17" || clang_version == "18" || clang_version == "19") {
++        if (clang_version == "17" || clang_version == "18" || clang_version == "19" || clang_version == "20") {
 +          _suffix = ""
 +        } else if (clang_version == "14" || clang_version == "15" || clang_version == "16") {
 +          _libprefix = "64"

diff --git a/chromium.spec b/chromium.spec
index 5adf400..6fb326e 100644
--- a/chromium.spec
+++ b/chromium.spec
@@ -1232,7 +1232,7 @@ rust_sysroot_absolute="$(rustc --print sysroot)"
 # set clang version
 clang_version="$(clang --version | sed -n 's/clang version //p' | cut -d. -f1)"
 %if 0%{?fedora} > 41
-clang_base_path="$(which clang | sed 's#/bin/.*##')"
+clang_base_path="$(PATH=/usr/bin:/usr/sbin which clang | sed 's#/bin/.*##')"
 %else
 clang_base_path="$(clang --version | grep InstalledDir | cut -d' ' -f2 | sed 's#/bin##')"
 %endif

                 reply	other threads:[~2026-08-07 16:07 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=178611884849.1.5967773741072797477.rpms-chromium-34fff1ea7ffd@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