Accepting request 1178626 from GNOME:Next

- Add telepathy-glib-function-type-cast.patch: fix an invalid cast
  (glfdo#telepathy/telepathy-glib!4).

OBS-URL: https://build.opensuse.org/request/show/1178626
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/telepathy-glib?expand=0&rev=173
This commit is contained in:
Dominique Leuenberger 2024-06-05 06:37:14 +00:00 committed by Git OBS Bridge
parent 5c3456577b
commit fe051e5fe6
3 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,27 @@
From 72412c944b771f3214ddc40fa9dea82cea3a5651 Mon Sep 17 00:00:00 2001
From: Mamoru TASAKA <mtasaka@fedoraproject.org>
Date: Fri, 2 Feb 2024 12:17:44 +0900
Subject: [PATCH] fix: build fix with -Werror=incompatible-pointer-types
gcc14 defaults to -Werror=incompatible-pointer-types .
Fix build error with this option.
---
telepathy-glib/protocol.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/telepathy-glib/protocol.c b/telepathy-glib/protocol.c
index 88fdff382..25b36620b 100644
--- a/telepathy-glib/protocol.c
+++ b/telepathy-glib/protocol.c
@@ -1791,7 +1791,7 @@ _tp_protocol_parse_manager_file (GKeyFile *file,
i++;
}
- param_specs = g_ptr_array_new_full (i, tp_value_array_free);
+ param_specs = g_ptr_array_new_full (i, (GDestroyNotify) tp_value_array_free);
for (key = keys; key != NULL && *key != NULL; key++)
{
--
GitLab

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Jun 4 21:43:45 UTC 2024 - Michael Gorse <mgorse@suse.com>
- Add telepathy-glib-function-type-cast.patch: fix an invalid cast
(glfdo#telepathy/telepathy-glib!4).
-------------------------------------------------------------------
Tue Mar 5 14:05:37 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@ -24,6 +24,8 @@ License: LGPL-2.1-or-later
Group: Development/Languages/C and C++
URL: http://telepathy.freedesktop.org/
Source: http://telepathy.freedesktop.org/releases/telepathy-glib/%{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM telepathy-glib-function-type-cast.patch boo#1221707 mgorse@suse.com -- fix an invalid cast.
Patch0: telepathy-glib-function-type-cast.patch
BuildRequires: gtk-doc >= 1.17
BuildRequires: libxslt-devel