rpms/klamav/devel klamav-0.41.1-clam0.92.patch, NONE, 1.1 klamav.spec, 1.11, 1.12

Andy Shevchenko (andriy) fedora-extras-commits at redhat.com
Sat Dec 22 18:35:01 UTC 2007


Author: andriy

Update of /cvs/extras/rpms/klamav/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv27663

Modified Files:
	klamav.spec 
Added Files:
	klamav-0.41.1-clam0.92.patch 
Log Message:
Should fix build break with clamav 0.92

klamav-0.41.1-clam0.92.patch:

--- NEW FILE klamav-0.41.1-clam0.92.patch ---
--- klamav-0.41.1/src/klamd/scanner.c.0.92	2007-07-24 22:51:54.000000000 +0300
+++ klamav-0.41.1/src/klamd/scanner.c	2007-12-22 20:28:31.000000000 +0200
@@ -54,6 +54,9 @@
 #include <clamav.h>
 //#include "libclamav/others.h"
 
+/* klamav uses internal function */
+extern int cli_gentempfd(const char *dir, char **name, int *fd);
+
 #include "cfgparser.h"
 #include "memory.h"
 #include "output.h"
@@ -396,7 +399,7 @@ int scanstream(int odesc, unsigned long 
 
     logg("*Accepted connection on port %d, fd %d\n", port, acceptd);
 
-    if ((tmpname = cli_gentempdesc(NULL, &tmpd)) == NULL) {
+    if (cli_gentempfd(NULL, &tmpname, &tmpd) != CL_SUCCESS) {
 	shutdown(sockfd, 2);
 	close(sockfd);
 	close(acceptd);


Index: klamav.spec
===================================================================
RCS file: /cvs/extras/rpms/klamav/devel/klamav.spec,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- klamav.spec	22 Dec 2007 13:24:49 -0000	1.11
+++ klamav.spec	22 Dec 2007 18:34:23 -0000	1.12
@@ -1,12 +1,13 @@
 Summary: Clam Anti-Virus on the KDE Desktop
 Name: klamav
 Version: 0.41.1
-Release: 8%{?dist}
+Release: 9%{?dist}
 Source0: http://downloads.sourceforge.net/klamav/%{name}-%{version}.tar.bz2
 Patch0: klamav-suse-clamav-path.diff
 Patch1: klamav-0.41.1-open-mode.patch
 Patch2: klamav-0.41.1-no-sqlite.patch
 Patch3: klamav-0.41.1-pwd-echo.patch
+Patch4: klamav-0.41.1-clam0.92.patch
 URL: http://klamav.sourceforge.net
 Group: Applications/System
 License: GPLv2+
@@ -33,6 +34,7 @@
 %patch1 -p1 -b .open-mode
 %patch2 -p1 -b .no-sqlite
 %patch3 -p1 -b .pwd-echo
+%patch4 -p1 -b .clam0.92
 
 %build
 %configure --disable-rpath --without-included-sqlite
@@ -88,7 +90,7 @@
 %{_datadir}/icons/*/*x*/apps/klamav.png
 
 %changelog
-* Sat Dec 22 2007 Andy Shevchenko <andy at smile.org.ua> 0.41.1-8
+* Sat Dec 22 2007 Andy Shevchenko <andy at smile.org.ua> 0.41.1-9
 - rebuild against new clamav
 
 * Sun Dec 02 2007 Andy Shevchenko <andy at smile.org.ua> 0.41.1-7




More information about the fedora-extras-commits mailing list