git: b489c39b0d63 - 2023Q3 - www/bluefish: Fix build on clang16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 05 Jul 2023 07:08:54 UTC
The branch 2023Q3 has been updated by eduardo: URL: https://cgit.FreeBSD.org/ports/commit/?id=b489c39b0d63e5b4715ec0db459df5dbc8b5e510 commit b489c39b0d63e5b4715ec0db459df5dbc8b5e510 Author: Nuno Teixeira <eduardo@FreeBSD.org> AuthorDate: 2023-07-04 23:52:23 +0000 Commit: Nuno Teixeira <eduardo@FreeBSD.org> CommitDate: 2023-07-05 07:08:42 +0000 www/bluefish: Fix build on clang16 Use G_CALLBACK() macro to silence incompatible function pointer warnings and disables any argument checks. Sugested by: dim See also: https://lists.freebsd.org/archives/freebsd-ports/2023-July/004036.html MFH: 2023Q3 (cherry picked from commit e95c4bea425b3e3c49b63e0cf4eff24af40c574b) --- www/bluefish/Makefile | 1 + www/bluefish/files/patch-src_bftextview2__autocomp.c | 11 +++++++++++ www/bluefish/files/patch-src_external__commands.c | 11 +++++++++++ 3 files changed, 23 insertions(+) diff --git a/www/bluefish/Makefile b/www/bluefish/Makefile index cb70663a38d5..c5cfd419be0e 100644 --- a/www/bluefish/Makefile +++ b/www/bluefish/Makefile @@ -1,5 +1,6 @@ PORTNAME= bluefish DISTVERSION= 2.2.14 +PORTREVISION= 1 CATEGORIES= www editors MASTER_SITES= https://www.bennewitz.com/bluefish/stable/source/ \ SF diff --git a/www/bluefish/files/patch-src_bftextview2__autocomp.c b/www/bluefish/files/patch-src_bftextview2__autocomp.c new file mode 100644 index 000000000000..fad336a7c3f3 --- /dev/null +++ b/www/bluefish/files/patch-src_bftextview2__autocomp.c @@ -0,0 +1,11 @@ +--- src/bftextview2_autocomp.c.orig 2023-07-04 14:09:37 UTC ++++ src/bftextview2_autocomp.c +@@ -429,7 +429,7 @@ acwin_create(BluefishTextView * btv) + /*gtk_widget_set_size_request(acw->reflabel,150,-1); */ + gtk_widget_show_all(acw->scroll); + gtk_widget_show(hbox); +- g_signal_connect(acw->reflabel, "activate-link", acw_label_active_link_lcb, acw); ++ g_signal_connect(acw->reflabel, "activate-link", G_CALLBACK(acw_label_active_link_lcb), acw); + /*gtk_widget_set_size_request(GTK_WIDGET(acw->tree),100,200); */ + /*gtk_widget_set_size_request(acw->win, 150, 200); */ + /*g_signal_connect(G_OBJECT(acw->win),"key-release-event",G_CALLBACK(acwin_key_release_lcb),acw); */ diff --git a/www/bluefish/files/patch-src_external__commands.c b/www/bluefish/files/patch-src_external__commands.c new file mode 100644 index 000000000000..fb5fe1492f4a --- /dev/null +++ b/www/bluefish/files/patch-src_external__commands.c @@ -0,0 +1,11 @@ +--- src/external_commands.c.orig 2023-07-04 14:12:18 UTC ++++ src/external_commands.c +@@ -483,7 +483,7 @@ create_commandstring(Texternalp * ep, const gchar * fo + gtk_dialog_set_default_response(GTK_DIALOG(dialog),GTK_RESPONSE_ACCEPT); + tmp = g_strdup_printf(_("Supply arguments to define %%a in '%s'"), formatstring); + entry = dialog_entry_labeled(NULL, tmp, gtk_dialog_get_content_area(GTK_DIALOG(dialog)), 6); +- g_signal_connect(G_OBJECT(entry), "activate", command_dialog_entry_activated_lcb, dialog); ++ g_signal_connect(G_OBJECT(entry), "activate", G_CALLBACK(command_dialog_entry_activated_lcb), dialog); + g_free(tmp); + gtk_widget_show_all(dialog); + result = gtk_dialog_run(GTK_DIALOG(dialog));