From 9c270f89fd886c80e031ff3930f3c923a9f6abb4 Mon Sep 17 00:00:00 2001 From: Lenard Spencer Date: Thu, 14 May 2020 18:57:14 +0100 Subject: office/gnucash: Patched. Signed-off-by: Dave Woodfall Signed-off-by: Willy Sudiarto Raharjo --- office/gnucash/gnucash-boost-1.73.patch | 10 ++++++++++ office/gnucash/gnucash.SlackBuild | 11 ++++++----- 2 files changed, 16 insertions(+), 5 deletions(-) create mode 100644 office/gnucash/gnucash-boost-1.73.patch diff --git a/office/gnucash/gnucash-boost-1.73.patch b/office/gnucash/gnucash-boost-1.73.patch new file mode 100644 index 0000000000..ab3a015199 --- /dev/null +++ b/office/gnucash/gnucash-boost-1.73.patch @@ -0,0 +1,10 @@ +--- gnucash/import-export/csv-imp/gnc-imp-settings-csv.hpp.orig 2020-05-11 19:38:43.108485371 +0000 ++++ gnucash/import-export/csv-imp/gnc-imp-settings-csv.hpp +@@ -34,6 +34,7 @@ extern "C" { + #include "gnc-commodity.h" + } + ++#include + #include + #include + #include diff --git a/office/gnucash/gnucash.SlackBuild b/office/gnucash/gnucash.SlackBuild index 9113f8d68d..ae678bba69 100644 --- a/office/gnucash/gnucash.SlackBuild +++ b/office/gnucash/gnucash.SlackBuild @@ -25,7 +25,7 @@ PRGNAM=gnucash VERSION=${VERSION:-3.10} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PACKAGER=${PACKAGER:-"Just Another Slacker"} @@ -101,9 +101,6 @@ else W_PYTHON="-DWITH_PYTHON=OFF" fi -# New option to build with ninja: -NINJA=${NINJA:-"no"} - set -e rm -rf $PKG @@ -119,7 +116,11 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -if [ $NINJA = "yes" ]; then +# Patch for the newest boost (will be in gncuash 3.11) +patch -p0 < $CWD/gnucash-boost-1.73.patch + +# New option to build with ninja: +if [ "${NINJA:-no}" = "yes" ]; then echo "building using Ninja:" NINJABUILD="-GNinja" else -- cgit v1.2.3-79-gdb01