Accepting request 109835 from home:dimstar:gcc47

Fix build with gcc 4.7 - Please work with upstream to resolve it in upstream code base. There is also a chance that a newer version of the package might have this fixed already.

OBS-URL: https://build.opensuse.org/request/show/109835
OBS-URL: https://build.opensuse.org/package/show/security/clamav?expand=0&rev=60
This commit is contained in:
Togan Muftuoglu 2012-03-20 10:39:33 +00:00 committed by Git OBS Bridge
parent b63eec4739
commit 59675fea51
3 changed files with 19 additions and 0 deletions

12
clamav-gcc47.patch Normal file
View File

@ -0,0 +1,12 @@
Index: clamav-0.97.3/libclamav/c++/llvm/lib/ExecutionEngine/JIT/Intercept.cpp
===================================================================
--- clamav-0.97.3.orig/libclamav/c++/llvm/lib/ExecutionEngine/JIT/Intercept.cpp
+++ clamav-0.97.3/libclamav/c++/llvm/lib/ExecutionEngine/JIT/Intercept.cpp
@@ -15,6 +15,7 @@
//
//===----------------------------------------------------------------------===//
+#include <unistd.h>
#include "JIT.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/System/DynamicLibrary.h"

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Mar 17 19:36:17 UTC 2012 - dimstar@opensuse.org
- Add clamav-gcc47.patch: Fix build with gcc 4.7.
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Mar 17 14:18:48 UTC 2012 - toganm@opensuse.org Sat Mar 17 14:18:48 UTC 2012 - toganm@opensuse.org

View File

@ -61,6 +61,7 @@ Source4: clamav-rpmlintrc
Source5: clamav-rcmilter Source5: clamav-rcmilter
Patch1: clamav-conf.patch Patch1: clamav-conf.patch
Patch2: clamav-sles9.patch Patch2: clamav-sles9.patch
Patch3: clamav-gcc47.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
@ -129,6 +130,7 @@ Authors:
# SLES9's libmilter doesn't have smfi_insheader() # SLES9's libmilter doesn't have smfi_insheader()
%patch2 %patch2
%endif %endif
%patch3 -p1
%build %build
%if 0%{?suse_version} >= 1010 %if 0%{?suse_version} >= 1010