]> git.pld-linux.org Git - packages/wxWidgets.git/commitdiff
- added format patch to allow build with -Werror=format-security
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 30 Sep 2012 06:04:17 +0000 (08:04 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 30 Sep 2012 06:04:17 +0000 (08:04 +0200)
wxWidgets-format.patch [new file with mode: 0644]
wxWidgets.spec

diff --git a/wxWidgets-format.patch b/wxWidgets-format.patch
new file mode 100644 (file)
index 0000000..d08662c
--- /dev/null
@@ -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;
index 2afed7ad3eee5fa6d9cdca386453fe5aa2affa37..aa844f304584816f2ec77ec39f50214a2970adb0 100644 (file)
@@ -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
 
This page took 0.270767 seconds and 4 git commands to generate.