Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package clamav for openSUSE:Factory checked in at 2026-09-08 16:56:40 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/clamav (Old) and /work/SRC/openSUSE:Factory/.clamav.new.1265 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "clamav" Tue Sep 8 16:56:40 2026 rev:143 rq:1376176 version:1.5.4 Changes: -------- --- /work/SRC/openSUSE:Factory/clamav/clamav.changes 2026-08-24 15:48:31.039180374 +0200 +++ /work/SRC/openSUSE:Factory/.clamav.new.1265/clamav.changes 2026-09-08 16:59:37.484764858 +0200 @@ -1,0 +2,9 @@ +Fri Sep 4 11:02:03 UTC 2026 - Reinhard Max <[email protected]> + +- Put libclamunrar into an optional subpackage, because it has a + NonFree license. +- Improve macro usage for the library subpackages. +- Add clamav-libcheck-workarounds.patch to work around missing + macros in libcheck-0.10.0 on SLE-12-SP5. + +------------------------------------------------------------------- New: ---- clamav-libcheck-workarounds.patch ----------(New B)---------- New:- Improve macro usage for the library subpackages. - Add clamav-libcheck-workarounds.patch to work around missing macros in libcheck-0.10.0 on SLE-12-SP5. ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ clamav.spec ++++++ --- /var/tmp/diff_new_pack.e0uDXd/_old 2026-09-08 16:59:38.697815249 +0200 +++ /var/tmp/diff_new_pack.e0uDXd/_new 2026-09-08 16:59:38.700815373 +0200 @@ -38,8 +38,15 @@ %global confdir %_prefix%_sysconfdir %define v_libclamav 12 +%define v_libclamunrar 12 %define v_libfreshclam 4 %define v_libclammspack 0 + +%define libclamav libclamav%{v_libclamav} +%define libclamunrar libclamunrar%{v_libclamunrar} +%define libfreshclam libfreshclam%{v_libfreshclam} +%define libclammspack libclammspack%{v_libclammspack} + %define vjsonc 0.18 %define jsonc json-c-json-c-%vjsonc-20240915 @@ -70,6 +77,9 @@ Patch15: clamav-format.patch Patch16: clamav-workaround.patch Patch17: clamav-CVE-2026-46671.patch +# Needed for libcheck-0.10.0 on SLE-12-SP5 +# (but harmless to apply everywhere) +Patch18: clamav-libcheck-workarounds.patch ExcludeArch: %{arml} %{ix86} BuildRequires: cargo%{?vrust} @@ -116,9 +126,9 @@ Obsoletes: clamav-db < 0.88.3 Provides: clamav-nodb = %{version} Obsoletes: clamav-nodb < %{version} -Requires: libclamav%v_libclamav = %{version}-%{release} -Requires: libclammspack%v_libclammspack = %{version}-%{release} -Requires: libfreshclam%v_libfreshclam = %{version}-%{release} +Requires: %libclamav = %{version}-%{release} +Requires: %libclammspack = %{version}-%{release} +Requires: %libfreshclam = %{version}-%{release} %if %{without clammspack} BuildRequires: pkgconfig(libmspack) %endif @@ -167,11 +177,21 @@ between different machines and to keep scanning for viruses even when a server goes down. -%package -n libclamav%v_libclamav +%package -n %libclamav Summary: ClamAV antivirus engine runtime Group: System/Libraries +Recommends: %libclamunrar = %{version}-%{release} + +%description -n %libclamav +ClamAV is an antivirus engine designed for detecting trojans, +viruses, malware and other malicious threats. + +%package -n %libclamunrar +Summary: ClamAV antivirus RAR support +License: NonFree +Group: System/Libraries -%description -n libclamav%v_libclamav +%description -n %libclamunrar ClamAV is an antivirus engine designed for detecting trojans, viruses, malware and other malicious threats. @@ -179,23 +199,23 @@ Summary: ClamAV updater library Group: System/Libraries -%description -n libfreshclam%v_libfreshclam +%description -n %libfreshclam ClamAV is an antivirus engine designed for detecting trojans, viruses, malware and other malicious threats. -%package -n libclammspack%v_libclammspack +%package -n %libclammspack Summary: ClamAV antivirus engine runtime Group: System/Libraries -%description -n libclammspack%v_libclammspack +%description -n %libclammspack ClamAV is an antivirus engine designed for detecting trojans, viruses, malware and other malicious threats. %package devel Summary: Development files for libclamav, an antivirus engine Group: Development/Libraries/C and C++ -Requires: libclamav%v_libclamav = %{version} -Requires: libfreshclam%v_libfreshclam = %{version} +Requires: %libclamav = %{version} +Requires: %libfreshclam = %{version} %description devel ClamAV is an antivirus engine designed for detecting trojans, @@ -216,6 +236,7 @@ %patch -P 15 %patch -P 16 %patch -P 17 -p 1 +%patch -P 18 # Update cargo checksums for patched onenote_parser files sed -i \ @@ -346,19 +367,22 @@ %service_del_postun clamav-milter.service %if 0%{?suse_version} > 1500 -%ldconfig_scriptlets -n libclamav%v_libclamav -%ldconfig_scriptlets -n libfreshclam%v_libfreshclam +%ldconfig_scriptlets -n %libclamav +%ldconfig_scriptlets -n %libclamunrar +%ldconfig_scriptlets -n %libfreshclam %if %{with clammspack} -%ldconfig_scriptlets -n libclammspack%v_libclammspack +%ldconfig_scriptlets -n %libclammspack %endif %else -%post -n libclamav%v_libclamav -p /sbin/ldconfig -%postun -n libclamav%v_libclamav -p /sbin/ldconfig -%post -n libfreshclam%v_libfreshclam -p /sbin/ldconfig -%postun -n libfreshclam%v_libfreshclam -p /sbin/ldconfig +%post -n %libclamav -p /sbin/ldconfig +%postun -n %libclamav -p /sbin/ldconfig +%post -n %libclamunrar -p /sbin/ldconfig +%postun -n %libclamunrar -p /sbin/ldconfig +%post -n %libfreshclam -p /sbin/ldconfig +%postun -n %libfreshclam -p /sbin/ldconfig %if %{with clammspack} -%post -n libclammspack%v_libclammspack -p /sbin/ldconfig -%postun -n libclammspack%v_libclammspack -p /sbin/ldconfig +%post -n %libclammspack -p /sbin/ldconfig +%postun -n %libclammspack -p /sbin/ldconfig %endif %endif @@ -411,14 +435,17 @@ %{_mandir}/man5/clamav-milter.conf.5%{?ext_man} %{_mandir}/man8/clamav-milter.8%{?ext_man} -%files -n libclamav%v_libclamav -%{_libdir}/libclam*.so.%{v_libclamav}* +%files -n %libclamav +%{_libdir}/libclamav.so.%{v_libclamav}* + +%files -n %libclamunrar +%{_libdir}/libclamunrar*.so.%{v_libclamunrar}* -%files -n libfreshclam%v_libfreshclam +%files -n %libfreshclam %{_libdir}/libfreshclam.so.%{v_libfreshclam}* %if %{with clammspack} -%files -n libclammspack%v_libclammspack +%files -n %libclammspack %{_libdir}/libclammspack.so.%{v_libclammspack}* %endif ++++++ clamav-libcheck-workarounds.patch ++++++ --- unit_tests/check_clamd.c.orig +++ unit_tests/check_clamd.c @@ -53,6 +53,13 @@ #endif #include <check.h> +/* libcheck < 0.11.0 lacks these; define them via the existing helper. */ +#ifndef ck_assert_ptr_nonnull +#define ck_assert_ptr_nonnull(X) _ck_assert_ptr(X, !=, NULL) +#endif +#ifndef ck_assert_ptr_null +#define ck_assert_ptr_null(X) _ck_assert_ptr(X, ==, NULL) +#endif // libclamav #include "clamav.h"
