forked from pool/gnumeric
Accepting request 1186686 from GNOME:Apps
OBS-URL: https://build.opensuse.org/request/show/1186686 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gnumeric?expand=0&rev=134
This commit is contained in:
29
771528ae54d8335957533291b89f87da812aca95.patch
Normal file
29
771528ae54d8335957533291b89f87da812aca95.patch
Normal file
@@ -0,0 +1,29 @@
|
||||
From 771528ae54d8335957533291b89f87da812aca95 Mon Sep 17 00:00:00 2001
|
||||
From: Yaakov Selkowitz <yselkowi@redhat.com>
|
||||
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
|
||||
|
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 10 12:17:12 UTC 2024 - Bjørn Lie <bjorn.lie@gmail.com>
|
||||
|
||||
- Add 771528ae54d8335957533291b89f87da812aca95.patch: Fix build
|
||||
with GCC 14.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 12 16:47:31 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user