diff --git a/462.patch b/462.patch new file mode 100644 index 0000000..c72dba3 --- /dev/null +++ b/462.patch @@ -0,0 +1,24 @@ +From b53d5c65e025ef87cc126c5207678ac7619dbae1 Mon Sep 17 00:00:00 2001 +From: "Joshua \"jag\" Ginsberg" +Date: Wed, 20 Feb 2019 18:56:41 -0500 +Subject: [PATCH] Fixes to traceback calls in pycons + +--- + gnucash/python/pycons/shell.py | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/gnucash/python/pycons/shell.py b/gnucash/python/pycons/shell.py +index dfdc0d8ba0..33cff53592 100644 +--- a/gnucash/python/pycons/shell.py ++++ b/gnucash/python/pycons/shell.py +@@ -166,8 +166,8 @@ def execute (self, console): + tb = sys.exc_traceback + if tb: + tb=tb.tb_next +- traceback.print(_exception (sys.exc_type, sys.exc_value, tb)) ++ traceback.print_exception(sys.exc_type, sys.exc_value, tb) + except: + sys.stderr, console.stderr = console.stderr, sys.stderr +- traceback.print(_exc()) ++ traceback.print_exc() + diff --git a/gnucash.spec b/gnucash.spec index b46d5a0..d64b370 100644 --- a/gnucash.spec +++ b/gnucash.spec @@ -2,10 +2,11 @@ Name: gnucash Summary: Finance management application Version: 3.4 URL: http://gnucash.org/ -Release: 3%{?dist} +Release: 4%{?dist} License: GPLv2+ Source: http://downloads.sourceforge.net/sourceforge/gnucash/gnucash-%{version}.tar.bz2 Patch0001: https://github.com/Gnucash/gnucash/pull/456.patch +Patch0002: https://github.com/Gnucash/gnucash/pull/462.patch # https://bugzilla.redhat.com/show_bug.cgi?id=1563466 ExcludeArch: ppc64 s390x @@ -44,7 +45,7 @@ balanced books. %build # thanks gcc8 %global optflags %{optflags} -Wno-parentheses -%cmake . +%cmake -D WITH_PYTHON=ON . %make_build %install @@ -88,6 +89,9 @@ appstream-util validate-relax --nonet $RPM_BUILD_ROOT%{_datadir}/metainfo/gnucas %config(noreplace) %{_sysconfdir}/gnucash/* %changelog +* Wed Feb 20 2019 Bill Nottingham - 3.4-4 +- reenable (and apply patch for) python bindings + * Sun Feb 17 2019 Elliott Sales de Andrade - 3.4-3 - Backport strncpy overflow-warning fix.