rpm: disable dhclient on Fedora 41 and RHEL 10
They're off by default, but SPEC file turns them on. Don't do that in future distros. https://issues.redhat.com/browse/RHEL-24622
This commit is contained in:
@@ -50,8 +50,10 @@
|
|||||||
###############################################################################
|
###############################################################################
|
||||||
%if 0%{?fedora} > 40 || 0%{?rhel} >= 10
|
%if 0%{?fedora} > 40 || 0%{?rhel} >= 10
|
||||||
%bcond_without meson
|
%bcond_without meson
|
||||||
|
%bcond_with dhclient
|
||||||
%else
|
%else
|
||||||
%bcond_with meson
|
%bcond_with meson
|
||||||
|
%bcond_without dhclient
|
||||||
%endif
|
%endif
|
||||||
%bcond_without adsl
|
%bcond_without adsl
|
||||||
%bcond_without bluetooth
|
%bcond_without bluetooth
|
||||||
@@ -655,7 +657,11 @@ Preferably use nmcli instead.
|
|||||||
%endif
|
%endif
|
||||||
-Dnft=%{_sbindir}/nft \
|
-Dnft=%{_sbindir}/nft \
|
||||||
-Diptables=%{_sbindir}/iptables \
|
-Diptables=%{_sbindir}/iptables \
|
||||||
|
%if %{with dhclient}
|
||||||
-Ddhclient=%{_sbindir}/dhclient \
|
-Ddhclient=%{_sbindir}/dhclient \
|
||||||
|
%else
|
||||||
|
-Ddhclient=no \
|
||||||
|
%endif
|
||||||
-Ddhcpcanon=no \
|
-Ddhcpcanon=no \
|
||||||
-Ddhcpcd=no \
|
-Ddhcpcd=no \
|
||||||
-Dconfig_dhcp_default=%{dhcp_default} \
|
-Dconfig_dhcp_default=%{dhcp_default} \
|
||||||
@@ -797,7 +803,11 @@ autoreconf --install --force
|
|||||||
--enable-static=no \
|
--enable-static=no \
|
||||||
--with-nft=%{_sbindir}/nft \
|
--with-nft=%{_sbindir}/nft \
|
||||||
--with-iptables=%{_sbindir}/iptables \
|
--with-iptables=%{_sbindir}/iptables \
|
||||||
|
%if %{with dhclient}
|
||||||
--with-dhclient=%{_sbindir}/dhclient \
|
--with-dhclient=%{_sbindir}/dhclient \
|
||||||
|
%else
|
||||||
|
--with-dhclient=no \
|
||||||
|
%endif
|
||||||
--with-dhcpcd=no \
|
--with-dhcpcd=no \
|
||||||
--with-dhcpcanon=no \
|
--with-dhcpcanon=no \
|
||||||
--with-config-dhcp-default=%{dhcp_default} \
|
--with-config-dhcp-default=%{dhcp_default} \
|
||||||
|
Reference in New Issue
Block a user