[packages/libgnomesu] - added format patch (fixes build with -Werror=format-security) - rename sr at Latn locale to sr at latin

qboosh qboosh at pld-linux.org
Sun Jan 6 11:25:51 CET 2013


commit 1df270c6e40f5578bc78e607520ec85d8db63fc4
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Jan 6 11:25:52 2013 +0100

    - added format patch (fixes build with -Werror=format-security)
    - rename sr at Latn locale to sr at latin
    - release 5

 libgnomesu-format.patch | 22 ++++++++++++++++++++++
 libgnomesu.spec         |  6 +++++-
 2 files changed, 27 insertions(+), 1 deletion(-)
---
diff --git a/libgnomesu.spec b/libgnomesu.spec
index 3402b0b..550d5d5 100644
--- a/libgnomesu.spec
+++ b/libgnomesu.spec
@@ -2,7 +2,7 @@ Summary:	Library for providing superuser privileges
 Summary(pl.UTF-8):	Biblioteka do udostępniania uprawnień superużytkownika
 Name:		libgnomesu
 Version:	1.0.0
-Release:	4
+Release:	5
 License:	LGPL v2+
 Group:		X11/Applications
 Source0:	http://members.chello.nl/~h.lai/libgnomesu/%{name}-%{version}.tar.gz
@@ -18,6 +18,7 @@ Patch7:		%{name}-safe-path.patch
 Patch8:		%{name}-remove-prior-cookie.patch
 Patch9:		%{name}-i18n.patch
 Patch10:	%{name}-memory-cleaning.patch
+Patch11:	%{name}-format.patch
 URL:		http://members.chello.nl/~h.lai/libgnomesu/
 BuildRequires:	GConf2-devel >= 2.0
 BuildRequires:	gettext-devel
@@ -91,6 +92,7 @@ Statyczna wersja bibliotek libgnomesu.
 %patch8 -p1
 %patch9 -p1
 %patch10 -p1
+%patch11 -p1
 
 %build
 %configure \
@@ -108,6 +110,8 @@ rm -rf $RPM_BUILD_ROOT
 
 chmod 755 $RPM_BUILD_ROOT%{_libdir}/gnomesu*backend
 
+%{__mv} $RPM_BUILD_ROOT%{_datadir}/locale/{sr at Latn,sr at latin}
+
 %find_lang %{name}-1.0
 
 %clean
diff --git a/libgnomesu-format.patch b/libgnomesu-format.patch
new file mode 100644
index 0000000..ecf925c
--- /dev/null
+++ b/libgnomesu-format.patch
@@ -0,0 +1,22 @@
+--- libgnomesu-1.0.0/src/services/pam.c.orig	2013-01-06 11:13:40.873468264 +0100
++++ libgnomesu-1.0.0/src/services/pam.c	2013-01-06 11:16:44.691946641 +0100
+@@ -64,7 +64,7 @@
+ 	dialog = gtk_message_dialog_new ((GtkWindow *) auth,
+ 		GTK_DIALOG_MODAL,
+ 		GTK_MESSAGE_ERROR, GTK_BUTTONS_OK,
+-		msg);
++		"%s", msg);
+ 	gtk_window_set_resizable (GTK_WINDOW (dialog), FALSE);
+ 	gtk_dialog_run (GTK_DIALOG (dialog));
+ 	gtk_widget_destroy (dialog);
+--- libgnomesu-1.0.0/src/services/su.c.orig	2013-01-06 11:17:54.831848415 +0100
++++ libgnomesu-1.0.0/src/services/su.c	2013-01-06 11:23:24.780400174 +0100
+@@ -60,7 +60,7 @@
+ 	dialog = gtk_message_dialog_new ((GtkWindow *) auth,
+ 		GTK_DIALOG_MODAL,
+ 		GTK_MESSAGE_ERROR, GTK_BUTTONS_OK,
+-		msg);
++		"%s", msg);
+ 	gtk_window_set_resizable (GTK_WINDOW (dialog), FALSE);
+ 	gtk_dialog_run (GTK_DIALOG (dialog));
+ 	gtk_widget_destroy (dialog);
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libgnomesu.git/commitdiff/1df270c6e40f5578bc78e607520ec85d8db63fc4



More information about the pld-cvs-commit mailing list