[packages/dapl] - added format patch (fixes build with -Werror=format-security)

qboosh qboosh at pld-linux.org
Fri Aug 23 22:12:17 CEST 2013


commit cb68a8c44f1892b545647af2462ed14dca551d96
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Aug 23 22:11:38 2013 +0200

    - added format patch (fixes build with -Werror=format-security)

 dapl-format.patch | 11 +++++++++++
 dapl.spec         |  2 ++
 2 files changed, 13 insertions(+)
---
diff --git a/dapl.spec b/dapl.spec
index 1a7589f..779e4d7 100644
--- a/dapl.spec
+++ b/dapl.spec
@@ -9,6 +9,7 @@ Source0:	http://www.openfabrics.org/downloads/dapl/%{name}-%{version}.tar.gz
 # Source0-md5:	21b933fb24ed86d5c5413d9a269f913d
 Patch0:		%{name}-link.patch
 Patch1:		%{name}-include.patch
+Patch2:		%{name}-format.patch
 URL:		http://www.openfabrics.org/
 BuildRequires:	autoconf >= 2.57
 BuildRequires:	automake
@@ -59,6 +60,7 @@ Ten pakiet zawiera statyczną bibliotekę libdat2.
 %setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
 %{__libtoolize}
diff --git a/dapl-format.patch b/dapl-format.patch
new file mode 100644
index 0000000..d64dcdd
--- /dev/null
+++ b/dapl-format.patch
@@ -0,0 +1,11 @@
+--- dapl-2.0.38/test/dapltest/udapl/udapl_tdep.c.orig	2013-06-07 02:42:48.000000000 +0200
++++ dapl-2.0.38/test/dapltest/udapl/udapl_tdep.c	2013-08-23 22:07:43.793287069 +0200
+@@ -103,7 +103,7 @@
+ 	vsprintf(buffer, fmt, args);
+ 	va_end(args);
+ 
+-	printf(buffer);
++	fputs(buffer, stdout);
+ }
+ 
+ DAT_RETURN DT_Tdep_evd_dequeue(DAT_EVD_HANDLE evd_handle, DAT_EVENT * event)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/dapl.git/commitdiff/cb68a8c44f1892b545647af2462ed14dca551d96



More information about the pld-cvs-commit mailing list