Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package suricata for openSUSE:Factory checked in at 2026-11-26 15:53:30 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/suricata (Old) and /work/SRC/openSUSE:Factory/.suricata.new.1340718 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "suricata" Thu Nov 26 15:53:30 2026 rev:10 rq:1400396 version:8.0.8 Changes: -------- --- /work/SRC/openSUSE:Factory/suricata/suricata.changes 2026-11-16 09:14:27.899877980 +0100 +++ /work/SRC/openSUSE:Factory/.suricata.new.1340718/suricata.changes 2026-11-26 15:53:42.728527287 +0100 @@ -1,0 +2,22 @@ +Tue Nov 17 20:17:21 UTC 2026 - Eyad Issa <[email protected]> + +- Add rpmlint exceptions for the intentional multibuild spec, + library and logrotate names, compatible with SLE 15 and newer + rpmlint versions. +- Specify permissions for ghost files. + +------------------------------------------------------------------- +Tue Nov 17 18:37:18 UTC 2026 - Eyad Issa <[email protected]> + +- Make hiredis, NFLOG, AF_XDP/eBPF and Hyperscan optional on + SLE 15 SP7, where their build dependencies are unavailable. +- Select the standard DPDK development package on SLE 15 SP7. + +------------------------------------------------------------------- +Tue Nov 17 18:29:33 UTC 2026 - Eyad Issa <[email protected]> + +- Add a DPDK multibuild flavor with separate, conflicting runtime + and development packages; keep the default flavor free of DPDK + dependencies. + +------------------------------------------------------------------- New: ---- _multibuild suricata-rpmlintrc ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ suricata.spec ++++++ --- /var/tmp/diff_new_pack.yD4YPd/_old 2026-11-26 15:53:43.611564801 +0100 +++ /var/tmp/diff_new_pack.yD4YPd/_new 2026-11-26 15:53:43.612564843 +0100 @@ -17,26 +17,38 @@ # +%global flavor @BUILD_FLAVOR@%{nil} %define soname 8_0_8 +%if "%{?flavor}" == "dpdk" +%define dpdk_flavor 1 +%define package_name suricata-dpdk +%define library_name libsuricata%{soname}-dpdk +%else +%define dpdk_flavor 0 +%define package_name suricata +%define library_name libsuricata%{soname} +%endif # Handling libxdp support -%if 0%{?suse_version} <= 1500 && 0%{?sle_version} <= 150500 && 0%{?is_opensuse} +%if (0%{?suse_version} <= 1500 && 0%{?sle_version} <= 150500 && 0%{?is_opensuse}) || (0%{?sle_version} == 150700 && !0%{?is_opensuse}) %bcond_with xdp_bpf %else %bcond_without xdp_bpf %endif -# libnetfilter_log is not available in the openSUSE Leap 16.0/16.1 repositories -%if 0%{?is_opensuse} -%if 0%{?suse_version} == 1600 || 0%{?suse_version} == 1610 +# libnetfilter_log is unavailable in Leap 16.0/16.1 and SLE 15 SP7. +%if (0%{?is_opensuse} && (0%{?suse_version} == 1600 || 0%{?suse_version} == 1610)) || (0%{?sle_version} == 150700 && !0%{?is_opensuse}) %bcond_with nflog %else %bcond_without nflog %endif + +# SLE 15 SP7's configured repository does not provide hiredis. +%if 0%{?sle_version} == 150700 && !0%{?is_opensuse} + %bcond_with hiredis %else - %bcond_without nflog + %bcond_without hiredis %endif - # Handling libmagic and libnet support %if 0%{?suse_version} <= 1500 && 0%{?sle_version} <= 150600 && 0%{?is_opensuse} %ifarch aarch64 @@ -52,25 +64,30 @@ %endif # vectorscan (libhs) only supports 64-bit ARM and x86_64 +%if 0%{?sle_version} == 150700 && !0%{?is_opensuse} + %bcond_with libhs +%else %ifarch %{arm64} x86_64 %bcond_without libhs %else %bcond_with libhs %endif +%endif -Name: suricata +Name: %{package_name} Version: 8.0.8 Release: 0 Summary: Open Source Next Generation Intrusion Detection and Prevention Engine License: GPL-2.0-only URL: https://www.openinfosecfoundation.org/ -Source0: %{URL}/download/%{name}-%{version}.tar.gz -Source1: %{URL}/download/%{name}-%{version}.tar.gz.sig -Source2: https://www.openinfosecfoundation.org/downloads/OISF.pub#/%{name}.keyring +Source0: %{URL}/download/suricata-%{version}.tar.gz +Source1: %{URL}/download/suricata-%{version}.tar.gz.sig +Source2: https://www.openinfosecfoundation.org/downloads/OISF.pub#/suricata.keyring Source3: suricata.service Source4: suricata.sysconfig Source5: suricata.logrotate -Source6: %{name}-user.conf +Source6: suricata-user.conf +Source99: suricata-rpmlintrc BuildRequires: cargo BuildRequires: cargo-packaging BuildRequires: chrpath @@ -82,7 +99,9 @@ BuildRequires: rust >= 1.75.0 BuildRequires: systemd-rpm-macros BuildRequires: sysuser-tools +%if %{with hiredis} BuildRequires: pkgconfig(hiredis) +%endif BuildRequires: pkgconfig(hwloc) >= 2.0.0 BuildRequires: pkgconfig(jansson) BuildRequires: pkgconfig(libcap-ng) @@ -101,6 +120,19 @@ BuildRequires: pkgconfig(nss) BuildRequires: pkgconfig(yaml-0.1) BuildRequires: pkgconfig(zlib) +%if %{dpdk_flavor} +ExclusiveArch: x86_64 aarch64 ppc64le +%if 0%{?sle_version} == 150700 && !0%{?is_opensuse} +BuildRequires: dpdk-devel +%endif +BuildRequires: pkgconfig(libdpdk) >= 19.11 +BuildRequires: libnuma-devel +Provides: suricata = %{version}-%{release} +Conflicts: suricata +%else +Conflicts: suricata-dpdk +%endif +Requires: %{library_name} = %{version}-%{release} Requires: python3-PyYAML Requires(pre): %fillup_prereq Recommends: jq @@ -142,10 +174,15 @@ information about the Consortium is available, as well as a list of our current Consortium Members. -%package -n libsuricata%{soname} +%package -n %{library_name} Summary: Open Source Next Generation Intrusion Detection and Prevention Engine Library +%if %{dpdk_flavor} +Conflicts: libsuricata%{soname} +%else +Conflicts: libsuricata%{soname}-dpdk +%endif -%description -n libsuricata%{soname} +%description -n %{library_name} The Suricata Engine is an Open Source Next Generation Intrusion Detection and Prevention Engine. @@ -153,7 +190,12 @@ %package devel Summary: Development files for the Suricata engine library -Requires: libsuricata%{soname} = %{version} +Requires: %{library_name} = %{version}-%{release} +%if %{dpdk_flavor} +Conflicts: suricata-devel +%else +Conflicts: suricata-dpdk-devel +%endif Requires: pkgconfig(jansson) %if %{with libmagic} %if 0%{?suse_version} >= 1600 @@ -170,7 +212,7 @@ This package contains the development files for the Suricata engine library. %prep -%autosetup +%autosetup -n suricata-%{version} # Fix path in manpage sed -i 's|%{_prefix}/local||g' doc/userguide/suricata.1 @@ -183,8 +225,15 @@ --enable-gccmarch-native=no \ --enable-year2038 \ --enable-python \ +%if %{with hiredis} --enable-hiredis \ +%else + --disable-hiredis \ +%endif --enable-shared \ +%if %{dpdk_flavor} + --enable-dpdk \ +%endif %if %{with xdp_bpf} --enable-ebpf \ %else @@ -208,7 +257,7 @@ # --output-sync=none is needed to avoid GNU Make # buffering the entire cargo build output %make_build --output-sync=none -%sysusers_generate_pre %{SOURCE6} %{name} %{name}-user.conf +%sysusers_generate_pre %{SOURCE6} %{name} suricata-user.conf %install %make_install install-library install-headers @@ -229,10 +278,10 @@ rm -rf %{buildroot}%{_libdir}/libsuricata*.a # install misc files -install -Dpm 0644 %{SOURCE3} %{buildroot}%{_unitdir}/%{name}.service -install -Dpm 0644 %{SOURCE4} %{buildroot}%{_fillupdir}/sysconfig.%{name} -install -Dpm 0644 %{SOURCE5} %{buildroot}%{_sysconfdir}/logrotate.d/%{name} -install -Dpm 0644 %{SOURCE6} %{buildroot}%{_sysusersdir}/%{name}-user.conf +install -Dpm 0644 %{SOURCE3} %{buildroot}%{_unitdir}/suricata.service +install -Dpm 0644 %{SOURCE4} %{buildroot}%{_fillupdir}/sysconfig.suricata +install -Dpm 0644 %{SOURCE5} %{buildroot}%{_sysconfdir}/logrotate.d/suricata +install -Dpm 0644 %{SOURCE6} %{buildroot}%{_sysusersdir}/suricata-user.conf mkdir -p %{buildroot}%{_sbindir} ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rcsuricata @@ -249,11 +298,11 @@ -exec chmod a-x {} \; %pre -f %{name}.pre -%service_add_pre %{name}.service +%service_add_pre suricata.service %post -%service_add_post %{name}.service -%fillup_only +%service_add_post suricata.service +%fillup_only -n suricata # Migrate existing logs and libs to the new user if they exist if [ $1 -ge 1 ]; then # Notify the user about the security hardening only once and migrate files @@ -276,12 +325,12 @@ suricata-update || : %preun -%service_del_preun %{name}.service +%service_del_preun suricata.service %postun -%service_del_postun %{name}.service +%service_del_postun suricata.service -%ldconfig_scriptlets -n libsuricata%{soname} +%ldconfig_scriptlets -n %{library_name} %files %license COPYING @@ -303,14 +352,14 @@ %{_mandir}/man1/suricatactl-filestore.1%{?ext_man} %dir %attr(0750,suricata,suricata) %{_localstatedir}/lib/suricata -%{_unitdir}/%{name}.service -%{_sysusersdir}/%{name}-user.conf -%config(noreplace) %{_sysconfdir}/logrotate.d/%{name} -%{_fillupdir}/sysconfig.%{name} -%ghost %{_localstatedir}/lib/suricata.migrated-to-nonroot -%ghost %{_localstatedir}/adm/update-messages/%{name}-%{version}-%{release} +%{_unitdir}/suricata.service +%{_sysusersdir}/suricata-user.conf +%config(noreplace) %{_sysconfdir}/logrotate.d/suricata +%{_fillupdir}/sysconfig.suricata +%ghost %attr(0644,root,root) %{_localstatedir}/lib/suricata.migrated-to-nonroot +%ghost %attr(0644,root,root) %{_localstatedir}/adm/update-messages/%{name}-%{version}-%{release} -%files -n libsuricata%{soname} +%files -n %{library_name} %{_libdir}/libsuricata.so.* %files devel ++++++ _multibuild ++++++ <multibuild> <flavor>dpdk</flavor> </multibuild> ++++++ suricata-rpmlintrc ++++++ # Both OBS flavors use suricata.spec, while the DPDK source RPM is named # suricata-dpdk. The mismatch is intentional for this multibuild flavor. addFilter(r'^suricata-dpdk\.src: E: invalid-spec-name$') # The flavor suffix distinguishes the mutually exclusive library builds. addFilter(r'^libsuricata[0-9_]+-dpdk\.[^:]+: E: shlib-policy-name-error') # Both conflicting flavors manage the same logrotate configuration. addFilter(r'^suricata-dpdk\.[^:]+: E: incoherent-logrotate-file /etc/logrotate\.d/suricata$')
