public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/chromium] epel9: - Fix FTBFS caused by tsc on ppc64le
@ 2026-09-16 14:52 Than Ngo
0 siblings, 0 replies; only message in thread
From: Than Ngo @ 2026-09-16 14:52 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/chromium
Branch : epel9
Commit : 28137202e8d07d3ffa08f1569fdc666a62eeef49
Author : Than Ngo <than@redhat.com>
Date : 2026-09-15T22:44:09+02:00
Stats : +17/-0 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/chromium/c/28137202e8d07d3ffa08f1569fdc666a62eeef49?branch=epel9
Log:
- Fix FTBFS caused by tsc on ppc64le
- Replace unbundle python3 with system python3
---
diff --git a/chromium.spec b/chromium.spec
index f835085..6fef9b3 100644
--- a/chromium.spec
+++ b/chromium.spec
@@ -560,6 +560,8 @@ Source13: nodejs-sources.sh
BuildRequires: openssl-devel
%endif
+# TypeScript for ppc64le
+Source14: https://github.com/microsoft/TypeScript/releases/download/v7.0.2/typescript-linux-ppc64.tgz
BuildRequires: golang
BuildRequires: clang
BuildRequires: clang-tools-extra
@@ -1272,6 +1274,21 @@ ln -fs $(which gperf) third_party/gperf/cipd/bin/gperf
mkdir -p third_party/rust-toolchain/bin/
ln -fs $(which rustc) third_party/rust-toolchain/bin/rustc
+# need bundle typescript on ppc64le as workaround for FTBFS
+%ifarch ppc64le
+tar xf %{SOURCE14} -C third_party/typescript/linux-amd64/src/
+pushd third_party/typescript/linux-amd64/src/
+cp package/lib/tsc* lib/
+popd
+%endif
+
+# remove bundle python3 and replace it with system one
+# fix FTBFS on aarch64, ppc64le
+# ERROR at //build/toolchain/concurrent_links.gni:156:19: Script returned non-zero exit code.
+%ifnarch x86_64
+cp $(which python3) third_party/cpython3/host/bin/python3
+%endif
+
%if %{bundlelibusbx}
# no hackity hack hack
%else
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-16 14:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-16 14:52 [rpms/chromium] epel9: - Fix FTBFS caused by tsc on ppc64le Than Ngo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox