mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/boypt/openssh-rpms.git
synced 2026-09-20 08:03:38 +08:00
only apply patch on glibc <= 2.5(EL5)
This commit is contained in:
@@ -221,7 +221,11 @@ environment.
|
||||
%setup -q
|
||||
%endif
|
||||
|
||||
%global glibc_version %(ldd --version 2>&1 | head -n1 | grep -oP '[0-9.]+')
|
||||
echo "GLIBC version: %{glibc_version}"
|
||||
%if "%{glibc_version}" <= "2.5"
|
||||
%patch0 -p0
|
||||
%endif
|
||||
|
||||
%if ! %{no_build_openssl}
|
||||
# Add install perl to ensure OpenSSL can be used.
|
||||
|
||||
Reference in New Issue
Block a user