Accepting request 240786 from GNOME:Apps

1

OBS-URL: https://build.opensuse.org/request/show/240786
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gnucash?expand=0&rev=55
This commit is contained in:
Stephan Kulow
2014-07-17 04:58:07 +00:00
committed by Git OBS Bridge
parent 918e1fe1e8
commit dd0588dde4
3 changed files with 27 additions and 0 deletions

13
gnucash-libdbi-0.9.patch Normal file
View File

@@ -0,0 +1,13 @@
Index: gnucash-2.6.3/src/backend/dbi/gnc-backend-dbi.c
===================================================================
--- gnucash-2.6.3.orig/src/backend/dbi/gnc-backend-dbi.c
+++ gnucash-2.6.3/src/backend/dbi/gnc-backend-dbi.c
@@ -2039,7 +2039,7 @@ row_get_value_at_col_name( GncSqlRow* ro
dbi_result_t *result = (dbi_result_t*)(dbi_row->result);
guint64 row = dbi_result_get_currow (result);
guint idx = dbi_result_get_field_idx (result, col_name) - 1;
- time64 time = result->rows[row]->field_values[idx].d_datetime;
+ time64 time = _dbi_make_datetime(result->rows[row]->field_values[idx].d_datetimex);
(void)g_value_init( value, G_TYPE_INT64 );
g_value_set_int64 (value, time);
}

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Jul 10 15:04:46 UTC 2014 - dimstar@opensuse.org
- Add gnucash-libdbi-0.9.patch: Fix build with libdbi-0.9.0+git23
and newer. Only applied on openSUSE > 13.1.5 (Factory, but not
SLE12).
-------------------------------------------------------------------
Mon Mar 31 21:03:12 UTC 2014 - mgorse@suse.com

View File

@@ -27,6 +27,8 @@ Source: http://downloads.sourceforge.net/project/gnucash/gnucash%20%28st
Source1: %{name}-rpmlintrc
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/Packaging/Patches
Patch0: gnucash-cpan-warning.patch
# PATCH-FIX-UPSTREAM gnucash-libdbi-0.9.patch dimstar@opensuse.org -- Fix build with libdbi-0.9.0+git23 and newer
Patch1: gnucash-libdbi-0.9.patch
BuildRequires: automake
BuildRequires: doxygen
BuildRequires: fdupes
@@ -136,6 +138,11 @@ balanced books.
%setup -q
# This patch must be applied:
%patch0
%if 0%{?suse_version} > 1315
# in openSUSE Factory, we have libdbi 0.9.0+git23, which changed the API a bit
# SLE12 contains libdbi 0.9.0, before this API change.
%patch1 -p1
%endif
%build
%if %{?suse_version} >= 1210