diff --git a/djvulibre-3.5.23-gcc46.patch b/djvulibre-3.5.23-gcc46.patch new file mode 100644 index 0000000..52becea --- /dev/null +++ b/djvulibre-3.5.23-gcc46.patch @@ -0,0 +1,12 @@ +--- djvulibre-3.5.23/libdjvu/GSmartPointer.h~ 2011-03-29 12:35:05.000000000 +0400 ++++ djvulibre-3.5.23/libdjvu/GSmartPointer.h 2011-03-29 12:35:25.000000000 +0400 +@@ -58,6 +58,9 @@ + + #ifndef _GSMARTPOINTER_H_ + #define _GSMARTPOINTER_H_ ++ ++#include ++ + #ifdef HAVE_CONFIG_H + #include "config.h" + #endif diff --git a/djvulibre.changes b/djvulibre.changes index 7fcc7cd..d76ff29 100644 --- a/djvulibre.changes +++ b/djvulibre.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 2 14:45:43 UTC 2011 - idoenmez@novell.com + +- Add djvulibre-3.5.23-gcc46.patch to fix compilation with gcc 4.6 + ------------------------------------------------------------------- Mon Mar 7 09:43:42 CET 2011 - pgajdos@suse.cz diff --git a/djvulibre.spec b/djvulibre.spec index 05126b4..8cd57fc 100644 --- a/djvulibre.spec +++ b/djvulibre.spec @@ -30,6 +30,8 @@ Summary: An Open Source Implementation of DjVu Source: %{name}-%{version}.tar.bz2 Patch1: %{name}-%{version}-nsdejavu.patch Patch2: %{name}-%{version}-filepath.patch +# PATCH-FIX-UPSTREAM djvulibre-3.5.23-gcc46.patch idoenmez@suse.de -- Fix gcc 4.6 compilation, upstream bug #3256513 +Patch3: djvulibre-3.5.23-gcc46.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -126,6 +128,7 @@ Authors: %setup %patch1 %patch2 +%patch3 -p1 # removing cvsignore files in version 3.5.19 rm -rf doc/minilisp/.cvsignore