[packages/wxWidgets] - added format patch to allow build with -Werror=format-security

qboosh qboosh at pld-linux.org
Sun Sep 30 08:03:02 CEST 2012


commit c885e705898859d2b35ceae281a5b989ae3b2b3a
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Sep 30 08:04:17 2012 +0200

    - added format patch to allow build with -Werror=format-security

 wxWidgets-format.patch | 11 +++++++++++
 wxWidgets.spec         |  2 ++
 2 files changed, 13 insertions(+)
---
diff --git a/wxWidgets.spec b/wxWidgets.spec
index 2afed7a..aa844f3 100644
--- a/wxWidgets.spec
+++ b/wxWidgets.spec
@@ -23,6 +23,7 @@ Patch3:		%{name}-x11unicode.patch
 Patch4:		%{name}-gcc4.patch
 Patch5:		wxGTK-2.8.10.1-odbc-defines.patch
 Patch6:		%{name}-cairo.patch
+Patch7:		%{name}-format.patch
 URL:		http://www.wxWidgets.org/
 BuildRequires:	OpenGL-GLU-devel
 #BuildRequires:	SDL-devel
@@ -476,6 +477,7 @@ obsługą UNICODE.
 %patch4 -p1
 %patch5 -p1
 %patch6 -p1
+%patch7 -p1
 
 %{__rm} build/aclocal/bakefile*.m4
 
diff --git a/wxWidgets-format.patch b/wxWidgets-format.patch
new file mode 100644
index 0000000..d08662c
--- /dev/null
+++ b/wxWidgets-format.patch
@@ -0,0 +1,11 @@
+--- wxWidgets-2.8.12/src/common/appbase.cpp.orig	2011-03-22 12:59:40.000000000 +0100
++++ wxWidgets-2.8.12/src/common/appbase.cpp	2012-09-30 08:02:00.981833952 +0200
+@@ -424,7 +424,7 @@
+         msg.Printf(_T("Mismatch between the program and library build versions detected.\nThe library used %s,\nand %s used %s."),
+                    lib.c_str(), progName.c_str(), prog.c_str());
+ 
+-        wxLogFatalError(msg.c_str());
++        wxLogFatalError("%s", msg.c_str());
+ 
+         // normally wxLogFatalError doesn't return
+         return false;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/wxWidgets.git/commitdiff/c885e705898859d2b35ceae281a5b989ae3b2b3a



More information about the pld-cvs-commit mailing list