- Fix GCC 4.3 rebuild problems

This commit is contained in:
Phil Knirsch 2008-02-21 11:38:09 +00:00
parent ab4ebb32ba
commit 274b6bea7d
2 changed files with 21 additions and 3 deletions

View File

@ -0,0 +1,13 @@
diff -up freeipmi-0.5.1/ipmipower/src/wrappers.c.regex freeipmi-0.5.1/ipmipower/src/wrappers.c
--- freeipmi-0.5.1/ipmipower/src/wrappers.c.regex 2008-02-21 12:28:52.000000000 +0100
+++ freeipmi-0.5.1/ipmipower/src/wrappers.c 2008-02-21 12:29:33.000000000 +0100
@@ -75,6 +75,9 @@
#include <sys/poll.h>
#include <limits.h>
+#include <sys/types.h>
+#include <regex.h>
+
#include "wrappers.h"
#include "cbuf.h"
#include "error.h"

View File

@ -5,9 +5,9 @@
%define name freeipmi %define name freeipmi
%define version 0.5.1 %define version 0.5.1
%if %{?_with_debug:1}%{!?_with_debug:0} %if %{?_with_debug:1}%{!?_with_debug:0}
%define release 2.debug%{?dist} %define release 3.debug%{?dist}
%else %else
%define release 2%{?dist} %define release 3%{?dist}
%endif %endif
Name: %{name} Name: %{name}
@ -17,6 +17,7 @@ License: GPLv2+
Group: Applications/System Group: Applications/System
URL: http://www.gnu.org/software/freeipmi/ URL: http://www.gnu.org/software/freeipmi/
Source: ftp://ftp.zresearch.com/pub/freeipmi/%{version}/%{name}-%{version}.tar.gz Source: ftp://ftp.zresearch.com/pub/freeipmi/%{version}/%{name}-%{version}.tar.gz
Patch1: freeipmi-0.5.1-regex.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libgcrypt-devel texinfo BuildRequires: libgcrypt-devel texinfo
Requires(post): info Requires(post): info
@ -35,7 +36,7 @@ Group: Development/System
Requires: freeipmi = %{version}-%{release} Requires: freeipmi = %{version}-%{release}
%description devel %description devel
Development package for FreeIPMI. This package includes the FreeIPMI Development package for FreeIPMI. This package includes the FreeIPMI
header files and static libraries. header files and libraries.
%package bmc-watchdog %package bmc-watchdog
Summary: FreeIPMI BMC watchdog Summary: FreeIPMI BMC watchdog
@ -62,6 +63,7 @@ Provides a tool and a daemon for IPMI node detection.
%prep %prep
%setup -q %setup -q
%patch1 -p1 -b .regex
%build %build
%configure --program-prefix=%{?_program_prefix:%{_program_prefix}} \ %configure --program-prefix=%{?_program_prefix:%{_program_prefix}} \
@ -284,6 +286,9 @@ fi
%{_mandir}/man8/ipmidetectd.8* %{_mandir}/man8/ipmidetectd.8*
%changelog %changelog
* Thu Feb 21 2008 Phil Knirsch <pknirsch@redhat.com> - 0.5.1-3
- Fix GCC 4.3 rebuild problems
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.5.1-2 * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.5.1-2
- Autorebuild for GCC 4.3 - Autorebuild for GCC 4.3