- Add patch to build with gcc-4.4
This commit is contained in:
parent
6f7d9e70eb
commit
8eb5d9719e
36
exempi-upstream_gcc44_fix.patch
Normal file
36
exempi-upstream_gcc44_fix.patch
Normal file
@ -0,0 +1,36 @@
|
||||
diff --git a/exempi/tests/utils.cpp b/exempi/tests/utils.cpp
|
||||
index 64be1ee..ee1c3a9 100644
|
||||
--- a/exempi/tests/utils.cpp
|
||||
+++ b/exempi/tests/utils.cpp
|
||||
@@ -34,6 +34,7 @@
|
||||
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
+#include <cstdio>
|
||||
|
||||
#include <boost/test/unit_test.hpp>
|
||||
|
||||
diff --git a/samples/source/XMPFilesCoverage.cpp b/samples/source/XMPFilesCoverage.cpp
|
||||
index dc9ce41..007c12b 100644
|
||||
--- a/samples/source/XMPFilesCoverage.cpp
|
||||
+++ b/samples/source/XMPFilesCoverage.cpp
|
||||
@@ -17,6 +17,7 @@
|
||||
#include <errno.h>
|
||||
#include <time.h>
|
||||
#include <cstring>
|
||||
+#include <cstdio>
|
||||
|
||||
#define TXMP_STRING_TYPE std::string
|
||||
#define XMP_INCLUDE_XMPFILES 1
|
||||
diff --git a/source/common/XML_Node.cpp b/source/common/XML_Node.cpp
|
||||
index de3866f..75298a8 100644
|
||||
--- a/source/common/XML_Node.cpp
|
||||
+++ b/source/common/XML_Node.cpp
|
||||
@@ -11,6 +11,7 @@
|
||||
|
||||
#include <string.h>
|
||||
#include <cstring>
|
||||
+#include <cstdio>
|
||||
#include <map>
|
||||
|
||||
// ! Can't include XMP..._Impl.hpp - used by both Core and Files.
|
||||
@ -1,11 +1,12 @@
|
||||
Summary: Library for easy parsing of XMP metadata
|
||||
Name: exempi
|
||||
Version: 2.1.0
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
License: BSD
|
||||
Group: System Environment/Libraries
|
||||
URL: http://libopenraw.freedesktop.org/wiki/Exempi
|
||||
Source0: http://libopenraw.freedesktop.org/download/%{name}-%{version}.tar.gz
|
||||
Patch0: exempi-upstream_gcc44_fix.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildRequires: boost-devel expat-devel zlib-devel pkgconfig
|
||||
|
||||
@ -26,6 +27,7 @@ developing with exempi
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1 -b .gcc44
|
||||
|
||||
%build
|
||||
%configure LDFLAGS="-L%{_libdir}" CPPFLAGS="-I%{_includedir}"
|
||||
@ -61,6 +63,9 @@ rm -rf %{buildroot}
|
||||
%{_libdir}/pkgconfig/*.pc
|
||||
|
||||
%changelog
|
||||
* Wed Feb 04 2009 Deji Akingunola <dakingun@gmail.com> - 2.1.0-2
|
||||
- Add patch to build with gcc-4.4
|
||||
|
||||
* Tue Jan 06 2009 Deji Akingunola <dakingun@gmail.com> - 2.1.0-1
|
||||
- Update to 2.1.0
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user