[packages/xfce4-timer-plugin] - up to 1.6.0 - fix format string error

baggins baggins at pld-linux.org
Sat Aug 16 10:04:45 CEST 2014


commit c8f377d1dde88213890045f0427ed5f744fa040e
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Aug 16 10:04:31 2014 +0200

    - up to 1.6.0
    - fix format string error

 format-security.patch               | 11 +++++++
 xfce4-timer-plugin-libxfce4ui.patch | 66 -------------------------------------
 xfce4-timer-plugin.spec             | 10 +++---
 3 files changed, 16 insertions(+), 71 deletions(-)
---
diff --git a/xfce4-timer-plugin.spec b/xfce4-timer-plugin.spec
index 3d7ceaa..8857687 100644
--- a/xfce4-timer-plugin.spec
+++ b/xfce4-timer-plugin.spec
@@ -1,13 +1,13 @@
 Summary:	Xfce panel timer plugin
 Summary(pl.UTF-8):	Wtyczka panelu Xfce odliczająca czas
 Name:		xfce4-timer-plugin
-Version:	0.6.4
-Release:	2
+Version:	1.6.0
+Release:	1
 License:	GPL
 Group:		X11/Applications
-Source0:	http://archive.xfce.org/src/panel-plugins/xfce4-timer-plugin/0.6/%{name}-%{version}.tar.bz2
-# Source0-md5:	c2f9e113dcda742cd1559129b79f609b
-Patch0:		%{name}-libxfce4ui.patch
+Source0:	http://archive.xfce.org/src/panel-plugins/xfce4-timer-plugin/1.6/%{name}-%{version}.tar.bz2
+# Source0-md5:	3be2a4ccfb2af20441b1d25c2cea5f28
+Patch0:		format-security.patch
 URL:		http://goodies.xfce.org/projects/panel-plugins/xfce4-timer-plugin
 BuildRequires:	autoconf >= 2.50
 BuildRequires:	automake
diff --git a/format-security.patch b/format-security.patch
new file mode 100644
index 0000000..d77ddce
--- /dev/null
+++ b/format-security.patch
@@ -0,0 +1,11 @@
+--- xfce4-timer-plugin-1.6.0/src/xfcetimer.c~	2014-06-05 00:31:03.000000000 +0200
++++ xfce4-timer-plugin-1.6.0/src/xfcetimer.c	2014-08-16 10:03:31.376720901 +0200
+@@ -190,7 +190,7 @@
+ 
+     dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL,
+                                     GTK_MESSAGE_WARNING,
+-                                    GTK_BUTTONS_NONE, dialog_message);
++                                    GTK_BUTTONS_NONE, "%s", dialog_message);
+                            
+     gtk_window_set_title ((GtkWindow *) dialog, dialog_title);                                    
+  
diff --git a/xfce4-timer-plugin-libxfce4ui.patch b/xfce4-timer-plugin-libxfce4ui.patch
deleted file mode 100644
index b232090..0000000
--- a/xfce4-timer-plugin-libxfce4ui.patch
+++ /dev/null
@@ -1,66 +0,0 @@
---- xfce4-timer-plugin-0.6.1/configure.in~	2008-11-20 21:45:22.000000000 +0100
-+++ xfce4-timer-plugin-0.6.1/configure.in	2011-07-06 10:49:47.560501986 +0200
-@@ -32,7 +32,7 @@
- dnl required
- XDT_CHECK_PACKAGE([GTHREAD], [gthread-2.0], [2.4.0])
- XDT_CHECK_PACKAGE([GTK], [gtk+-2.0], [2.4.0])
--XDT_CHECK_PACKAGE([LIBXFCEGUI4], [libxfcegui4-1.0], [4.2.0])
-+XDT_CHECK_PACKAGE([LIBXFCE4UI], [libxfce4ui-1], [4.2.0])
- XDT_CHECK_PACKAGE([LIBXFCE4PANEL], [libxfce4panel-1.0], [4.3.20])
- XDT_CHECK_PACKAGE([LIBXFCE4UTIL], [libxfce4util-1.0], [4.3.0])
- 
---- xfce4-timer-plugin-0.6.1/src/xfcetimer.c~	2008-11-20 21:45:21.000000000 +0100
-+++ xfce4-timer-plugin-0.6.1/src/xfcetimer.c	2011-07-06 11:08:57.264517246 +0200
-@@ -36,9 +36,8 @@
- #include <gtk/gtk.h>
- 
- #include <libxfce4util/libxfce4util.h>
--#include <libxfcegui4/xfce_iconbutton.h>
--#include <libxfce4panel/xfce-panel-plugin.h>
--#include <libxfcegui4/dialogs.h>
-+#include <libxfce4ui/libxfce4ui.h>
-+#include <libxfce4panel/libxfce4panel.h>
- 
- #include "xfcetimer.h"
- 
---- xfce4-timer-plugin-0.6.1/src/Makefile.am~	2008-11-20 21:45:21.000000000 +0100
-+++ xfce4-timer-plugin-0.6.1/src/Makefile.am	2011-07-06 11:13:21.227027425 +0200
-@@ -18,11 +18,11 @@
- xfce4_timer_LDFLAGS =						\
- 	@LIBXFCE4PANEL_LIBS@ \
- 	@LIBXFCE4UTIL_LIBS@ \
--	@LIBXFCEGUI4_LIBS@
-+	@LIBXFCE4UI_LIBS@
- 		
- xfce4_timer_CFLAGS =						\
- 	-I$(top_srcdir) \
--	@LIBXFCEGUI4_CFLAGS@ \
-+	@LIBXFCE4UI_CFLAGS@ \
- 	@LIBXFCE4UTIL_CFLAGS@ \
- 	@LIBXFCE4PANEL_CFLAGS@ \
- 	-DPACKAGE_LOCALE_DIR=\"$(localedir)\"
---- xfce4-timer-plugin-0.6.4/src/xfcetimer.c.orig	2012-05-17 23:27:50.106931152 +0200
-+++ xfce4-timer-plugin-0.6.4/src/xfcetimer.c	2012-05-17 23:32:20.133588295 +0200
-@@ -1395,7 +1395,7 @@
- 
-   xfce_panel_plugin_block_menu (plugin);
- 
--  dlg = gtk_dialog_new_with_buttons (_("Xfce 4 Timer Plugin"),
-+  dlg = xfce_titled_dialog_new_with_buttons (_("Xfce 4 Timer Plugin"),
-               GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (plugin))),
-               GTK_DIALOG_DESTROY_WITH_PARENT |
-               GTK_DIALOG_NO_SEPARATOR,
-@@ -1407,12 +1407,7 @@
- 
-   gtk_container_set_border_width (GTK_CONTAINER(dlg), BORDER);
- 
--  header = xfce_create_header (NULL, _("Xfce4 Timer Options"));
--  gtk_widget_set_size_request (GTK_BIN (header)->child, 200, 32);
--  //gtk_container_set_border_width (GTK_CONTAINER (header), 6);
--  gtk_widget_show (header);
--  gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dlg)->vbox), header,
--                      FALSE, TRUE, 0);
-+  xfce_titled_dialog_set_subtitle (XFCE_TITLED_DIALOG(dlg), _("Xfce4 Timer Options"));
- 
-   gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dlg)->vbox), vbox,
-                       TRUE, TRUE, WIDGET_SPACING);
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/xfce4-timer-plugin.git/commitdiff/c8f377d1dde88213890045f0427ed5f744fa040e



More information about the pld-cvs-commit mailing list