[packages/clamav] Rel 2. Build with 64-bit off_t and time_t on 32-bit arches
arekm
arekm at pld-linux.org
Fri Nov 20 20:24:42 CET 2026
commit 6f1432665e69a4e31dfd4e166a91f1bffa7c44e9
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Fri Nov 20 20:24:05 2026 +0100
Rel 2. Build with 64-bit off_t and time_t on 32-bit arches
clamav.spec | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/clamav.spec b/clamav.spec
index d3721bc..9042917 100644
--- a/clamav.spec
+++ b/clamav.spec
@@ -25,7 +25,7 @@ Summary: An anti-virus utility for Unix
Summary(pl.UTF-8): Narzędzie antywirusowe dla Uniksów
Name: clamav
Version: 1.5.5
-Release: 1
+Release: 2
License: GPL v2+
Group: Daemons
#Source0Download: https://www.clamav.net/download
@@ -49,6 +49,8 @@ BuildRequires: bzip2-devel >= 1.0.5
BuildRequires: cargo
BuildRequires: cmake >= 3.17
BuildRequires: curl-devel >= 7.40
+# _TIME_BITS=64
+BuildRequires: glibc-devel >= 6:2.34
BuildRequires: json-c-devel
%{?with_milter:BuildRequires: libmilter-devel}
%{?with_system_libmspack:BuildRequires: libmspack-devel}
@@ -224,6 +226,10 @@ Dokumentacja do ClamAVa.
%patch -P 0 -p1
%build
+# on 32-bit arches: libclamav/libmspack.c does not include clamav-config.h, so its
+# seek/tell callbacks use 32-bit off_t against the 64-bit off_t of system libmspack;
+# asn1.c mktime() of certificate dates past 2038 fails with 32-bit time_t
+export CPPFLAGS="%{rpmcppflags} -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64"
install -d build
cd build
%{cmake} \
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/clamav.git/commitdiff/6f1432665e69a4e31dfd4e166a91f1bffa7c44e9
More information about the pld-cvs-commit
mailing list