From 8076ef1b1845255922726f7c889f38856fc9a9f2 Mon Sep 17 00:00:00 2001 From: eabdullin Date: Mon, 18 Aug 2025 12:26:59 +0300 Subject: [PATCH] Add config for riscv64 portable --- config-portable-riscv64.yaml | 93 ++++++++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 config-portable-riscv64.yaml diff --git a/config-portable-riscv64.yaml b/config-portable-riscv64.yaml new file mode 100644 index 0000000..f513151 --- /dev/null +++ b/config-portable-riscv64.yaml @@ -0,0 +1,93 @@ +parameters: + custom_target_branch: "a8-portable-riscv64" + pre_clean: true + +actions: + - run_script: + - script: "replace_spec.sh" + cwd: "rpms" + + - replace: + - target: "spec" + find: | + # Enable fastdebug builds by default on relevant arches. + %bcond_without fastdebug + replace: | + %ifarch riscv64 + %define debug_package %{nil} + %endif + + # Enable fastdebug builds by default on relevant arches. + %bcond_without fastdebug + count: 1 + - replace: + - target: "spec" + find: | + %global ea_designator "" + %global ea_designator_zip %{nil} + replace: | + %global ea_designator beta + %global ea_designator_zip -%{ea_designator} + count: 1 + - replace: + - target: "spec" + find: | + %define miscportablearchive() %{miscportablename}.tar.xz + replace: | + %define miscportablearchive() %{miscportablename}.tar.xz + + # RPM 4.19 no longer accept our double percentaged %%{nil} passed to %%{1} + # so we have to pass in "" but evaluate it, otherwise files record will include it + %define jreportablearchiveForFiles() %(echo %{jreportablearchive -- ""}) + %define jdkportablearchiveForFiles() %(echo %{jdkportablearchive -- ""}) + %define staticlibsportablearchiveForFiles() %(echo %{staticlibsportablearchive -- ""}) + count: 1 + - replace: + - target: "spec" + find: | + Source0: https://openjdk-sources.osci.io/openjdk%{featurever}/open%{vcstag}%{ea_designator_zip}.tar.xz + replace: | + Source0: https://openjdk-sources.osci.io/openjdk%{featurever}/open%{vcstag}.tar.xz + count: 1 + - replace: + - target: "spec" + find: | + echo "Upstream version-pre setting is '${UPSTREAM_EA_DESIGNATOR}'"; + exit 17 + replace: | + echo "Upstream version-pre setting is '${UPSTREAM_EA_DESIGNATOR}'"; + # exit 17 + count: 1 + - replace: + - target: "spec" + find: | + replace: | + count: 1 + - replace: + - target: "spec" + find: | + %ifarch s390x sparc64 alpha %{power64} %{aarch64} + export ARCH_DATA_MODEL=64 + %endif + replace: | + %ifarch s390x sparc64 alpha %{power64} %{aarch64} riscv64 + export ARCH_DATA_MODEL=64 + %endif + count: 1 + - replace: + - target: "spec" + find: "jreportablearchive -- %%{nil}" + replace: "jreportablearchiveForFiles" + count: 1 + - replace: + - target: "spec" + find: "staticlibsportablearchive -- %%{nil}" + replace: "staticlibsportablearchiveForFiles" + count: 1 + + + - changelog_entry: + - name: "alukoshko" + email: "alukoshko@almalinux.org" + line: + - "Portable build for riscv64"