aboutsummaryrefslogtreecommitdiff
path: root/libraries/libofx
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@slackbuilds.org>2012-10-04 23:26:34 +0200
committerdsomero <xgizzmo@slackbuilds.org>2012-10-07 09:16:15 -0400
commitd7f81dfe0c321f8c875d4d89191415e6ee7ce77d (patch)
treeb650f698fac31178185401c183a3c9da2e28fa3b /libraries/libofx
parent6269a559be426d40718e9c2cb1f900b4896bc208 (diff)
libraries/libofx: Fix building with gcc 4.7.
This slipped through before because it only happens when libxml++ is present on the system. Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
Diffstat (limited to 'libraries/libofx')
-rw-r--r--libraries/libofx/README2
-rw-r--r--libraries/libofx/libofx-0.9.5-gcc47.patch11
-rw-r--r--libraries/libofx/libofx.SlackBuild5
3 files changed, 16 insertions, 2 deletions
diff --git a/libraries/libofx/README b/libraries/libofx/README
index 2b4aa2153771..db7c810d8543 100644
--- a/libraries/libofx/README
+++ b/libraries/libofx/README
@@ -1,3 +1,5 @@
LibOFX is a parser and an API designed to allow applications to very
easily support OFX command responses, usually provided by financial
institutions for statement downloads.
+
+This optionally depends on libxml++ in order to build ofxconnect.
diff --git a/libraries/libofx/libofx-0.9.5-gcc47.patch b/libraries/libofx/libofx-0.9.5-gcc47.patch
new file mode 100644
index 000000000000..2e6ee8b08d65
--- /dev/null
+++ b/libraries/libofx/libofx-0.9.5-gcc47.patch
@@ -0,0 +1,11 @@
+diff -ruN libofx-0.9.5.orig/ofxconnect/ofxpartner.cpp libofx-0.9.5/ofxconnect/ofxpartner.cpp
+--- libofx-0.9.5.orig/ofxconnect/ofxpartner.cpp 2011-03-31 00:30:50.000000000 +0200
++++ libofx-0.9.5/ofxconnect/ofxpartner.cpp 2012-06-30 21:57:35.747989782 +0200
+@@ -37,6 +37,7 @@
+ #include <vector>
+ #include <algorithm>
+ #include <string.h>
++#include <unistd.h>
+
+ using std::string;
+ using std::vector;
diff --git a/libraries/libofx/libofx.SlackBuild b/libraries/libofx/libofx.SlackBuild
index 17d01f536f46..3f5d932b8045 100644
--- a/libraries/libofx/libofx.SlackBuild
+++ b/libraries/libofx/libofx.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=libofx
VERSION=0.9.5
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -65,7 +65,8 @@ cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
-# Patch to fix compilation on gcc-4.3.x
+# Patch to fix compilation with gcc 4.7
+patch -p1 -i $CWD/libofx-0.9.5-gcc47.patch
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \