only apply el5 endian patch on 9.9p2

This commit is contained in:
boypt
2025-04-10 14:39:50 +08:00
parent a8859a5cac
commit fc38ab238d

View File

@@ -238,7 +238,7 @@ environment.
# Applay a patch if glibc version is 2.5, not sure about other versions
%global glibc_version %(ldd --version 2>&1 | head -n1 | grep -oP '[0-9.]+')
echo "GLIBC version: %{glibc_version}"
%if "%{glibc_version}" <= "2.5"
%if "%{glibc_version}" <= "2.5" && "%{opensshver}" == "9.9p2"
%patch0 -p0
%endif