rpms/manedit/devel manedit-0.8.1-function-declration.patch, NONE, 1.1 manedit.spec, 1.20, 1.21

Mamoru Tasaka (mtasaka) fedora-extras-commits at redhat.com
Thu Apr 3 15:52:41 UTC 2008


Author: mtasaka

Update of /cvs/extras/rpms/manedit/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv10259/devel

Modified Files:
	manedit.spec 
Added Files:
	manedit-0.8.1-function-declration.patch 
Log Message:
* Fri Apr  4 2008 Mamoru Tasaka <mtasaka at ioa.s.u-tokyo.ac.jp> - 0.8.1-3
- Fix implicit function declaration


manedit-0.8.1-function-declration.patch:

--- NEW FILE manedit-0.8.1-function-declration.patch ---
--- manedit-0.8.1/include/string.h.debug	2007-02-10 04:24:50.000000000 -0700
+++ manedit-0.8.1/include/string.h	2008-04-03 09:19:09.000000000 -0600
@@ -11,6 +11,8 @@
 #include <sys/types.h>
 #include "../include/os.h"
 
+#include <string.h>
+
 
 #ifdef __cplusplus
 extern "C" {
--- manedit-0.8.1/manedit/main.c.debug	2007-02-10 04:24:47.000000000 -0700
+++ manedit-0.8.1/manedit/main.c	2008-04-03 09:21:35.000000000 -0600
@@ -3,6 +3,9 @@
 #include <gtk/gtk.h>
 #include <gdk/gdkx.h>
 
+/* For exit(3) */
+#include <stdlib.h>
+
 #include "../include/disk.h"
 #include "../include/string.h"
 


Index: manedit.spec
===================================================================
RCS file: /cvs/extras/rpms/manedit/devel/manedit.spec,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- manedit.spec	9 Feb 2008 04:21:31 -0000	1.20
+++ manedit.spec	3 Apr 2008 15:51:54 -0000	1.21
@@ -1,6 +1,6 @@
 Name:           manedit
 Version:        0.8.1
-Release:        2%{?dist}.2
+Release:        3%{?dist}
 Summary:        UNIX Manual Page Editor
 
 Group:          Development/Tools
@@ -13,6 +13,7 @@
 Patch1:         manedit-0.8.1-allow-more_section.patch
 Patch2:         manedit-0.7.1-manbase.patch
 Patch3:		manedit-0.8.1-segv-when-press-new.patch
+Patch4:		manedit-0.8.1-function-declration.patch
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 # This is gtk+ package
@@ -39,6 +40,7 @@
 %patch1 -p1 -b .section
 %patch2 -p1 -b .manbase
 %patch3 -p1 -b .segv_pressed_new
+%patch4 -p1 -b .func_declare
 
 %build
 # I cannot understand this configure!!
@@ -46,6 +48,7 @@
 
 pushd manedit
 %{__make} %{?_smp_mflags} \
+   CC="%{__cc} -Werror-implicit-function-declaration" \
    OPTFLAGS="$RPM_OPT_FLAGS -DHAVE_GZIP -DHAVE_BZIP2" \
    LDFLAGS="-lz -lbz2"
 %{__make} manedit.1.out ; %{__mv} -f manedit.1.out manedit.1
@@ -110,8 +113,11 @@
 %{_mandir}/man1/%{name}.1*
 
 %changelog
+* Fri Apr  4 2008 Mamoru Tasaka <mtasaka at ioa.s.u-tokyo.ac.jp> - 0.8.1-3
+- Fix implicit function declaration
+
 * Sat Feb  9 2008 Mamoru Tasaka <mtasaka at ioa.s.u-tokyo.ac.jp>
-- Rebuild against gcc43
+- Rebuild against gcc43 (F-9)
 
 * Mon Dec 17 2007 Mamoru Tasaka <mtasaka at ioa.s.u-tokyo.ac.jp> - 0.8.1-2
 - Revert change from 0.7.1 to fix segv when pushed new button




More information about the fedora-extras-commits mailing list