rpms/wkf/F-8 wkf-1.3.11-func-declaration.patch, NONE, 1.1 wkf.spec, 1.1, 1.2

Mamoru Tasaka (mtasaka) fedora-extras-commits at redhat.com
Thu Apr 3 14:55:54 UTC 2008


Author: mtasaka

Update of /cvs/extras/rpms/wkf/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv1814/F-8

Modified Files:
	wkf.spec 
Added Files:
	wkf-1.3.11-func-declaration.patch 
Log Message:
* Thu Apr  3 2008 Mamoru Tasaka <mtasaka at ioa.s.u-tokyo.ac.jp> - 1.3.11-2
- Fix implicit function declaration


wkf-1.3.11-func-declaration.patch:

--- NEW FILE wkf-1.3.11-func-declaration.patch ---
--- wkf-1.3.11/functions.h.debug	2005-04-05 17:26:56.000000000 +0900
+++ wkf-1.3.11/functions.h	2008-04-03 23:43:07.000000000 +0900
@@ -56,4 +56,7 @@
 extern void	setOutputStringBuffer(String, unsigned int);
 extern conv_t	convertKanjiCode(kcode_t, kcode_t);
 
+/* strlcpy.c */
+extern size_t   strlcpy(char *dst, const char *src, size_t siz);
+
 #endif	/* _FUNCTIONS_H */
--- wkf-1.3.11/wkf.c.debug	2007-07-06 01:35:21.000000000 +0900
+++ wkf-1.3.11/wkf.c	2008-04-03 23:47:06.000000000 +0900
@@ -44,6 +44,9 @@
 #include "config.h"
 #endif	/* HAVE_CONFIG_H */
 
+/* For asprintf */
+#define _GNU_SOURCE
+
 #include <stdio.h>
 #include <stdlib.h>
 #ifndef _WIN32


Index: wkf.spec
===================================================================
RCS file: /cvs/extras/rpms/wkf/F-8/wkf.spec,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- wkf.spec	7 Dec 2007 18:31:39 -0000	1.1
+++ wkf.spec	3 Apr 2008 14:55:16 -0000	1.2
@@ -1,12 +1,13 @@
 Name:		wkf
 Version:	1.3.11
-Release:	1%{?dist}
+Release:	2%{?dist}
 Summary:	Japanese Kanji code converting filter
 
 Group:		System Environment/Libraries
 License:	BSD
 URL:		http://www.mysticwall.com/software/wkf/
 Source0:	http://www.mysticwall.com/download/%{name}-%{version}.tar.bz2
+Patch0:		wkf-1.3.11-func-declaration.patch
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:	groff
@@ -37,6 +38,7 @@
 
 %prep
 %setup -q
+%patch0 -p1 -b .func_declare
 
 for f in \
 	API \
@@ -53,7 +55,7 @@
 %build
 %configure --disable-static
 %{__make} %{?_smp_mflags} \
-	CC="%{__cc} %{optflags}"
+	CC="%{__cc} %{optflags} -Werror-implicit-function-declaration"
 
 
 %install
@@ -103,6 +105,12 @@
 
 
 %changelog
+* Thu Apr  3 2008 Mamoru Tasaka <mtasaka at ioa.s.u-tokyo.ac.jp> - 1.3.11-2
+- Fix implicit function declaration
+
+* Sat Feb  9 2008 Mamoru Tasaka <mtasaka at ioa.s.u-tokyo.ac.jp>
+- Rebuild against gcc43 (F-9)
+
 * Wed Dec  5 2007 Mamoru Tasaka <mtasaka at ioa.s.u-tokyo.ac.jp> - 1.3.11-1
 - Initial packaging
 




More information about the fedora-extras-commits mailing list