Added @esbuild/linux-riscv64 source to fix web UI build on riscv64
This commit is contained in:
parent
430329f303
commit
9d48445970
17
pcs.spec
17
pcs.spec
@ -1,6 +1,6 @@
|
||||
Name: pcs
|
||||
Version: 0.12.2
|
||||
Release: 2%{?dist}
|
||||
Release: 2%{?dist}.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
|
||||
* Wed Feb 18 2026 Andrew Lukoshko <alukoshko@almalinux.org> - 0.12.2-2.alma.1
|
||||
- Added @esbuild/linux-riscv64 source to fix web UI build on riscv64
|
||||
|
||||
* Wed Jan 7 2026 Michal Pospíšil <mpospisi@redhat.com> - 0.12.2-2
|
||||
- Fixed HA Cluster Management add-on source file
|
||||
Resolves: RHEL-132569
|
||||
|
||||
1
sources
1
sources
@ -1,4 +1,5 @@
|
||||
SHA512 (pyagentx-0.4.pcs.2.tar.gz) = d4194fec9a3e5fefe3793d49b7fec1feafef294c7e613a06046c2993daeefc5cb39d7c5b2b402ff83e49b2d976953f862264288c758c0be09d997b5323cc558a
|
||||
SHA512 (linux-riscv64-0.25.12.tgz) = 66beca478860294a560306f57f7a39ca04f4e0ccea56b18419718b9e3d796100c912b62efc11a0fb09859480ce749a743e607494bbf1148397660151add8d1d3
|
||||
SHA512 (base64-0.2.0.gem) = ee5cdc30e73e625c15cb674cdd16a839ad44ffb0a27d1363f94491b48d95da37a2976c34f6f616b722a35750a067eb2245c4746d7d36f8e9a9ecee68ff5540fb
|
||||
SHA512 (rackup-2.2.1.gem) = e63c4dee6f1a677d507df0ae7bcebec88673e7a0a8d6621997949045db60801907038a148a0608f6e62864cb2ac056fca382f3438dc227b0fa7a3be52d56ea66
|
||||
SHA512 (childprocess-5.1.0.gem) = 487ee82e6e7cc1e81ed6740e3eb54e12e9d1065de92eda71f48039e377db8a827c647ce6c9314157ece577be52519bbe014aadcda4a7a748589fad7dbf19ae3a
|
||||
|
||||
Loading…
Reference in New Issue
Block a user