[packages/libbonoboui] correct pointer usage to fix build with gcc 14
atler
atler at pld-linux.org
Sun Jul 27 12:06:00 CEST 2025
commit fbcbd6a902decade8f87fd42f39d462e1b5b46fb
Author: Jan Palus <atler at pld-linux.org>
Date: Sun Jul 27 12:01:49 2025 +0200
correct pointer usage to fix build with gcc 14
libbonoboui.spec | 2 ++
types.patch | 22 ++++++++++++++++++++++
2 files changed, 24 insertions(+)
---
diff --git a/libbonoboui.spec b/libbonoboui.spec
index 37fded8..0792d79 100644
--- a/libbonoboui.spec
+++ b/libbonoboui.spec
@@ -12,6 +12,7 @@ Group: X11/Libraries
Source0: https://download.gnome.org/sources/libbonoboui/2.24/%{name}-%{version}.tar.bz2
# Source0-md5: 853be8e28aaa4ce48ba60be7d9046bf4
Patch0: %{name}-includes.patch
+Patch1: types.patch
URL: https://www.gnome.org/
BuildRequires: GConf2-devel >= 2.24.0
BuildRequires: autoconf
@@ -128,6 +129,7 @@ Wyświetla dostępne komponenty bonobo.
%prep
%setup -q
%patch -P0 -p1
+%patch -P1 -p1
%build
%{__gtkdocize}
diff --git a/types.patch b/types.patch
new file mode 100644
index 0000000..dc1e25b
--- /dev/null
+++ b/types.patch
@@ -0,0 +1,22 @@
+--- libbonoboui-2.24.5/bonobo/bonobo-control.c.orig 2009-05-06 14:32:42.000000000 +0200
++++ libbonoboui-2.24.5/bonobo/bonobo-control.c 2025-07-27 11:53:37.370554364 +0200
+@@ -1368,7 +1368,7 @@
+ old_plug = (BonoboPlug *) control->priv->plug;
+
+ if (plug)
+- control->priv->plug = g_object_ref (plug);
++ control->priv->plug = GTK_WIDGET(g_object_ref (plug));
+ else
+ control->priv->plug = NULL;
+
+--- libbonoboui-2.24.5/bonobo/bonobo-control-frame.c.orig 2009-04-20 15:17:21.000000000 +0200
++++ libbonoboui-2.24.5/bonobo/bonobo-control-frame.c 2025-07-27 11:52:40.036876145 +0200
+@@ -1088,7 +1088,7 @@
+ old_socket = (BonoboSocket *) frame->priv->socket;
+
+ if (socket)
+- frame->priv->socket = g_object_ref (socket);
++ frame->priv->socket = GTK_WIDGET(g_object_ref (socket));
+ else
+ frame->priv->socket = NULL;
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libbonoboui.git/commitdiff/a0a620e2af64788df05befb4a23c3a83f130866d
More information about the pld-cvs-commit
mailing list