[Slackbuilds-users] Patch for gnucash SB scipt

Lenard Spencer lspencer31 at cfl.rr.com
Sun Apr 1 15:46:40 UTC 2018


Here is the patch that should work for the Gnucash SBo scipt:

--------------------------------------------------------------------------------------------

diff -Naur gnucash.orig/README gnucash/README
--- gnucash.orig/README    2018-03-26 19:06:43.000000000 -0400
+++ gnucash/README    2018-04-01 11:41:41.072440598 -0400
@@ -15,3 +15,6 @@

  If you want the SQL database integration, you must first have libdbi
  and libdbi-drivers installed, and then pass the DBI="yes" flag.
+
+NOTE:  You must remove any previous installation of Gnucash before
+running this script, otherwise the build will fail.
diff -Naur gnucash.orig/gnucash.SlackBuild gnucash/gnucash.SlackBuild
--- gnucash.orig/gnucash.SlackBuild    2018-03-26 19:21:50.000000000 -0400
+++ gnucash/gnucash.SlackBuild    2018-04-01 11:40:46.109013444 -0400
@@ -87,6 +87,13 @@

  set -e

+# First, make sure a previous Gnucash installation is removed:
+if [ -e /usr/bin/gnucash ]; then
+  echo "A previous Gnucash installation has been found."
+  echo "Please remove it before running this script."
+  exit 1
+fi
+
  rm -rf $PKG
  mkdir -p $TMP $PKG $OUTPUT
  cd $TMP

----------------------------------------------------------------------------------------------------------------



More information about the SlackBuilds-users mailing list