From 52c5af93f08a4fb3f44fbde44ebda2fe36605a5b Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Sat, 7 Feb 2026 16:49:39 -0500 Subject: [PATCH] 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 --- distros/redhat/zoneminder.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/distros/redhat/zoneminder.spec b/distros/redhat/zoneminder.spec index 61f4c1bb6..690b5ecbd 100644 --- a/distros/redhat/zoneminder.spec +++ b/distros/redhat/zoneminder.spec @@ -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