[packages/lxpanel] - gcc14 fix, rel 3

baggins baggins at pld-linux.org
Fri Aug 2 13:27:02 CEST 2024


commit fab2397dc302c17e6fb5b6dbb7ccfc488cdacb6c
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Fri Aug 2 12:33:11 2024 +0200

    - gcc14 fix, rel 3

 gcc14-incompatible-pointer-types.patch | 25 +++++++++++++++++++++++++
 lxpanel.spec                           |  4 +++-
 2 files changed, 28 insertions(+), 1 deletion(-)
---
diff --git a/lxpanel.spec b/lxpanel.spec
index 9c32428..e17d743 100644
--- a/lxpanel.spec
+++ b/lxpanel.spec
@@ -10,11 +10,12 @@ Summary:	LXPanel - a lightweight X11 desktop panel
 Summary(pl.UTF-8):	LXPanel - lekki panel pulpitu X11
 Name:		lxpanel
 Version:	0.10.1
-Release:	2
+Release:	3
 License:	GPL v2+
 Group:		X11/Applications
 Source0:	https://downloads.sourceforge.net/lxde/%{name}-%{version}.tar.xz
 # Source0-md5:	c922d044789c3d7ae028f0e80dea18b0
+Patch0:		gcc14-incompatible-pointer-types.patch
 URL:		http://www.lxde.org/
 BuildRequires:	autoconf >= 2.53
 BuildRequires:	automake >= 1:1.12
@@ -81,6 +82,7 @@ Pliki nagłówkowe dla wtyczek lxpanelu.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__libtoolize}
diff --git a/gcc14-incompatible-pointer-types.patch b/gcc14-incompatible-pointer-types.patch
new file mode 100644
index 0000000..7e758e4
--- /dev/null
+++ b/gcc14-incompatible-pointer-types.patch
@@ -0,0 +1,25 @@
+From 914bcc3945503be2506e112883a648b867c6db57 Mon Sep 17 00:00:00 2001
+From: Ravi Kant Sharma <600723+raviksharma at users.noreply.github.com>
+Date: Tue, 23 Jul 2024 18:02:44 +0200
+Subject: [PATCH] fix build failure on gcc-14
+
+gcc-14 treats implicitly casting all pointer types to all other pointer types as error now.
+
+https://gcc.gnu.org/gcc-14/porting_to.html#warnings-as-errors
+---
+ plugins/tray.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/plugins/tray.c b/plugins/tray.c
+index 3e66b81f..42d4917c 100644
+--- a/plugins/tray.c
++++ b/plugins/tray.c
+@@ -631,7 +631,7 @@ static GtkWidget *tray_constructor(LXPanel *panel, config_setting_t *settings)
+     /* Add GDK event filter. */
+     gdk_window_add_filter(NULL, (GdkFilterFunc) tray_event_filter, tr);
+     /* Reference the window since it is never added to a container. */
+-    tr->invisible = g_object_ref_sink(G_OBJECT(invisible));
++    tr->invisible = (GtkWidget *) g_object_ref_sink(G_OBJECT(invisible));
+     tr->invisible_window = GDK_WINDOW_XID(gtk_widget_get_window(invisible));
+ 
+     /* Allocate top level widget and set into Plugin widget pointer. */
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/lxpanel.git/commitdiff/fab2397dc302c17e6fb5b6dbb7ccfc488cdacb6c



More information about the pld-cvs-commit mailing list