]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Fix without_openssl always being set to 1
authorWu Weixin <wuweixin@gmail.com>
Fri, 2 Aug 2024 14:16:40 +0000 (22:16 +0800)
committerDamien Miller <djm@mindrot.org>
Fri, 13 Sep 2024 04:09:19 +0000 (14:09 +1000)
In Fedora systems, %{?rhel} is empty. In RHEL systems, %{?fedora} is
empty. Therefore, the original code always sets without_openssl to 1.

contrib/redhat/openssh.spec

index 8893f3ad3bcecc71984afbdccde62b0582bcefb9..c053a80b969b69b9d2b08877e156b7eba08b3ee1 100644 (file)
 
 %global without_openssl 0
 # build without openssl where 1.1.1 is not available
-%if 0%{?fedora} <= 28
+%if %{defined fedora} && 0%{?fedora} <= 28
 %global without_openssl 1
 %endif
-%if 0%{?rhel} <= 7
+%if %{defined rhel} && 0%{?rhel} <= 7
 %global without_openssl 1
 %endif