diff --git a/771528ae54d8335957533291b89f87da812aca95.patch b/771528ae54d8335957533291b89f87da812aca95.patch new file mode 100644 index 0000000..40c6be6 --- /dev/null +++ b/771528ae54d8335957533291b89f87da812aca95.patch @@ -0,0 +1,29 @@ +From 771528ae54d8335957533291b89f87da812aca95 Mon Sep 17 00:00:00 2001 +From: Yaakov Selkowitz +Date: Fri, 26 Apr 2024 04:23:56 +0000 +Subject: [PATCH] Fix build with GCC 14 + +plugin-gda.c: In function 'open_connection': +plugin-gda.c:330:61: error: passing argument 1 of 'gda_connection_open_from_dsn' from incompatible pointer type [-Wincompatible-pointer-types] +In file included from /usr/include/libgda-6.0/libgda/libgda.h:36: +/usr/include/libgda-6.0/libgda/gda-connection.h:268:71: note: expected 'GdaDsnInfo *' {aka 'struct _GdaDsnInfo *'} but argument is of type 'gchar *' {aka 'char *'} +--- + plugins/gda/plugin-gda.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/plugins/gda/plugin-gda.c b/plugins/gda/plugin-gda.c +index f8414f7e6..1a196e108 100644 +--- a/plugins/gda/plugin-gda.c ++++ b/plugins/gda/plugin-gda.c +@@ -327,7 +327,7 @@ open_connection (const gchar *dsn, const gchar *user, const gchar *password, Gda + gchar *chosen_dsn = NULL, *auth_string = NULL; + + if (query_connection_info (dsn, user, password, &chosen_dsn, &auth_string) && chosen_dsn) { +- cnc = gda_connection_open_from_dsn (chosen_dsn, auth_string, options, &error); ++ cnc = gda_connection_open_from_dsn_name (chosen_dsn, auth_string, options, &error); + if (!cnc) { + g_warning ("Libgda error: %s\n", error->message); + g_error_free (error); +-- +GitLab + diff --git a/gnumeric.changes b/gnumeric.changes index 8050f34..552bf97 100644 --- a/gnumeric.changes +++ b/gnumeric.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Jul 10 12:17:12 UTC 2024 - Bjørn Lie + +- Add 771528ae54d8335957533291b89f87da812aca95.patch: Fix build + with GCC 14. + ------------------------------------------------------------------- Mon Feb 12 16:47:31 UTC 2024 - Dominique Leuenberger diff --git a/gnumeric.spec b/gnumeric.spec index 067a57a..4f38e74 100644 --- a/gnumeric.spec +++ b/gnumeric.spec @@ -25,6 +25,8 @@ Group: Productivity/Office/Spreadsheets URL: http://www.gnumeric.org/ Source0: %{name}-%{version}.tar.zst Source1: gnumeric-rpmlintrc +# PATCH-FIX-UPSTREAM 771528ae54d8335957533291b89f87da812aca95.patch: Fix build with GCC 14 +Patch1: https://gitlab.gnome.org/GNOME/gnumeric/-/commit/771528ae54d8335957533291b89f87da812aca95.patch BuildRequires: bison BuildRequires: docbook-dtds