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] epel10.2: Temporarily disable system_esbuild by default for the EPEL build
Date: Sun, 11 Oct 2026 12:31:48 GMT	[thread overview]
Message-ID: <179172190858.1.2983880508327550971.rpms-chromium-a969f4e476fe@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/chromium
            Branch : epel10.2
            Commit : a969f4e476fed873fe45c2294d295487cab9b734
            Author : Than Ngo <than@redhat.com>
            Date   : 2026-10-11T13:32:16+02:00
            Stats  : +48/-0 in 3 file(s)
            URL    : https://src.fedoraproject.org/rpms/chromium/c/a969f4e476fed873fe45c2294d295487cab9b734?branch=epel10.2

            Log:
            Temporarily disable system_esbuild by default for the EPEL build
re-enable it once esbuild has been updated

---
diff --git a/.gitignore b/.gitignore
index 3dcec53..d4c5676 100644
--- a/.gitignore
+++ b/.gitignore
@@ -47,3 +47,6 @@
 /rollup-linux-powerpc64le-gnu-4.22.4.tgz
 /node-v22.22.0-stripped.tar.gz
 /typescript-linux-ppc64.tgz
+/linux-arm64-0.28.2.tgz
+/linux-ppc64-0.28.2.tgz
+/linux-x64-0.28.2.tgz

diff --git a/chromium.spec b/chromium.spec
index d73188d..12d92ec 100644
--- a/chromium.spec
+++ b/chromium.spec
@@ -59,6 +59,14 @@
 %global build_headless 0
 %endif
 
+# Temporarily disable system_esbuild by default for the epel build
+# re-enable it once esbuild has been updated
+%global system_esbuild 1
+%global esbuild_version 0.28.2
+%if 0%{?rhel}
+%global system_esbuild 0
+%endif
+
 # set nodejs_version
 %global nodejs_version v22.22.0
 
@@ -579,8 +587,25 @@ Source13: nodejs-sources.sh
 BuildRequires: openssl-devel
 %endif
 
+# License - Apache-2.0, https://github.com/microsoft/TypeScript?tab=Apache-2.0-1-ov-file
 # TypeScript for ppc64le
+%ifarch ppc64le
 Source14: https://github.com/microsoft/TypeScript/releases/download/v7.0.2/typescript-linux-ppc64.tgz
+%endif
+
+# License - MIT License, https://github.com/evanw/esbuild/blob/main/LICENSE.md 
+%if ! %{system_esbuild}
+%ifarch x86_64
+Source15: https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-%{esbuild_version}.tgz
+%endif
+%ifarch ppc64le
+Source16: https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-%{esbuild_version}.tgz
+%endif
+%ifarch aarch64
+Source17: https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-%{esbuild_version}.tgz
+%endif
+%endif
+
 BuildRequires: golang
 BuildRequires: clang
 BuildRequires: clang-tools-extra
@@ -904,8 +929,10 @@ BuildRequires: simdutf-devel
 %endif
 
 # esbuild is needed
+%if %{system_esbuild}
 BuildRequires: golang-github-evanw-esbuild
 BuildRequires: nodejs-esbuild
+%endif
 
 # There is a hardcoded check for nss 3.26 in the chromium code (crypto/nss_util.cc)
 Requires: nss%{_isa} >= 3.26
@@ -1288,8 +1315,23 @@ mkdir -p third_party/node/linux/node-linux-x64/bin
 
 # Add correct path for esbuild binary
 mkdir -p third_party/devtools-frontend/src/third_party/esbuild
+%if %{system_esbuild}
 ln -s $(which esbuild) third_party/devtools-frontend/src/third_party/esbuild/esbuild
 cp -a /usr/lib/node_modules/*esbuild* third_party/devtools-frontend/src/node_modules/ 
+%else
+%ifarch x86_64
+tar xf %{SOURCE15} -C third_party/devtools-frontend/src/third_party/
+%endif
+%ifarch ppc64le
+tar xf %{SOURCE16} -C third_party/devtools-frontend/src/third_party/
+%endif
+%ifarch aarch64
+tar xf %{SOURCE17} -C third_party/devtools-frontend/src/third_party/
+%endif
+pushd third_party/devtools-frontend/src/third_party/esbuild
+ln -s ../package/bin/esbuild .
+popd
+%endif
 
 # Remove bundle gn and replace it with a system gn or bootstrap gn as it is x86_64 and causes
 # FTBFS on other arch like aarch64/ppc64le

diff --git a/sources b/sources
index e066e83..0a0d8ba 100644
--- a/sources
+++ b/sources
@@ -1,3 +1,6 @@
 SHA512 (node-v22.22.0-stripped.tar.gz) = f32a8a73063b3c78cbacf941e11dd529ebcf2618b3ba661966312e49ee9870c43a3acf256e8d331a4b0b621b16a501810c02a3ad763c75884cc250addca8e106
 SHA512 (typescript-linux-ppc64.tgz) = 0ce471e5bdec77fe12ede6b2c66e0542ff80ec2ae45081916878b023ca221d3008d5f00f5a1178274bc09640bc6e20251d2555c31310ded8d9dbf0d56e742288
 SHA512 (chromium-155.0.8059.39-clean.tar.xz) = 0c7b33f692b6665c642e0a9bc8e78769cc6f7e0be69593804591d47caf119498fc21f37441f1cfa82b719ffd92357c37b222bcc8e16a0c71ef7d516cb31fbf90
+SHA512 (linux-arm64-0.28.2.tgz) = a56e000b43f78adf1cedda3d315338a79d45cc7cdd33f4d9adeaeeae045c1c9d964dad55435088ab5f319dc7e9049c38a23922659aca5b6c8805604ff768fa52
+SHA512 (linux-ppc64-0.28.2.tgz) = 0805e5f83b5df5452e25df2928a77087a30b9b7314322a8c3e6859ded4d25cfa9fc90def0e5e91e6165d67f918a232b8a1f5ed75f4afd6d16af17cd6c7785e35
+SHA512 (linux-x64-0.28.2.tgz) = e314d9af5154992a105b85c85a68addedcd0ad44d933e3773f45d5f3144e298179d177c8ef178ef74fb56d9bcdc3122e7d0f610d0551247e588603d517c03f1d

                 reply	other threads:[~2026-10-11 12:31 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=179172190858.1.2983880508327550971.rpms-chromium-a969f4e476fe@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