[liborigin] Add liborigin-20080225-gcc.patch (Fix FTBFS BZ#716189).

corsepiu corsepiu at fedoraproject.org
Mon Jul 4 04:28:45 UTC 2011


commit 97bb3b2698c54224ab472433c5901dc69677c8d7
Author: Ralf Corsépius <corsepiu at fedoraproject.org>
Date:   Mon Jul 4 06:28:23 2011 +0200

    Add liborigin-20080225-gcc.patch (Fix FTBFS BZ#716189).

 liborigin-20080225-gcc.patch |   11 +++++++++++
 liborigin.spec               |    8 +++++++-
 2 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/liborigin-20080225-gcc.patch b/liborigin-20080225-gcc.patch
new file mode 100644
index 0000000..379d5ce
--- /dev/null
+++ b/liborigin-20080225-gcc.patch
@@ -0,0 +1,11 @@
+diff -Naur liborigin-20080225.orig/tree.hh liborigin-20080225/tree.hh
+--- liborigin-20080225.orig/tree.hh	2008-02-25 11:19:47.000000000 +0100
++++ liborigin-20080225/tree.hh	2011-07-01 13:32:16.702486023 +0200
+@@ -61,6 +61,7 @@
+ #define tree_hh_
+ 
+ #include <cassert>
++#include <cstddef>
+ #include <memory>
+ #include <stdexcept>
+ #include <iterator>
diff --git a/liborigin.spec b/liborigin.spec
index 13327c2..2bec55a 100644
--- a/liborigin.spec
+++ b/liborigin.spec
@@ -1,6 +1,6 @@
 Name:      liborigin
 Version:   20080225
-Release:   5%{?dist}
+Release:   6%{?dist}
 Summary:   Library for reading OriginLab OPJ project files
 
 License:   GPLv2
@@ -8,6 +8,8 @@ Group:     Development/Libraries
 URL:       http://sourceforge.net/projects/%{name}/
 
 Source:    http://belnet.dl.sourceforge.net/sourceforge/liborigin/%{name}-%{version}.tar.gz
+# Include <cstddef> into tree.hh
+Patch0:    %{name}-%{version}-gcc.patch
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
@@ -30,6 +32,7 @@ you will need to install %{name}-devel.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 
@@ -71,6 +74,9 @@ chmod 0644 ws4.opj
 %{_libdir}/%{name}.so
 
 %changelog
+* Mon Jul 04 2011 Ralf Corsépius <corsepiu at fedoraproject.org> - 20080225-6
+- Add liborigin-20080225-gcc.patch (Fix FTBFS BZ#716189).
+
 * Tue Feb 08 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 20080225-5
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
 


More information about the scm-commits mailing list