[packages/vde2] - added format patch to fix build with -Werror=format-security - make -j1 (there is race between bui

qboosh qboosh at pld-linux.org
Fri Oct 26 23:58:54 CEST 2012


commit ebb249ef28c3f49fabe31ef1a79bd3fdb6a4bea3
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Oct 26 23:59:31 2012 +0200

    - added format patch to fix build with -Werror=format-security
    - make -j1 (there is race between building libvdesnmp and libvdemgmt)

 vde2-format.patch | 18 ++++++++++++++++++
 vde2.spec         |  4 +++-
 2 files changed, 21 insertions(+), 1 deletion(-)
---
diff --git a/vde2.spec b/vde2.spec
index eafda40..79690f2 100644
--- a/vde2.spec
+++ b/vde2.spec
@@ -8,6 +8,7 @@ Group:		Networking/Utilities
 Source0:	http://downloads.sourceforge.net/vde/%{name}-%{version}.tar.bz2
 # Source0-md5:	46fbc5f97f03dc517aa3b2c9d9ea6628
 Patch0:		%{name}-pathmax.patch
+Patch1:		%{name}-format.patch
 URL:		http://sourceforge.net/projects/vde/
 BuildRequires:	autoconf >= 2.59
 BuildRequires:	automake
@@ -85,6 +86,7 @@ Pythonowy interfejs do VDE2.
 %prep
 %setup -q 
 %patch0 -p1
+%patch1 -p1
 
 %build
 %{__libtoolize}
@@ -96,7 +98,7 @@ Pythonowy interfejs do VDE2.
 	--disable-silent-rules \
 	--enable-kernel-switch
 
-%{__make} \
+%{__make} -j1 \
 	pythondir=%{py_sitedir}
 
 %install
diff --git a/vde2-format.patch b/vde2-format.patch
new file mode 100644
index 0000000..5603468
--- /dev/null
+++ b/vde2-format.patch
@@ -0,0 +1,18 @@
+--- vde2-2.3.2/src/common/cmdparse.c.orig	2011-11-23 17:41:14.000000000 +0100
++++ vde2-2.3.2/src/common/cmdparse.c	2012-10-26 23:25:47.215786024 +0200
+@@ -284,13 +284,13 @@
+ 								int i;
+ 								for (i=0;i<argc;i++) {
+ 									if (i) fprintf(mf," ");
+-									fprintf(mf,argv[i]);
++									fprintf(mf,"%s",argv[i]);
+ 								}
+ 							} else {
+ 								int num=atoi(t);
+ 								while (*t >='0' && *t <= '9') t++;
+ 								if (num < argc) 
+-									fprintf(mf,argv[num]);
++									fprintf(mf,"%s",argv[num]);
+ 							}
+ 						} else
+ 							fprintf(mf,"%c",*t);
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/vde2.git/commitdiff/ebb249ef28c3f49fabe31ef1a79bd3fdb6a4bea3



More information about the pld-cvs-commit mailing list