From 4415d6055a5461d1d8459f0c39cc94e1dcf353ff Mon Sep 17 00:00:00 2001 From: Eduard Abdullin Date: Tue, 1 Sep 2026 18:59:29 +0300 Subject: [PATCH] Add config for portable build Generate the java-21-openjdk portable from the c10s sources into the a10s-portable branch: RHEL has not shipped the 21.0.12.1.1-2 update to UBI 8 yet, so the portable at portablerelease 2 cannot be built from c8. The portable specfile is identical in c8s, c9s and c10s. Only %undefine pkgos is needed now; the riscv64 bits the old config-portable-riscv64.yaml carried (debug_package, ARCH_DATA_MODEL, ExclusiveArch, the RPM 4.19 %files fix) are all upstream. --- config-portable.yaml | 29 +++++++++++++++++++++++++++++ scripts/replace_spec.sh | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 config-portable.yaml create mode 100644 scripts/replace_spec.sh diff --git a/config-portable.yaml b/config-portable.yaml new file mode 100644 index 0000000..2362b5f --- /dev/null +++ b/config-portable.yaml @@ -0,0 +1,29 @@ +parameters: + custom_target_branch: "a10s-portable" + pre_clean: true + +actions: + - run_script: + - script: "replace_spec.sh" + cwd: "rpms" + + - replace: + - target: "spec" + find: | + %if 0%{?centos} != 0 && 0%{?centos} != 0%{centos_buildos} + %global pkgos rhel%{?centos} + %endif + replace: | + %if 0%{?centos} != 0 && 0%{?centos} != 0%{centos_buildos} + %global pkgos rhel%{?centos} + %endif + %if 0%{?almalinux} + %undefine pkgos + %endif + count: 1 + + - changelog_entry: + - name: "Eduard Abdullin" + email: "eabdullin@almalinux.org" + line: + - "Portable build" diff --git a/scripts/replace_spec.sh b/scripts/replace_spec.sh new file mode 100644 index 0000000..b835d79 --- /dev/null +++ b/scripts/replace_spec.sh @@ -0,0 +1,2 @@ +rm java-21-openjdk.spec +ln -s java-21-openjdk-portable.specfile java-21-openjdk.spec