gnucash: update to 4.4

Fix use-after-free in test_xaccTransEqual
Disable two tests which require having the fr_FR and de_DE locales installed.
Add tzdata as dependency
Make_check_target=check
This commit is contained in:
Manfred Usselmann 2021-02-06 20:03:01 +01:00 committed by Helmut Pozimski
parent e9886d613c
commit 459c461d12
3 changed files with 38 additions and 6 deletions

View File

@ -0,0 +1,14 @@
--- libgnucash/engine/test/CMakeLists.txt 2020-07-11 01:39:03.000000000 +0200
+++ libgnucash/engine/test/CMakeLists.txt 2021-01-31 22:22:19.782029671 +0100
@@ -49,3 +49,3 @@ if (NOT WIN32)
- set(SOURCES ${test_qof_SOURCES} ${CMAKE_SOURCE_DIR}/common/test-core/unittest-support.c)
- add_engine_test(test-qof "${SOURCES}")
- target_compile_definitions(test-qof PRIVATE TESTPROG=test_qof)
+ # set(SOURCES ${test_qof_SOURCES} ${CMAKE_SOURCE_DIR}/common/test-core/unittest-support.c)
+ # add_engine_test(test-qof "${SOURCES}")
+ # target_compile_definitions(test-qof PRIVATE TESTPROG=test_qof)
@@ -167,2 +167,2 @@ set(test_gnc_numeric_SOURCES
-gnc_add_test(test-gnc-numeric "${test_gnc_numeric_SOURCES}"
- gtest_engine_INCLUDES gtest_qof_LIBS)
+# gnc_add_test(test-gnc-numeric "${test_gnc_numeric_SOURCES}"
+# gtest_engine_INCLUDES gtest_qof_LIBS)

View File

@ -0,0 +1,17 @@
--- libgnucash/engine/test/utest-Transaction.cpp
+++ libgnucash/engine/test/utest-Transaction.cpp
@@ -901,7 +901,6 @@ test_xaccTransEqual (Fixture *fixture, gconstpointer pData)
g_assert_cmpint (check->hits, ==, 10);
g_assert_cmpint (check2->hits, ==, 1);
- g_free (check->msg);
g_free (check2->msg);
check2->msg = g_strdup_printf (
"[xaccTransEqual] splits %s and %s differ", split_guid0, split_guid0);
@@ -924,6 +923,7 @@ test_xaccTransEqual (Fixture *fixture, gconstpointer pData)
auto bal01 = gnc_numeric_to_string (split01->balance);
auto bal10 = gnc_numeric_to_string (split10->balance);
auto bal11 = gnc_numeric_to_string (split11->balance);
+ g_free (check->msg);
check->msg = g_strdup_printf("[xaccSplitEqualCheckBal] balances differ: %s vs %s", bal10, bal00);
check3->msg = g_strdup_printf("[xaccSplitEqualCheckBal] balances differ: %s vs %s", bal11, bal01);

View File

@ -1,22 +1,23 @@
# Template file for 'gnucash'
pkgname=gnucash
version=4.2
revision=3
version=4.4
revision=1
wrksrc="${pkgname}-${version%b}"
build_style=cmake
make_check_target=check
configure_args="-DWITH_SQL=0 -DWITH_PYTHON=1"
hostmakedepends="pkg-config guile python3 libxslt perl gettext swig"
makedepends="aqbanking-devel boost-devel gc-devel glib-devel gtest-devel guile-devel
gwenhywfar-devel ktoblzcheck-devel libofx-devel libsecret-devel
libxslt-devel webkit2gtk-devel python3-devel gwenhywfar-gtk3"
libxslt-devel webkit2gtk-devel python3-devel gwenhywfar-gtk3 tzdata"
depends="dconf guile perl"
short_desc="Financial-accounting software"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="http://www.gnucash.org"
#distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
distfiles="https://sources.voidlinux.org/gnucash-${version}/gnucash-${version}.tar.bz2"
checksum=56d8ab039ef7784303ca9eab14bfc20f593f7a3f9b682a8a7eac25906a0d1308
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
#distfiles="https://sources.voidlinux.org/gnucash-${version}/gnucash-${version}.tar.bz2"
checksum=d91e0d126b461d71de1bc1b20d9cf142704353dec07d3e6599d138422759e67a
pycompile_dirs="usr/share/gnucash/python"
conf_files="/etc/gnucash/environment"