From ef02b1d4bea7933ec584117cd88c2041213c662d Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Sat, 6 Oct 2012 19:29:46 +0200 Subject: [PATCH] - added format patch (workarounds to build with -Werror=format-security) --- SaWMan-format.patch | 20 ++++++++++++++++++++ SaWMan.spec | 2 ++ 2 files changed, 22 insertions(+) create mode 100644 SaWMan-format.patch 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); + } + 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 \ -- 2.44.0