[packages/SaWMan] - added format patch (workarounds to build with -Werror=format-security)

qboosh qboosh at pld-linux.org
Sat Oct 6 19:28:18 CEST 2012


commit ef02b1d4bea7933ec584117cd88c2041213c662d
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Oct 6 19:29:46 2012 +0200

    - added format patch (workarounds to build with -Werror=format-security)

 SaWMan-format.patch | 20 ++++++++++++++++++++
 SaWMan.spec         |  2 ++
 2 files changed, 22 insertions(+)
---
diff --git a/SaWMan.spec b/SaWMan.spec
index 8da2467..2a9a2b5 100644
--- a/SaWMan.spec
+++ b/SaWMan.spec
@@ -7,6 +7,7 @@ License:	LGPL v2+
 Group:		Libraries
 Source0:	http://www.directfb.org/downloads/Extras/%{name}-%{version}.tar.gz
 # Source0-md5:	aeb87cd87a4241f9d4d55a6a363c4b4a
+Patch0:		%{name}-format.patch
 URL:		http://www.directfb.org/index.php?path=Platform/SaWMan
 BuildRequires:	DirectFB-devel >= 1:1.6.0
 BuildRequires:	pkgconfig >= 1:0.9
@@ -54,6 +55,7 @@ Statyczna biblioteka sawman.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %configure \
diff --git a/SaWMan-format.patch b/SaWMan-format.patch
new file mode 100644
index 0000000..84aca04
--- /dev/null
+++ b/SaWMan-format.patch
@@ -0,0 +1,20 @@
+--- SaWMan-1.6.2/src/sawman_config.c.orig	2012-09-20 17:19:17.000000000 +0200
++++ SaWMan-1.6.2/src/sawman_config.c	2012-10-06 19:28:41.470170130 +0200
+@@ -85,7 +85,7 @@
+                *next++ = '\0';
+ 
+           if (strcmp (buf, "help") == 0) {
+-               fprintf( stderr, config_usage );
++               fputs( config_usage, stderr );
+                exit(1);
+           }
+ 
+@@ -515,7 +515,7 @@
+           for (i = 1; i < *argc; i++) {
+ 
+                if (!strcmp( (*argv)[i], "--sawman-help" )) {
+-                    fprintf( stderr, config_usage );
++                    fputs( config_usage, stderr );
+                     exit(1);
+                }
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/SaWMan.git/commitdiff/ef02b1d4bea7933ec584117cd88c2041213c662d



More information about the pld-cvs-commit mailing list