rpms/powerman/devel powerman-1.0.32-header-includes.patch, NONE, 1.1 powerman.spec, 1.9, 1.10

Jarod Wilson (jwilson) fedora-extras-commits at redhat.com
Wed Feb 13 18:37:27 UTC 2008


Author: jwilson

Update of /cvs/pkgs/rpms/powerman/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv26767

Modified Files:
	powerman.spec 
Added Files:
	powerman-1.0.32-header-includes.patch 
Log Message:
Fix build w/gcc 4.3

powerman-1.0.32-header-includes.patch:

--- NEW FILE powerman-1.0.32-header-includes.patch ---
diff -Naurp powerman-1.0.32.orig/src/client.c powerman-1.0.32/src/client.c
--- powerman-1.0.32.orig/src/client.c	2006-04-26 20:17:33.000000000 -0400
+++ powerman-1.0.32/src/client.c	2008-02-13 13:25:56.000000000 -0500
@@ -31,6 +31,7 @@
 #include <syslog.h>
 #include <stdarg.h>
 #include <stdlib.h>
+#include <limits.h>
 
 #include <arpa/inet.h>
 #include <tcpd.h>
diff -Naurp powerman-1.0.32.orig/src/parse.y powerman-1.0.32/src/parse.y
--- powerman-1.0.32.orig/src/parse.y	2006-11-14 16:29:53.000000000 -0500
+++ powerman-1.0.32/src/parse.y	2008-02-13 13:29:37.000000000 -0500
@@ -37,6 +37,7 @@
 #include <stdio.h>
 #include <ctype.h>
 #include <unistd.h>
+#include <limits.h>
 
 #include "powerman.h"
 #include "list.h"
diff -Naurp powerman-1.0.32.orig/src/powerman.c powerman-1.0.32/src/powerman.c
--- powerman-1.0.32.orig/src/powerman.c	2004-02-20 11:51:06.000000000 -0500
+++ powerman-1.0.32/src/powerman.c	2008-02-13 13:28:36.000000000 -0500
@@ -34,6 +34,7 @@
 #include <stdlib.h>
 #include <assert.h>
 #include <libgen.h>
+#include <limits.h>
 
 #include "powerman.h"
 #include "wrappers.h"
diff -Naurp powerman-1.0.32.orig/src/powermand.c powerman-1.0.32/src/powermand.c
--- powerman-1.0.32.orig/src/powermand.c	2004-02-20 11:51:06.000000000 -0500
+++ powerman-1.0.32/src/powermand.c	2008-02-13 13:28:47.000000000 -0500
@@ -35,6 +35,7 @@
 #include <stdlib.h>
 #include <stdio.h>
 #include <assert.h>
+#include <limits.h>
 
 #include "powerman.h"
 #include "list.h"
diff -Naurp powerman-1.0.32.orig/src/wrappers.c powerman-1.0.32/src/wrappers.c
--- powerman-1.0.32.orig/src/wrappers.c	2005-03-09 06:11:46.000000000 -0500
+++ powerman-1.0.32/src/wrappers.c	2008-02-13 13:26:48.000000000 -0500
@@ -38,6 +38,9 @@
 #include <stdlib.h>
 #include <sys/socket.h>
 #include <stdio.h>
+#include <limits.h>
+#define __USE_GNU       /* needed for regex.h */
+#include <regex.h>
 #include <sys/types.h>
 #include <sys/wait.h>
 #if HAVE_POLL


Index: powerman.spec
===================================================================
RCS file: /cvs/pkgs/rpms/powerman/devel/powerman.spec,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- powerman.spec	31 Jan 2008 20:50:37 -0000	1.9
+++ powerman.spec	13 Feb 2008 18:36:53 -0000	1.10
@@ -1,6 +1,6 @@
 Name: powerman
 Version: 1.0.32
-Release: 4%{?dist}
+Release: 5%{?dist}
 Summary: PowerMan - Power to the Cluster 
 
 Group: Applications/System
@@ -8,6 +8,7 @@
 Url: http://sourceforge.net/projects/powerman
 Source0: http://dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.bz2
 Patch1: powerman-1.0.25-optflags.patch
+Patch2: powerman-1.0.32-header-includes.patch
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires: flex bison readline-devel
@@ -34,6 +35,7 @@
 %setup -q
 # Honor $RPM_OPT_FLAGS
 %patch1 -p1 -b .optflags
+%patch2 -p1 -b .headers
 %if "%{?fedora}" >= "9"
 sed -i -e 's/termcap/ncurses/g' src/Makefile
 %endif
@@ -89,6 +91,9 @@
 %{_initrddir}/%{name}
 
 %changelog
+* Wed Feb 13 2008 Jarod Wilson <jwilson at redhat.com> 1.0.32-5
+- Fix up header includes to build w/gcc 4.3
+
 * Thu Jan 31 2008 Jarod Wilson <jwilson at redhat.com> 1.0.32-4
 - And now make it build with ncurses instead of termcap in f9+
 




More information about the fedora-extras-commits mailing list