From d7f81dfe0c321f8c875d4d89191415e6ee7ce77d Mon Sep 17 00:00:00 2001 From: Heinz Wiesinger Date: Thu, 4 Oct 2012 23:26:34 +0200 Subject: 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 --- libraries/libofx/README | 2 ++ libraries/libofx/libofx-0.9.5-gcc47.patch | 11 +++++++++++ libraries/libofx/libofx.SlackBuild | 5 +++-- 3 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 libraries/libofx/libofx-0.9.5-gcc47.patch (limited to 'libraries') diff --git a/libraries/libofx/README b/libraries/libofx/README index 2b4aa21537..db7c810d85 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 0000000000..2e6ee8b08d --- /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 + #include + #include ++#include + + using std::string; + using std::vector; diff --git a/libraries/libofx/libofx.SlackBuild b/libraries/libofx/libofx.SlackBuild index 17d01f536f..3f5d932b80 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" \ -- cgit v1.2.3