fix: remove net-tools from BuildRequires to fix Fedora 43 build

On Fedora 43, net-tools pulls in systemd which conflicts with
systemd-standalone-tmpfiles in container build environments.
Pre-define ZM_PATH_ARP, ZM_PATH_ARP_SCAN, ZM_PATH_IP, and
ZM_PATH_IFCONFIG in the cmake call instead of relying on
find_program() at build time.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
pull/4604/head
Isaac Connor 2026-02-07 16:49:39 -05:00
parent 63410fbd20
commit 52c5af93f0
1 changed files with 7 additions and 1 deletions

View File

@ -55,7 +55,9 @@ BuildRequires: pcre2-devel
BuildRequires: libjpeg-turbo-devel
BuildRequires: findutils
BuildRequires: coreutils
BuildRequires: net-tools
# net-tools intentionally omitted from BuildRequires to avoid
# systemd conflicts in container build environments.
# Paths are pre-defined in the cmake call below instead.
BuildRequires: perl
BuildRequires: perl-generators
BuildRequires: perl(Archive::Tar)
@ -225,6 +227,10 @@ mv -f CxxUrl-%{CxxUrl_version} ./dep/CxxUrl
-DZM_WEB_USER="%{zmuid_final}" \
-DZM_WEB_GROUP="%{zmgid_final}" \
-DZM_TARGET_DISTRO="%{zmtargetdistro}" \
-DZM_PATH_ARP="/usr/sbin/ip neigh" \
-DZM_PATH_ARP_SCAN="/usr/sbin/arp-scan" \
-DZM_PATH_IP="/usr/sbin/ip" \
-DZM_PATH_IFCONFIG="/usr/sbin/ifconfig" \
.
%cmake_build