[packages/FreeWnn] - added format patch (allow build with -Werror=format-security) - use make -j1 (parallel build broke

qboosh qboosh at pld-linux.org
Sat Nov 17 17:02:21 CET 2012


commit d1311dcf79260d32de017307ec9e9af13d8f2bda
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Nov 17 17:02:20 2012 +0100

    - added format patch (allow build with -Werror=format-security)
    - use make -j1 (parallel build broken on dicts)

 FreeWnn-format.patch | 26 ++++++++++++++++++++++++++
 FreeWnn.spec         |  5 +++--
 2 files changed, 29 insertions(+), 2 deletions(-)
---
diff --git a/FreeWnn.spec b/FreeWnn.spec
index 2230224..f7bf083 100644
--- a/FreeWnn.spec
+++ b/FreeWnn.spec
@@ -24,6 +24,7 @@ Patch6:		%{name}-libtool.patch
 Patch7:		%{name}-cpp.patch
 Patch8:		%{name}-install.patch
 Patch9:		%{name}-link.patch
+Patch10:	%{name}-format.patch
 URL:		http://www.freewnn.org/
 BuildRequires:	autoconf
 BuildRequires:	automake
@@ -259,6 +260,7 @@ Ten pakiet zawiera statyczną wersję biblioteki kWnn.
 %patch7 -p1
 %patch8 -p1
 %patch9 -p1
+%patch10 -p1
 
 cp -p Wnn-consortium/dic/README README.Wnn-consortium.dic
 
@@ -269,8 +271,7 @@ cp -p Wnn-consortium/dic/README README.Wnn-consortium.dic
 CFLAGS="%{rpmcflags} -I/usr/include/ncurses"
 %configure
 
-%{__make}
-#	CDEBUGFLAGS="%{rpmcflags} -I/usr/include/ncurses"
+%{__make} -j1
 
 %install
 rm -rf $RPM_BUILD_ROOT
diff --git a/FreeWnn-format.patch b/FreeWnn-format.patch
new file mode 100644
index 0000000..ad5fa9a
--- /dev/null
+++ b/FreeWnn-format.patch
@@ -0,0 +1,26 @@
+--- FreeWnn-1.1.1-a021/Wnn/jutil/wddel.c.orig	2002-05-13 00:51:17.000000000 +0200
++++ FreeWnn-1.1.1-a021/Wnn/jutil/wddel.c	2012-11-17 16:52:08.354757471 +0100
+@@ -95,8 +95,8 @@ usage ()
+ static void
+ err ()
+ {
+-  printf ((char *) wnn_perror ());
+-  printf ("\n bye.\n");
++  puts ((char *) wnn_perror ());
++  printf (" bye.\n");
+   exit (1);
+ }
+ 
+--- FreeWnn-1.1.1-a021/Wnn/jutil/wdreg.c.orig	2002-05-13 00:51:17.000000000 +0200
++++ FreeWnn-1.1.1-a021/Wnn/jutil/wdreg.c	2012-11-17 16:52:18.701902804 +0100
+@@ -95,8 +95,8 @@ usage ()
+ static void
+ err ()
+ {
+-  printf ((char *) wnn_perror ());
+-  printf ("\n bye.\n");
++  puts ((char *) wnn_perror ());
++  printf (" bye.\n");
+   exit (1);
+ }
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/FreeWnn.git/commitdiff/d1311dcf79260d32de017307ec9e9af13d8f2bda



More information about the pld-cvs-commit mailing list