fix(autopatch): restore AlmaLinux el8 portablesuffix override

almalinux-release defines the %centos macro (%centos %{major}), so the
upstream spec's `%if 0%{?centos} == 0` test treats AlmaLinux as CentOS
and sets portablesuffix to el9. AlmaLinux must consume the el8 portable
packages (like RHEL), so the previous action was NOT obsolete — dropping
it left the "Set portablesuffix to el8" changelog with nothing setting it.

Re-add the `%if 0%{?almalinux}` -> el8 override, anchored on the stable
`%global portablebuilddir /builddir/build/BUILD` line (matching the a10s
and a10 branch configs) instead of the fragile portablesuffix/%endif anchor.
This commit is contained in:
eabdullin 2026-07-23 10:34:29 +03:00
parent df7d201f48
commit 61d5a9e8c8

View File

@ -1,4 +1,15 @@
actions:
- replace:
- target: "spec"
find: "%global portablebuilddir /builddir/build/BUILD"
replace: |
%global portablebuilddir /builddir/build/BUILD
%if 0%{?almalinux}
%global portablesuffix el8
%endif
count: 1
- modify_release:
- suffix: ".alma.1"
enabled: true