commit 866f4abe82537146a9af467a8f1a0159f52e0363 Author: Andrew Lukoshko Date: Wed Feb 18 17:07:52 2026 +0000 Added @esbuild/linux-riscv64 source to fix web UI build on riscv64 diff --git a/config.yaml b/config.yaml new file mode 100644 index 0000000..b100707 --- /dev/null +++ b/config.yaml @@ -0,0 +1,49 @@ +actions: + - replace: + - target: "spec" + find: | + # Use long commit hash or branch name to build an unreleased version + replace: | + %global esbuild_version 0.25.12 + # Use long commit hash or branch name to build an unreleased version + count: 1 + - target: "spec" + find: | + Source101: https://github.com/ClusterLabs/pcs-web-ui/releases/download/%{ui_version_or_commit}/pcs-web-ui-node-modules-%{ui_modules_version}.tar.xz + replace: | + 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 + count: 1 + - target: "spec" + find: | + # patch pcs sources + replace: | + # 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 + count: 1 + - target: "sources" + find: | + SHA512 (pyagentx-0.4.pcs.2.tar.gz) = d4194fec9a3e5fefe3793d49b7fec1feafef294c7e613a06046c2993daeefc5cb39d7c5b2b402ff83e49b2d976953f862264288c758c0be09d997b5323cc558a + replace: | + SHA512 (pyagentx-0.4.pcs.2.tar.gz) = d4194fec9a3e5fefe3793d49b7fec1feafef294c7e613a06046c2993daeefc5cb39d7c5b2b402ff83e49b2d976953f862264288c758c0be09d997b5323cc558a + SHA512 (linux-riscv64-0.25.12.tgz) = 66beca478860294a560306f57f7a39ca04f4e0ccea56b18419718b9e3d796100c912b62efc11a0fb09859480ce749a743e607494bbf1148397660151add8d1d3 + count: 1 + + - modify_release: + - suffix: ".alma.1" + enabled: true + + - changelog_entry: + - name: "Andrew Lukoshko" + email: "alukoshko@almalinux.org" + line: + - "Added @esbuild/linux-riscv64 source to fix web UI build on riscv64"