]> git.pld-linux.org Git - packages/clamav.git/commitdiff
- fix building on x32
authorJan Rękorajski <baggins@pld-linux.org>
Sun, 3 May 2015 19:41:38 +0000 (21:41 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Sun, 3 May 2015 19:41:38 +0000 (21:41 +0200)
clamav.spec
x32.patch [new file with mode: 0644]

index 4c1551c954709f47f63442805a4cae20846849ed..782172986f72905a4ad7ed691e3ca6696e9ddd2b 100644 (file)
@@ -40,6 +40,7 @@ Patch2:               am-nosilentrules.patch
 Patch3:                ac2.68.patch
 Patch4:                %{name}-openssl.patch
 Patch5:                %{name}-major.patch
+Patch6:                x32.patch
 URL:           http://www.clamav.net/
 BuildRequires: autoconf
 BuildRequires: automake
@@ -181,6 +182,7 @@ Biblioteki statyczne clamav.
 %endif
 #%patch4 -p1
 %patch5 -p1
+%patch6 -p1
 
 %build
 %{__libtoolize}
diff --git a/x32.patch b/x32.patch
new file mode 100644 (file)
index 0000000..0dcb994
--- /dev/null
+++ b/x32.patch
@@ -0,0 +1,14 @@
+--- clamav-0.98.7/libclamav/bytecode_vm.c~     2015-04-22 21:50:01.000000000 +0200
++++ clamav-0.98.7/libclamav/bytecode_vm.c      2015-05-03 21:40:54.448612567 +0200
+@@ -1248,7 +1248,11 @@
+         gettimeofday(&tv1, NULL);
+         tv1.tv_sec -= tv0.tv_sec;
+         tv1.tv_usec -= tv0.tv_usec;
++#ifdef __ILP32__
++        cli_dbgmsg("intepreter bytecode run finished in %lluus, after executing %u opcodes\n",
++#else
+         cli_dbgmsg("intepreter bytecode run finished in %luus, after executing %u opcodes\n",
++#endif
+                    tv1.tv_sec*1000000 + tv1.tv_usec, pc);
+     }
+     if (stop == CL_EBYTECODE) {
This page took 0.038848 seconds and 4 git commands to generate.