rpms/klamav/devel klamav-0.41.1-gcc43.patch, NONE, 1.1 klamav.spec, 1.12, 1.13

Andy Shevchenko (andriy) fedora-extras-commits at redhat.com
Sat Jan 5 10:40:29 UTC 2008


Author: andriy

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

Modified Files:
	klamav.spec 
Added Files:
	klamav-0.41.1-gcc43.patch 
Log Message:
Fix build with gcc 4.3

klamav-0.41.1-gcc43.patch:

--- NEW FILE klamav-0.41.1-gcc43.patch ---
--- klamav-0.41.1/src/ktview.cpp.gcc43	2007-07-24 22:51:54.000000000 +0300
+++ klamav-0.41.1/src/ktview.cpp	2008-01-05 11:43:59.000000000 +0200
@@ -20,6 +20,7 @@
 // #include <strstream.h>
 // #endif
 
+#include <stdlib.h>     // system
 
 #include <qfileinfo.h>
 
--- klamav-0.41.1/src/ctcron.cpp.gcc43	2007-07-24 22:51:54.000000000 +0300
+++ klamav-0.41.1/src/ctcron.cpp	2008-01-05 11:41:21.000000000 +0200
@@ -18,6 +18,7 @@
 #include "ctvariable.h"
 #include <pwd.h>         // pwd, getpwnam(), getpwuid()
 #include <assert.h>
+#include <stdlib.h>      // system
 
 #include <qfile.h>
 
--- klamav-0.41.1/src/ctunit.cpp.gcc43	2007-07-24 22:51:54.000000000 +0300
+++ klamav-0.41.1/src/ctunit.cpp	2008-01-05 11:40:15.000000000 +0200
@@ -17,6 +17,7 @@
 #include <string>
 #include <stdio.h>    // sprintf
 #include <ctype.h>    // tolower
+#include <stdlib.h>   // atoi
 
 using namespace std;
 


Index: klamav.spec
===================================================================
RCS file: /cvs/extras/rpms/klamav/devel/klamav.spec,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- klamav.spec	22 Dec 2007 18:34:23 -0000	1.12
+++ klamav.spec	5 Jan 2008 10:39:55 -0000	1.13
@@ -1,13 +1,14 @@
 Summary: Clam Anti-Virus on the KDE Desktop
 Name: klamav
 Version: 0.41.1
-Release: 9%{?dist}
+Release: 10%{?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
+Patch5: klamav-0.41.1-gcc43.patch
 URL: http://klamav.sourceforge.net
 Group: Applications/System
 License: GPLv2+
@@ -35,6 +36,7 @@
 %patch2 -p1 -b .no-sqlite
 %patch3 -p1 -b .pwd-echo
 %patch4 -p1 -b .clam0.92
+%patch5 -p1 -b .gcc43
 
 %build
 %configure --disable-rpath --without-included-sqlite
@@ -90,6 +92,9 @@
 %{_datadir}/icons/*/*x*/apps/klamav.png
 
 %changelog
+* Sat Jan 05 2008 Andy Shevchenko <andy at smile.org.ua> 0.41.1-10
+- fix compilation with gcc 4.3
+
 * Sat Dec 22 2007 Andy Shevchenko <andy at smile.org.ua> 0.41.1-9
 - rebuild against new clamav
 




More information about the fedora-extras-commits mailing list