Accepting request 1328100 from home:jmelcr

- Add gcc16.patch, so that the package builds with GCC 16

OBS-URL: https://build.opensuse.org/request/show/1328100
OBS-URL: https://build.opensuse.org/package/show/Office/gnucash?expand=0&rev=69
This commit is contained in:
Johannes Engel
2026-01-23 20:02:22 +00:00
committed by Git OBS Bridge
parent 9b753b35da
commit 1f10022d34
3 changed files with 24 additions and 1 deletions
+5
View File
@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jan 19 14:17:55 UTC 2026 - Josef Melcr <josef.melcr@suse.com>
- Add gcc16.patch, so that the package builds with GCC 16
-------------------------------------------------------------------
Thu Nov 20 22:41:24 UTC 2025 - Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@fastmail.net>
+2 -1
View File
@@ -1,7 +1,7 @@
#
# spec file for package gnucash
#
# Copyright (c) 2025 SUSE LLC and contributors
# Copyright (c) 2026 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -51,6 +51,7 @@ Patch2: gnucash-4.1-fix-gtest-path.patch
Patch3: gnucash-boost-1.89.patch
# PATCH-FIX-UPSTREAM gh#gnucash/gnucash#2152 -- test-userdata-dir-invalid-home: Unset XDG_DATA_HOME
Patch4: gnucash-fix-test-userdata-dir-invalid-home.patch
Patch5: gcc16.patch
BuildRequires: cmake >= 3.14
BuildRequires: doxygen
+17
View File
@@ -0,0 +1,17 @@
Index: gnucash-5.13/gnucash/gnome/dialog-sx-since-last-run.c
===================================================================
--- gnucash-5.13.orig/gnucash/gnome/dialog-sx-since-last-run.c
+++ gnucash-5.13/gnucash/gnome/dialog-sx-since-last-run.c
@@ -808,11 +808,10 @@ gsslrtma_removing_cb (GncSxInstanceModel
GtkTreePath *model_path;
GtkTreeIter tree_iter;
GList *iter;
- int index = 0;
GncSxInstances *instances;
// get index, create path, remove
- for (iter = gnc_sx_instance_model_get_sx_instances_list (inst_model); iter != NULL; iter = iter->next, index++)
+ for (iter = gnc_sx_instance_model_get_sx_instances_list (inst_model); iter != NULL; iter = iter->next)
{
instances = (GncSxInstances*)iter->data;
if (instances->sx == to_remove_sx)