commit 55dc93dd5928f078e0daf2ef48a926088349e210
Author: Mamoru TASAKA <mtasaka(a)fedoraproject.org>
Date: Mon Oct 21 21:02:49 2024 +0900
Fix FTBFS with gcc14 -Werror=incompatible-pointer-types
mate-applet-streamer-0.4.1-type-cast.patch | 105 +++++++++++++++++++++++++++++
mate-applet-streamer.spec | 9 ++-
2 files changed, 112 insertions(+), 2 deletions(-)
---
diff --git a/mate-applet-streamer-0.4.1-type-cast.patch
b/mate-applet-streamer-0.4.1-type-cast.patch
new file mode 100644
index 0000000..e9cb6ff
--- /dev/null
+++ b/mate-applet-streamer-0.4.1-type-cast.patch
@@ -0,0 +1,105 @@
+diff -urp '--exclude=*~' mate-applet-streamer-0.4.1.orig/src/menu.c
mate-applet-streamer-0.4.1/src/menu.c
+--- mate-applet-streamer-0.4.1.orig/src/menu.c 2020-03-15 06:42:21.000000000 +0900
++++ mate-applet-streamer-0.4.1/src/menu.c 2024-10-21 15:16:32.944464569 +0900
+@@ -37,7 +37,7 @@ void menu_cb_about (GtkAction *action, s
+
+ gtk_about_dialog_set_copyright (GTK_ABOUT_DIALOG(about), "Copyleft 2013-2017. See
License for details.");
+
+- gchar *authors[2];
++ const gchar *authors[2];
+ authors[0] = "Assen Totin <assen.totin(a)gmail.com>";
+ authors[1] = NULL;
+ gtk_about_dialog_set_authors (GTK_ABOUT_DIALOG(about), &authors[0]);
+@@ -79,15 +79,15 @@ void menu_cb_all (GtkAction *action, str
+ GtkWidget *butt_favourites_play = gtk_button_new_from_stock(GTK_STOCK_MEDIA_PLAY);
+ #elif HAVE_GTK3
+ GtkWidget *butt_favourites_add = gtk_button_new_from_icon_name("list-add",
16);
+- gtk_button_set_label (butt_favourites_add, _("Add"));
++ gtk_button_set_label (GTK_BUTTON(butt_favourites_add), _("Add"));
+ GtkWidget *butt_favourites_del = gtk_button_new_from_icon_name("list-remove",
16);
+- gtk_button_set_label (butt_favourites_del, _("Remove"));
++ gtk_button_set_label (GTK_BUTTON(butt_favourites_del), _("Remove"));
+ GtkWidget *butt_favourites_up = gtk_button_new_from_icon_name("go-previous",
16);
+- gtk_button_set_label (butt_favourites_up, _("Previous"));
++ gtk_button_set_label (GTK_BUTTON(butt_favourites_up), _("Previous"));
+ GtkWidget *butt_favourites_down = gtk_button_new_from_icon_name("go-next",
16);
+- gtk_button_set_label (butt_favourites_down, _("Next"));
++ gtk_button_set_label (GTK_BUTTON(butt_favourites_down), _("Next"));
+ GtkWidget *butt_favourites_play =
gtk_button_new_from_icon_name("media-playback-start", 16);
+- gtk_button_set_label (butt_favourites_play, _("Play"));
++ gtk_button_set_label (GTK_BUTTON(butt_favourites_play), _("Play"));
+ #endif
+ gtk_widget_set_name(butt_favourites_play, "play_favourites");
+
+@@ -136,11 +136,11 @@ void menu_cb_all (GtkAction *action, str
+ GtkWidget *butt_icecast_play = gtk_button_new_from_stock(GTK_STOCK_MEDIA_PLAY);
+ #elif HAVE_GTK3
+ GtkWidget *butt_icecast_refresh =
gtk_button_new_from_icon_name("view-refresh", 16);
+- gtk_button_set_label (butt_icecast_refresh, _("Refresh"));
++ gtk_button_set_label (GTK_BUTTON(butt_icecast_refresh), _("Refresh"));
+ GtkWidget *butt_icecast_copy = gtk_button_new_from_icon_name("edit-copy",
16);
+- gtk_button_set_label (butt_icecast_copy, _("Copy"));
++ gtk_button_set_label (GTK_BUTTON(butt_icecast_copy), _("Copy"));
+ GtkWidget *butt_icecast_play =
gtk_button_new_from_icon_name("media-playback-start", 16);
+- gtk_button_set_label (butt_icecast_play, _("Play"));
++ gtk_button_set_label (GTK_BUTTON(butt_icecast_play), _("Play"));
+ #endif
+ gtk_widget_set_name(butt_icecast_copy, "copy_icecast");
+ gtk_widget_set_name(butt_icecast_play, "play_icecast");
+@@ -188,7 +188,7 @@ void menu_cb_all (GtkAction *action, str
+ GTK_WIDGET_SET_FLAGS(applet->butt_search_icecast, GTK_CAN_DEFAULT);
+ #elif HAVE_GTK3
+ applet->butt_search_icecast =
gtk_button_new_from_icon_name("system-search", 16);
+- gtk_button_set_label (applet->butt_search_icecast, _("Search"));
++ gtk_button_set_label (GTK_BUTTON(applet->butt_search_icecast),
_("Search"));
+ gtk_widget_set_can_default (applet->butt_search_icecast, TRUE);
+ #endif
+ gtk_widget_set_name(applet->butt_search_icecast, "search_icecast");
+@@ -233,11 +233,11 @@ void menu_cb_all (GtkAction *action, str
+ GtkWidget *butt_rbrowser_play = gtk_button_new_from_stock(GTK_STOCK_MEDIA_PLAY);
+ #elif HAVE_GTK3
+ GtkWidget *butt_rbrowser_refresh =
gtk_button_new_from_icon_name("view-refresh", 16);
+- gtk_button_set_label (butt_rbrowser_refresh, _("Refresh"));
++ gtk_button_set_label (GTK_BUTTON(butt_rbrowser_refresh), _("Refresh"));
+ GtkWidget *butt_rbrowser_copy = gtk_button_new_from_icon_name("edit-copy",
16);
+- gtk_button_set_label (butt_rbrowser_copy, _("Copy"));
++ gtk_button_set_label (GTK_BUTTON(butt_rbrowser_copy), _("Copy"));
+ GtkWidget *butt_rbrowser_play =
gtk_button_new_from_icon_name("media-playback-start", 16);
+- gtk_button_set_label (butt_rbrowser_play, _("Play"));
++ gtk_button_set_label (GTK_BUTTON(butt_rbrowser_play), _("Play"));
+ #endif
+ gtk_widget_set_name(butt_rbrowser_copy, "copy_rbrowser");
+ gtk_widget_set_name(butt_rbrowser_play, "play_rbrowser");
+@@ -285,7 +285,7 @@ void menu_cb_all (GtkAction *action, str
+ GTK_WIDGET_SET_FLAGS(applet->butt_search_rbrowser, GTK_CAN_DEFAULT);
+ #elif HAVE_GTK3
+ applet->butt_search_rbrowser =
gtk_button_new_from_icon_name("system-search", 16);
+- gtk_button_set_label (applet->butt_search_rbrowser, _("Search"));
++ gtk_button_set_label (GTK_BUTTON(applet->butt_search_rbrowser),
_("Search"));
+ gtk_widget_set_can_default (applet->butt_search_rbrowser, TRUE);
+ #endif
+ gtk_widget_set_name(applet->butt_search_rbrowser, "search_rbrowser");
+@@ -330,11 +330,11 @@ void menu_cb_all (GtkAction *action, str
+ GtkWidget *butt_custom_play = gtk_button_new_from_stock(GTK_STOCK_MEDIA_PLAY);
+ #elif HAVE_GTK3
+ GtkWidget *butt_custom_load = gtk_button_new_from_icon_name("document-open",
16);
+- gtk_button_set_label (butt_custom_load, _("Load"));
++ gtk_button_set_label (GTK_BUTTON(butt_custom_load), _("Load"));
+ GtkWidget *butt_custom_copy = gtk_button_new_from_icon_name("edit-copy",
16);
+- gtk_button_set_label (butt_custom_copy, _("Copy"));
++ gtk_button_set_label (GTK_BUTTON(butt_custom_copy), _("Copy"));
+ GtkWidget *butt_custom_play =
gtk_button_new_from_icon_name("media-playback-start", 16);
+- gtk_button_set_label (butt_custom_play, _("Play"));
++ gtk_button_set_label (GTK_BUTTON(butt_custom_play), _("Play"));
+ #endif
+ gtk_widget_set_name(butt_custom_copy, "copy_custom");
+ gtk_widget_set_name(butt_custom_play, "play_custom");
+@@ -382,7 +382,7 @@ void menu_cb_all (GtkAction *action, str
+ GTK_WIDGET_SET_FLAGS(applet->butt_search_custom, GTK_CAN_DEFAULT);
+ #elif HAVE_GTK3
+ applet->butt_search_custom =
gtk_button_new_from_icon_name("system-search", 16);
+- gtk_button_set_label (applet->butt_search_custom, _("Search"));
++ gtk_button_set_label (GTK_BUTTON(applet->butt_search_custom),
_("Search"));
+ gtk_widget_set_can_default (applet->butt_search_custom, TRUE);
+ #endif
+ gtk_widget_set_name(applet->butt_search_custom, "search_custom");
diff --git a/mate-applet-streamer.spec b/mate-applet-streamer.spec
index 58994f7..5bc4211 100644
--- a/mate-applet-streamer.spec
+++ b/mate-applet-streamer.spec
@@ -1,10 +1,12 @@
Name: mate-applet-streamer
Version: 0.4.1
-Release: 9%{?dist}
+Release: 10%{?dist}
Summary: MATE online radio streamer applet
License: GPLv2+
URL:
http://www.zavedil.com/online-radio-applet
Source:
http://www.zavedil.com/wp-content/uploads/2017/07/%{name}-%{version}.tar.gz
+# Fix FTBFS with gcc14 -Werror=incompatible-pointer-types
+Patch0: mate-applet-streamer-0.4.1-type-cast.patch
BuildRequires: gcc
BuildRequires: libnotify-devel
@@ -27,7 +29,7 @@ from your system tray or panel with a single click.
Icecast directory listing in included.
%prep
-%autosetup
+%autosetup -p1
NOCONFIGURE=1 ./autogen.sh
@@ -63,6 +65,9 @@ rm -rf %{buildroot}%{_datadir}/glib-2.0/schemas/gschemas.compiled
%changelog
+* Mon Oct 21 2024 Mamoru TASAKA <mtasaka(a)fedoraproject.org> - 0.4.1-10
+- Fix FTBFS with gcc14 -Werror=incompatible-pointer-types
+
* Fri Aug 02 2024 RPM Fusion Release Engineering <sergiomb(a)rpmfusion.org> -
0.4.1-9
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild