[ebview] Support -Werror=format-security

Mamoru TASAKA mtasaka at fedoraproject.org
Tue Dec 3 09:08:08 UTC 2013


commit 209a5d28152cd9f7e23385dab7ef1cef2bf4c769
Author: Mamoru TASAKA <mtasaka at fedoraproject.org>
Date:   Tue Dec 3 18:08:00 2013 +0900

    Support -Werror=format-security

 ebview-0.3.6.2-format-security.patch |   18 ++++++++++++++++++
 ebview.spec                          |   10 ++++++++--
 2 files changed, 26 insertions(+), 2 deletions(-)
---
diff --git a/ebview-0.3.6.2-format-security.patch b/ebview-0.3.6.2-format-security.patch
new file mode 100644
index 0000000..3d2180d
--- /dev/null
+++ b/ebview-0.3.6.2-format-security.patch
@@ -0,0 +1,18 @@
+--- ebview-0.3.6.2/src/dialog.c.format	2004-02-19 11:42:45.000000000 +0900
++++ ebview-0.3.6.2/src/dialog.c	2013-12-03 18:05:30.990811872 +0900
+@@ -69,6 +69,7 @@
+ 					GTK_DIALOG_DESTROY_WITH_PARENT /* | GTK_DIALOG_NO_SEPARATOR */,
+ 					GTK_MESSAGE_WARNING,
+ 					GTK_BUTTONS_OK,
++					"%s",
+ 					g_message);
+ 	gtk_dialog_run(GTK_DIALOG(dialog));
+ 	gtk_widget_destroy(dialog);
+@@ -98,6 +99,7 @@
+ 					GTK_DIALOG_DESTROY_WITH_PARENT /* | GTK_DIALOG_NO_SEPARATOR */,
+ 					GTK_MESSAGE_ERROR,
+ 					GTK_BUTTONS_CLOSE,
++					"%s",
+ 					g_message);
+ 					
+ 	gtk_dialog_run(GTK_DIALOG(dialog));
diff --git a/ebview.spec b/ebview.spec
index f556917..9b3ce78 100644
--- a/ebview.spec
+++ b/ebview.spec
@@ -1,6 +1,6 @@
 Name:		ebview
 Version:	0.3.6.2
-Release:	11%{?dist}
+Release:	12%{?dist}
 Summary:	EPWING CD-ROM dictionary viewer
 
 Group:		Applications/Text      
@@ -12,6 +12,8 @@ Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
 URL:		http://packages.qa.debian.org/e/ebview.html
 Source0:	http://ftp.de.debian.org/debian/pool/main/e/ebview/ebview_%{version}.orig.tar.gz
 %endif
+# Support -Werror=format-security
+Patch0:	ebview-0.3.6.2-format-security.patch
 Source1:	%{name}.desktop
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
@@ -30,6 +32,7 @@ EBView is a EPWING dictionary browser.
 
 %prep
 %setup -q
+%patch0 -p1 -b .format
 
 # Fix up permission
 find . -type f -exec %{__chmod} 0644 {} ';'
@@ -65,7 +68,7 @@ iconv -f ISO-8859-1 -t UTF-8 doc/en/index.html > doc/en/index.html.tmp && \
 %build
 %configure \
 	--with-eb-conf=%{_libdir}/eb.conf
-%{__make} %{?_smp_mflags}
+%{__make} %{?_smp_mflags} -k
 
 
 %install
@@ -108,6 +111,9 @@ desktop-file-install \
 %{_datadir}/pixmaps/%{name}.xpm
 
 %changelog
+* Tue Dec  3 2013 Mamoru TASAKA <mtasaka at fedoraproject.org> - 0.3.6.2-12
+- Support -Werror=format-security
+
 * Tue Sep  3 2013 Mamoru TASAKA <mtasaka at fedoraproject.org> - 0.3.6.2-11
 - Rebuild against new eb
 


More information about the scm-commits mailing list