[packages/satyr] - added format patch (fixes build with -Werror=format-security)
qboosh
qboosh at pld-linux.org
Thu Jul 25 16:50:55 CEST 2013
commit b6a6e0d4bcddb54b870da631ea15796b19e34e02
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Thu Jul 25 16:51:14 2013 +0200
- added format patch (fixes build with -Werror=format-security)
satyr-format.patch | 11 +++++++++++
satyr.spec | 5 ++++-
2 files changed, 15 insertions(+), 1 deletion(-)
---
diff --git a/satyr.spec b/satyr.spec
index 32e759e..0e93668 100644
--- a/satyr.spec
+++ b/satyr.spec
@@ -10,6 +10,7 @@ Source0: https://fedorahosted.org/released/abrt/%{name}-%{version}.tar.xz
Patch0: %{name}-libopcodes.patch
Patch1: %{name}-rpm5.patch
Patch2: %{name}-rpm45.patch
+Patch3: %{name}-format.patch
URL: http://fedorahosted.org/abrt/
BuildRequires: autoconf >= 2.50
BuildRequires: automake
@@ -92,6 +93,7 @@ Wiązania Pythona do biblioteki Satyr.
%else
%patch2 -p1
%endif
+%patch3 -p1
%build
%{__libtoolize}
@@ -99,7 +101,8 @@ Wiązania Pythona do biblioteki Satyr.
%{__autoconf}
%{__autoheader}
%{__automake}
-%configure
+%configure \
+ --disable-silent-rules
%{__make}
diff --git a/satyr-format.patch b/satyr-format.patch
new file mode 100644
index 0000000..2161694
--- /dev/null
+++ b/satyr-format.patch
@@ -0,0 +1,11 @@
+--- satyr-0.5/lib/report.c.orig 2013-06-17 11:10:07.000000000 +0200
++++ satyr-0.5/lib/report.c 2013-07-25 16:49:04.553138969 +0200
+@@ -149,7 +149,7 @@
+ {
+ char *stacktrace = sr_java_stacktrace_to_json(report->java_stacktrace);
+ dismantle_object(stacktrace);
+- sr_strbuf_append_strf(strbuf, stacktrace);
++ sr_strbuf_append_strf(strbuf, "%s", stacktrace);
+ free(stacktrace);
+ }
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/satyr.git/commitdiff/b6a6e0d4bcddb54b870da631ea15796b19e34e02
More information about the pld-cvs-commit
mailing list