Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] gnucash: update to 3.10
@ 2020-04-14 19:05 manfredu
  2020-04-15 14:36 ` [PR PATCH] [Merged]: " Hoshpak
  0 siblings, 1 reply; 2+ messages in thread
From: manfredu @ 2020-04-14 19:05 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 310 bytes --]

There is a new pull request by manfredu against master on the void-packages repository

https://github.com/manfredu/void-packages gnucash
https://github.com/void-linux/void-packages/pull/20986

gnucash: update to 3.10


A patch file from https://github.com/void-linux/void-packages/pull/20986.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gnucash-20986.patch --]
[-- Type: text/x-diff, Size: 4073 bytes --]

From 8b25c227395610adf3224c8c3a5f588123f61981 Mon Sep 17 00:00:00 2001
From: Manfred Usselmann <mu@usselmann.it>
Date: Tue, 14 Apr 2020 20:47:13 +0200
Subject: [PATCH] gnucash: update to 3.10

---
 srcpkgs/gnucash/patches/python3.patch        | 28 -------------------
 srcpkgs/gnucash/patches/runTests_py_in.patch | 29 ++++++++++++++++++++
 srcpkgs/gnucash/template                     |  6 ++--
 3 files changed, 32 insertions(+), 31 deletions(-)
 delete mode 100644 srcpkgs/gnucash/patches/python3.patch
 create mode 100644 srcpkgs/gnucash/patches/runTests_py_in.patch

diff --git a/srcpkgs/gnucash/patches/python3.patch b/srcpkgs/gnucash/patches/python3.patch
deleted file mode 100644
index 63bfef53349..00000000000
--- a/srcpkgs/gnucash/patches/python3.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-Source: Hoshpak/upstream
-Upstream: partial
-Reason: compatibility of the remaining code with python3
---- gnucash/python/pycons/ishell.py	2018-09-27 12:30:44.136631542 +0200
-+++ gnucash/python/pycons/ishell.py	2018-09-27 12:46:51.636875378 +0200
-@@ -16,11 +16,10 @@
- import os
- import sys
- import re
--from StringIO import StringIO
- try:
-     import IPython
--    from IPython import ipapi
--except Exception,e:
-+    from IPython.core import interactiveshell
-+except Exception as e:
-     raise "Error importing IPython (%s)" % str(e)
- 
- 
-@@ -54,7 +53,7 @@
-                                                 header='IPython system call: ',
-                                                 verbose=self.IP.rc.system_verbose)
-         # Get a hold of the public IPython API object and use it
--        self.ip = ipapi.get()
-+        self.ip = interactiveshell.get_ipython()
-         self.ip.magic('colors LightBG')                
-         sys.excepthook = excepthook
-         self.iter_more = 0
diff --git a/srcpkgs/gnucash/patches/runTests_py_in.patch b/srcpkgs/gnucash/patches/runTests_py_in.patch
new file mode 100644
index 00000000000..d29ba404027
--- /dev/null
+++ b/srcpkgs/gnucash/patches/runTests_py_in.patch
@@ -0,0 +1,29 @@
+--- bindings/python/tests/CMakeLists.txt
++++ 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)
+--- bindings/python/tests/runTests.py.in
++++ 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/srcpkgs/gnucash/template b/srcpkgs/gnucash/template
index ee930ebaaf0..5145a701ac6 100644
--- a/srcpkgs/gnucash/template
+++ b/srcpkgs/gnucash/template
@@ -1,7 +1,7 @@
 # Template file for 'gnucash'
 pkgname=gnucash
-version=3.9
-revision=2
+version=3.10
+revision=1
 wrksrc="${pkgname}-${version%b}"
 build_style=cmake
 configure_args="-DWITH_SQL=0 -DWITH_PYTHON=1"
@@ -15,7 +15,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
 license="GPL-2.0-or-later"
 homepage="http://www.gnucash.org"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
-checksum=8d02dddc7cbc9d7324f4b577825dffffb8c4c938746701407e7b04bd647eb9ff
+checksum=b60772c276a63639964d1e24c795fbb9a7c0c6c45959168fe5cdfe08eb796f16
 
 pycompile_dirs="usr/share/gnucash/python"
 conf_files="/etc/gnucash/environment"

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PR PATCH] [Merged]: gnucash: update to 3.10
  2020-04-14 19:05 [PR PATCH] gnucash: update to 3.10 manfredu
@ 2020-04-15 14:36 ` Hoshpak
  0 siblings, 0 replies; 2+ messages in thread
From: Hoshpak @ 2020-04-15 14:36 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 261 bytes --]

There's a merged pull request on the void-packages repository

gnucash: update to 3.10
https://github.com/void-linux/void-packages/pull/20986

Description:
@Hoshpak: Please review, I had to patch the tarball. See https://bugs.gnucash.org/show_bug.cgi?id=797679

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-04-15 14:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-14 19:05 [PR PATCH] gnucash: update to 3.10 manfredu
2020-04-15 14:36 ` [PR PATCH] [Merged]: " Hoshpak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).