From fd7c2fd5d7bb0ad2a8ccdc956b455eca882b85a4 Mon Sep 17 00:00:00 2001 From: Andrew Lukoshko Date: Fri, 17 Jul 2026 22:30:18 +0000 Subject: [PATCH] Added @esbuild/linux-riscv64 source to fix web UI build on riscv64 --- pcs.spec | 17 ++++++++++++++++- sources | 1 + 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/pcs.spec b/pcs.spec index 06b7f80..4d6add8 100644 --- a/pcs.spec +++ b/pcs.spec @@ -1,6 +1,6 @@ Name: pcs Version: 0.12.2 -Release: 3%{?dist}.1 +Release: 3%{?dist}.1.alma.1 # https://docs.fedoraproject.org/en-US/packaging-guidelines/LicensingGuidelines/ # https://fedoraproject.org/wiki/Licensing:Main?rd=Licensing#Good_Licenses # GPL-2.0-only: pcs @@ -22,6 +22,7 @@ ExclusiveArch: x86_64 s390x ppc64le aarch64 riscv64 %global clean_version %(echo %{version} | sed 's/~//') # To build an official pcs release, comment out branch_or_commit +%global esbuild_version 0.25.12 # Use long commit hash or branch name to build an unreleased version # %%global branch_or_commit 9240ae694fc17f1cd05c7518856cc61581af4e06 %global version_or_commit %{clean_version} @@ -121,6 +122,8 @@ Source76: https://rubygems.org/downloads/tilt-%{version_rubygem_tilt}.gem Source100: https://github.com/ClusterLabs/pcs-web-ui/archive/%{ui_version_or_commit}/%{ui_src_name}.tar.gz Source101: https://github.com/ClusterLabs/pcs-web-ui/releases/download/%{ui_version_or_commit}/pcs-web-ui-node-modules-%{ui_modules_version}.tar.xz +# Platform-specific esbuild binary for riscv64 (not included in the pre-built node_modules tarball) +Source102: https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-%{esbuild_version}.tgz # pcs patches: <= 200 @@ -367,6 +370,15 @@ update_times_patch(){ # update_times_patch %%{PATCH201} +# The pre-built node_modules tarball only ships esbuild binaries for the +# architecture it was built on. Install the riscv64 esbuild binary from a +# separate source so the web UI can be built on riscv64 as well. +%ifarch riscv64 +_esbuild_dir=packages/app/node_modules/@esbuild/linux-riscv64 +mkdir -p ${_esbuild_dir} +tar xzf %{SOURCE102} -C ${_esbuild_dir} --strip-components=1 +%endif + # patch pcs sources %autosetup -S git -n %{pcs_source_name} -N %autopatch -p1 -M 200 @@ -673,6 +685,9 @@ run_all_tests %changelog +* Fri Jul 17 2026 Andrew Lukoshko - 0.12.2-3.1.alma.1 +- Added @esbuild/linux-riscv64 source to fix web UI build on riscv64 + * Fri Apr 17 2026 Michal Pospíšil - 0.12.2-3%{?dist}.1 - Fixed CVE-2026-4800 by updating HA Cluster Management add-on to 0.1.24.3 Resolves: RHEL-164079 diff --git a/sources b/sources index 79fb2eb..4c83e23 100644 --- a/sources +++ b/sources @@ -11,6 +11,7 @@ SHA512 (pcs-web-ui-0.1.24.3.tar.gz) = 82ceca8528982d29d4f231aaef1beb224e416877f7 SHA512 (pcs-web-ui-node-modules-0.1.24.3.tar.xz) = f5ebdda26371906eb4e8673b58dbc639492f29fdbdeca5f76b1988ac42fb53e828753204268916cef87441905c66d39e4d30acd6069707cc39b25b84014ef283 SHA512 (puma-7.1.0.gem) = 5ae17ae8f9805db3f6d37cde74161dd0e2c99ea6eb62b75930eeb26894f4d044eadb5d8fd9cbaa28de0cdd165f63b67736c573b71038c4b6bd41b088f7ca18f9 SHA512 (pyagentx-0.4.pcs.2.tar.gz) = d4194fec9a3e5fefe3793d49b7fec1feafef294c7e613a06046c2993daeefc5cb39d7c5b2b402ff83e49b2d976953f862264288c758c0be09d997b5323cc558a +SHA512 (linux-riscv64-0.25.12.tgz) = 66beca478860294a560306f57f7a39ca04f4e0ccea56b18419718b9e3d796100c912b62efc11a0fb09859480ce749a743e607494bbf1148397660151add8d1d3 SHA512 (pycurl-7.45.6.tar.gz) = 4eb53cbb3c8801950c76adb920b30919ca9f70e3f93dcef898d048244c475ec4a135590d173398efeb7642be33c11cb1742cb2519713088223870141e0cef8b3 SHA512 (rack-3.2.4.gem) = 1fd00e2fb3bcb05886434c843648ad8d28b69e12321ecd058242f7a814e269ad8ec44d66d17ae079b3d1022b7b7473397718dd032a74a6eac5f64ce973c9fe82 SHA512 (rack-protection-4.2.1.gem) = 647852fdbddc1f5b8470f8a7d7cde9ce01c2101f9c448224a983a86718e4705a1fbf71dd93341a8c549d43681084ccaee78d7bc1ff49980b3cec74af3194fbe1