[packages/firestarter] Rel 8
arekm
arekm at pld-linux.org
Thu May 21 15:52:40 CEST 2026
commit 81cf3069840b757bc405f32c91abd73f58839fe9
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu May 21 15:52:24 2026 +0200
Rel 8
firestarter-modern-gcc.patch | 96 ++++++++++++++++++++++++++++++++++++++++++++
firestarter.spec | 4 +-
2 files changed, 99 insertions(+), 1 deletion(-)
---
diff --git a/firestarter.spec b/firestarter.spec
index 798c92c..e75d4a5 100644
--- a/firestarter.spec
+++ b/firestarter.spec
@@ -2,7 +2,7 @@ Summary: A GNOME firewall tool
Summary(pl.UTF-8): Narzędzie do konfiguracji firewalla działające w środowisku GNOME
Name: firestarter
Version: 1.0.3
-Release: 7
+Release: 8
License: GPL
Group: X11/Applications/Networking
Source0: http://downloads.sourceforge.net/firestarter/%{name}-%{version}.tar.gz
@@ -11,6 +11,7 @@ Source1: %{name}.init
Patch0: %{name}-desktop.patch
Patch1: %{name}-locale_names.patch
Patch2: %{name}-script.patch
+Patch3: %{name}-modern-gcc.patch
URL: http://www.fs-security.com/
BuildRequires: autoconf >= 2.50
BuildRequires: automake
@@ -49,6 +50,7 @@ administrowania wraz z istniejącymi regułami firewalla.
%patch -P0 -p1
%patch -P1 -p1
%patch -P2 -p1
+%patch -P3 -p1
mv -f po/{no,nb}.po
diff --git a/firestarter-modern-gcc.patch b/firestarter-modern-gcc.patch
new file mode 100644
index 0000000..616f89c
--- /dev/null
+++ b/firestarter-modern-gcc.patch
@@ -0,0 +1,96 @@
+diff -urN a/src/firestarter.c b/src/firestarter.c
+--- a/src/firestarter.c 2005-01-29 13:32:08.000000000 +0100
++++ b/src/firestarter.c 2026-05-21 01:32:03.652885686 +0200
+@@ -34,6 +34,8 @@
+ #include "statusview.h"
+
+ FirestarterApp Firestarter;
++gboolean NETFILTER;
++gboolean CONSOLE;
+
+ static gint save_session (GnomeClient *client,
+ gint phase,
+diff -urN a/src/globals.h b/src/globals.h
+--- a/src/globals.h 2005-01-29 13:32:08.000000000 +0100
++++ b/src/globals.h 2026-05-21 01:31:56.359552353 +0200
+@@ -24,7 +24,7 @@
+
+ extern FirestarterApp Firestarter;
+
+-gboolean NETFILTER;
+-gboolean CONSOLE;
++extern gboolean NETFILTER;
++extern gboolean CONSOLE;
+
+ #endif
+diff -urN a/src/menus.c b/src/menus.c
+--- a/src/menus.c 2005-01-29 13:32:08.000000000 +0100
++++ b/src/menus.c 2026-05-21 01:32:26.421883459 +0200
+@@ -23,6 +23,8 @@
+
+ #include "xpm/firestarter-pixbufs.h"
+
++GtkWidget *appbar;
++
+ #define FIRESTARTER_STOCK_WIZARD "firestarter-wizard-icon"
+ #define FIRESTARTER_STOCK_START_FIREWALL "firestarter-start-firewall-icon"
+ #define FIRESTARTER_STOCK_STOP_FIREWALL "firestarter-stop-firewall-icon"
+diff -urN a/src/menus.h b/src/menus.h
+--- a/src/menus.h 2005-01-29 13:32:08.000000000 +0100
++++ b/src/menus.h 2026-05-21 01:32:12.169552353 +0200
+@@ -17,7 +17,7 @@
+ #include "gui.h"
+ #include "statusview.h"
+
+-GtkWidget *appbar;
++extern GtkWidget *appbar;
+
+ void menus_initialize (GtkWidget *app);
+ void menus_set_toolbar (FirestarterView new_view);
+diff -urN a/src/preferences.c b/src/preferences.c
+--- a/src/preferences.c 2005-01-29 13:32:08.000000000 +0100
++++ b/src/preferences.c 2026-05-21 01:30:11.096219018 +0200
+@@ -161,7 +161,7 @@
+ GtkWidget *dialog;
+
+ dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_DESTROY_WITH_PARENT,
+- GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, msg);
++ GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, "%s", msg);
+ gtk_dialog_run (GTK_DIALOG (dialog));
+ gtk_widget_destroy (dialog);
+ exit(1);
+diff -urN a/src/scriptwriter.c b/src/scriptwriter.c
+--- a/src/scriptwriter.c 2005-01-29 13:32:08.000000000 +0100
++++ b/src/scriptwriter.c 2026-05-21 01:30:11.092885685 +0200
+@@ -491,11 +491,11 @@
+ }
+
+ rewind (f);
+- fprintf (f, FIRESTARTER_HOOK);
++ fputs (FIRESTARTER_HOOK, f);
+
+ link = list;
+ while (link != NULL) {
+- fprintf (f, link->data);
++ fputs (link->data, f);
+ g_free (link->data);
+ link = link->next;
+ }
+@@ -544,7 +544,7 @@
+
+ link = newlist;
+ while (link != NULL) {
+- fprintf (f, link->data);
++ fputs (link->data, f);
+ g_free (link->data);
+ link = link->next;
+ }
+@@ -580,7 +580,7 @@
+ return;
+ }
+
+- fprintf (f, FIRESTARTER_HOOK);
++ fputs (FIRESTARTER_HOOK, f);
+ fclose (f);
+ }
+ }
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/firestarter.git/commitdiff/81cf3069840b757bc405f32c91abd73f58839fe9
More information about the pld-cvs-commit
mailing list