[libofx] Add patch to fix FTBFS on gcc 4.7
Peter Robinson
pbrobinson at fedoraproject.org
Sat Apr 28 15:24:41 UTC 2012
commit b217a8719552955a65374da2ca5c1edaefc9b9da
Author: Peter Robinson <pbrobinson at gmail.com>
Date: Sat Apr 28 16:24:31 2012 +0100
Add patch to fix FTBFS on gcc 4.7
fix-ftbfs-gcc4.7.diff | 10 ++++++++++
libofx.spec | 16 ++++++++--------
2 files changed, 18 insertions(+), 8 deletions(-)
---
diff --git a/fix-ftbfs-gcc4.7.diff b/fix-ftbfs-gcc4.7.diff
new file mode 100644
index 0000000..35e99b1
--- /dev/null
+++ b/fix-ftbfs-gcc4.7.diff
@@ -0,0 +1,10 @@
+--- libofx-0.9.4.orig/ofxconnect/ofxpartner.cpp 2011-03-30 22:30:50.000000000 +0000
++++ libofx-0.9.4/ofxconnect/ofxpartner.cpp 2012-04-17 06:08:38.711940892 +0000
+@@ -37,6 +37,7 @@
+ #include <vector>
+ #include <algorithm>
+ #include <string.h>
++#include <unistd.h>
+
+ using std::string;
+ using std::vector;
diff --git a/libofx.spec b/libofx.spec
index fff27a2..0a37a81 100644
--- a/libofx.spec
+++ b/libofx.spec
@@ -1,12 +1,13 @@
Summary: A library for supporting Open Financial Exchange (OFX)
Name: libofx
Version: 0.9.4
-Release: 3%{?dist}
-Source: http://downloads.sourceforge.net/libofx/%{name}-%{version}.tar.gz
+Release: 4%{?dist}
URL: http://libofx.sourceforge.net/
Group: System Environment/Libraries
License: GPLv2+
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Source: http://downloads.sourceforge.net/libofx/%{name}-%{version}.tar.gz
+Patch0: fix-ftbfs-gcc4.7.diff
+
BuildRequires: opensp-devel
BuildRequires: curl-devel
BuildRequires: libxml++-devel
@@ -41,6 +42,7 @@ for building applications that use libofx.
%prep
%setup -q
+%patch0 -p1 -b .gcc47
rm -rf ./doc/ofx_sample_files/CVS
chmod 644 ./doc/ofx_sample_files/*
@@ -52,15 +54,10 @@ sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
make %{?_smp_mflags}
%install
-rm -rf $RPM_BUILD_ROOT
-
make install DESTDIR=$RPM_BUILD_ROOT
rm -rf $RPM_BUILD_ROOT/%{_libdir}/*a $RPM_BUILD_ROOT/%{_datadir}/doc
-%clean
-rm -rf $RPM_BUILD_ROOT
-
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
@@ -84,6 +81,9 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/*.so
%changelog
+* Sat Apr 28 2012 Peter Robinson <pbrobinson at fedoraproject.org> - 0.9.4-4
+- Add patch to fix FTBFS on gcc 4.7
+
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.9.4-3
- Rebuilt for c++ ABI breakage
More information about the scm-commits
mailing list