summaryrefslogtreecommitdiff
path: root/finance
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2020-04-14 10:35:17 +0000
committerwiz <wiz@pkgsrc.org>2020-04-14 10:35:17 +0000
commitfb204f7149ea8f8974b82be6ed38f680b0d7d961 (patch)
treee1e9b1dae0d35163bc6a12e66ffdd89524a1562e /finance
parented21637f1a386d37364b67de151519321cdb8ee2 (diff)
downloadpkgsrc-fb204f7149ea8f8974b82be6ed38f680b0d7d961.tar.gz
gnucash: update to 3.10.
Changes This is a snap release to reverse the changes to the reconcile window's filtering reconciled transactions with a reconcile date after the current statement date when computing the starting balance. It seems that many users' books have accounts with reconcile dates in the future that were suddenly filtered out, creating an incorrect starting balance and making it impossible to reconcile the book. Between 3.9 and 3.10, the following bugfixes were accomplished: Bug 620848 - Transfer Funds window - add Notes field Bug 797006 - Balance is misleading in open subaccounts when different currencies are involved Bug 797318 - Amounts ending in zero displayed as fractions Bug 797666 - libgnucash/engine/test/test-recurrence.c: In function 'check_valid': 'result' may be used uninitialized Bug 797676 - Register displays amount in transaction currency instead of register currency. Bug 797674 - 3.9: "test-gnc-path-util" failed on Debian amd64 The following fixes and improvements were not associated with bug reports: Update latest translation from the Translation project. [window-reconcile] when reconciling, warn on splits having a reconcile date > statement_date [window-reconcile] when inputing statement_date, warn if it's after today [find-transactions] add search for reconciled date Show transaction value, not amount, for registers with subaccounts. If the register has subaccounts in different currencies and a transaction has splits in more than one, the transaction will incorrectly appear to be unbalanced if we total amounts because the balancing logic works on split values. Add instance argument to Session constructor Enables a python console to connect to the running GnuCash's session. Make python console less noisy without --debug. Provide locals and globals of calling context to the python console's shell on shell init Merge Jean Laroche's '797006_subaccounts' into maint. Add check to display warning dialog for mismatched commodities Replicate changes in *2 files Apply astyle to modified files Merge Chris Mayo's iPython-fixes into maint. Make pycons/ishell.py compatible with Python 3 and current IPython [eguile-utilities] Prevent crash in balsheet-eg.scm [eguile] escape-html -> gnc:html-string-sanitize [qif-to-gnc] Properly mark intra-QIF internal transfers. We have a revised Ukrainian translation.
Diffstat (limited to 'finance')
-rw-r--r--finance/gnucash/Makefile5
-rw-r--r--finance/gnucash/PLIST.python3
-rw-r--r--finance/gnucash/distinfo13
-rw-r--r--finance/gnucash/patches/patch-bindings_python_tests_CMakeLists.txt24
-rw-r--r--finance/gnucash/patches/patch-bindings_python_tests_runTests.py.in15
-rw-r--r--finance/gnucash/patches/patch-libgnucash_core-utils_binreloc.c16
6 files changed, 67 insertions, 9 deletions
diff --git a/finance/gnucash/Makefile b/finance/gnucash/Makefile
index 3cb901ade4d..08fe369c9ee 100644
--- a/finance/gnucash/Makefile
+++ b/finance/gnucash/Makefile
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.291 2020/04/12 08:28:38 adam Exp $
+# $NetBSD: Makefile,v 1.292 2020/04/14 10:35:17 wiz Exp $
-DISTNAME= gnucash-3.9
-PKGREVISION= 1
+DISTNAME= gnucash-3.10
CATEGORIES= finance
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=gnucash/}
EXTRACT_SUFX= .tar.bz2
diff --git a/finance/gnucash/PLIST.python b/finance/gnucash/PLIST.python
index fcc8b574811..467bc335136 100644
--- a/finance/gnucash/PLIST.python
+++ b/finance/gnucash/PLIST.python
@@ -1,8 +1,9 @@
-@comment $NetBSD: PLIST.python,v 1.1 2018/04/09 08:47:54 wiz Exp $
+@comment $NetBSD: PLIST.python,v 1.2 2020/04/14 10:35:17 wiz Exp $
${PYSITELIB}/gnucash/__init__.py
${PYSITELIB}/gnucash/_gnucash_core_c.so
${PYSITELIB}/gnucash/_sw_app_utils.so
${PYSITELIB}/gnucash/_sw_core_utils.so
+${PYSITELIB}/gnucash/app_utils.py
${PYSITELIB}/gnucash/function_class.py
${PYSITELIB}/gnucash/gnucash_business.py
${PYSITELIB}/gnucash/gnucash_core.py
diff --git a/finance/gnucash/distinfo b/finance/gnucash/distinfo
index d0d34ef93d7..c0c1a030ee4 100644
--- a/finance/gnucash/distinfo
+++ b/finance/gnucash/distinfo
@@ -1,6 +1,9 @@
-$NetBSD: distinfo,v 1.98 2020/03/31 21:29:35 wiz Exp $
+$NetBSD: distinfo,v 1.99 2020/04/14 10:35:17 wiz Exp $
-SHA1 (gnucash-3.9.tar.bz2) = 00fca79635f1c831739fbdc8116248584c1cbcc8
-RMD160 (gnucash-3.9.tar.bz2) = b0bcd9fb472f310e0dabb7945bfc9be4eff63cef
-SHA512 (gnucash-3.9.tar.bz2) = b1669ae2ffbf010658e4c80ce80b63d6653af0d1feafa48df6724570bfcc5f88d1eb8642c0a8b31ddd3c81a2e6859c396a14371ad05421b33fa66cf301d8b0c5
-Size (gnucash-3.9.tar.bz2) = 14174108 bytes
+SHA1 (gnucash-3.10.tar.bz2) = b9fcdb1e5c44ad989ea6585f6a3c62c56a730663
+RMD160 (gnucash-3.10.tar.bz2) = 25ad9822130e641240418d753a0092c98815688b
+SHA512 (gnucash-3.10.tar.bz2) = f4b88d35c94af59ffc8144b95dc5f3ba54c6f72473589c4184e026300536ad7f5f13a71fb572693c55ee540ba30c8cf65fba101d7112e34e3fcbbd738007b27e
+Size (gnucash-3.10.tar.bz2) = 14166587 bytes
+SHA1 (patch-bindings_python_tests_CMakeLists.txt) = 1a02e3860d0b02742e0dc7228f3a58f5ebe8fb89
+SHA1 (patch-bindings_python_tests_runTests.py.in) = 6966117741ecef177c41c85e7e6765ce934280a3
+SHA1 (patch-libgnucash_core-utils_binreloc.c) = 8ed7610d64e2d68e597025ffdbf46dc1d41381d6
diff --git a/finance/gnucash/patches/patch-bindings_python_tests_CMakeLists.txt b/finance/gnucash/patches/patch-bindings_python_tests_CMakeLists.txt
new file mode 100644
index 00000000000..c9e2ce8df8d
--- /dev/null
+++ b/finance/gnucash/patches/patch-bindings_python_tests_CMakeLists.txt
@@ -0,0 +1,24 @@
+$NetBSD: patch-bindings_python_tests_CMakeLists.txt,v 1.1 2020/04/14 10:35:17 wiz Exp $
+
+Fix gnucash-3.10 bug.
+https://github.com/Gnucash/gnucash/commit/e1b01403
+
+--- bindings/python/tests/CMakeLists.txt.orig 2020-04-11 16:28:50.000000000 +0000
++++ bindings/python/tests/CMakeLists.txt
+@@ -5,7 +5,7 @@ if (WITH_PYTHON)
+ # Because it hasn't been built yet
+ set(test_core_dir ${CMAKE_BINARY_DIR}/common/test-core)
+ endif()
+- add_custom_target(test-python-bindings ALL DEPENDS unittest_support gnucash-core-c-build gnucash-core-c-py swig-app-utils-python)
++ add_custom_target(test-python-bindings ALL DEPENDS unittest_support gnucash-core-c-build gnucash-core-c-py sw_app_utils)
+ add_dependencies(check test-python-bindings)
+ add_test(python-bindings ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/runTests.py.in)
+ set_property(TEST python-bindings PROPERTY ENVIRONMENT
+@@ -21,6 +21,7 @@ set(test_python_bindings_DATA
+ test_business.py
+ test_commodity.py
+ test_numeric.py
++ test_session.py
+ test_split.py
+ test_transaction.py
+ test_query.py)
diff --git a/finance/gnucash/patches/patch-bindings_python_tests_runTests.py.in b/finance/gnucash/patches/patch-bindings_python_tests_runTests.py.in
new file mode 100644
index 00000000000..f1fb220c02d
--- /dev/null
+++ b/finance/gnucash/patches/patch-bindings_python_tests_runTests.py.in
@@ -0,0 +1,15 @@
+$NetBSD: patch-bindings_python_tests_runTests.py.in,v 1.1 2020/04/14 10:35:17 wiz Exp $
+
+Bugfix for 3.10 release.
+https://bugs.gnucash.org/show_bug.cgi?id=797679
+
+--- bindings/python/tests/runTests.py.in.orig 2020-04-11 16:28:50.000000000 +0000
++++ bindings/python/tests/runTests.py.in
+@@ -5,7 +5,6 @@ import os
+
+ os.environ["GNC_UNINSTALLED"] = "1"
+
+-from test_session import TestSession
+ from test_book import TestBook
+ from test_account import TestAccount
+ from test_split import TestSplit
diff --git a/finance/gnucash/patches/patch-libgnucash_core-utils_binreloc.c b/finance/gnucash/patches/patch-libgnucash_core-utils_binreloc.c
new file mode 100644
index 00000000000..b5a880e4538
--- /dev/null
+++ b/finance/gnucash/patches/patch-libgnucash_core-utils_binreloc.c
@@ -0,0 +1,16 @@
+$NetBSD: patch-libgnucash_core-utils_binreloc.c,v 1.1 2020/04/14 10:35:17 wiz Exp $
+
+Bugfix for 3.10 release.
+https://bugs.gnucash.org/show_bug.cgi?id=797679
+
+--- libgnucash/core-utils/binreloc.c.orig 2020-04-11 21:17:58.000000000 +0000
++++ libgnucash/core-utils/binreloc.c
+@@ -475,7 +475,7 @@ find_component_directory (const gchar *d
+ prefix = gnc_gbr_find_prefix (NULL);
+ if (prefix == NULL)
+ return g_strdup (default_dir ? default_dir : compiled_dir);
+- if (!g_getenv("GNC_UNINSTALLE"))
++ if (!g_getenv("GNC_UNINSTALLED"))
+ {
+ if (!g_strcmp0 (prefix, PREFIX))
+ return g_strdup (compiled_dir);