forked from pool/ipmitool
This commit is contained in:
parent
557cede139
commit
c811467632
37
ipmitool-1.8.10-implicit-fortify-decl.patch
Normal file
37
ipmitool-1.8.10-implicit-fortify-decl.patch
Normal file
@ -0,0 +1,37 @@
|
||||
Index: lib/ipmi_sdradd.c
|
||||
===================================================================
|
||||
--- lib/ipmi_sdradd.c.orig 2007-07-11 16:27:46.000000000 +0200
|
||||
+++ lib/ipmi_sdradd.c 2008-10-14 17:51:50.000000000 +0200
|
||||
@@ -38,6 +38,7 @@
|
||||
#include <stdio.h>
|
||||
#include <time.h>
|
||||
#include <fcntl.h>
|
||||
+#include <unistd.h>
|
||||
|
||||
#include <ipmitool/helper.h>
|
||||
#include <ipmitool/log.h>
|
||||
Index: lib/ipmi_hpmfwupg.c
|
||||
===================================================================
|
||||
--- lib/ipmi_hpmfwupg.c.orig 2008-10-14 17:50:09.000000000 +0200
|
||||
+++ lib/ipmi_hpmfwupg.c 2008-10-14 18:06:44.000000000 +0200
|
||||
@@ -40,6 +40,8 @@
|
||||
#include "../src/plugins/lan/md5.h"
|
||||
#include <stdio.h>
|
||||
#include <time.h>
|
||||
+#include <ctype.h>
|
||||
+#include <unistd.h>
|
||||
|
||||
#if HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
Index: configure.in
|
||||
===================================================================
|
||||
--- configure.in.orig 2008-08-07 20:26:08.000000000 +0200
|
||||
+++ configure.in 2008-10-14 18:12:43.000000000 +0200
|
||||
@@ -25,6 +25,7 @@ AC_CHECK_HEADERS([sys/byteorder.h bytesw
|
||||
AC_C_CONST
|
||||
AC_C_INLINE
|
||||
AC_C_BIGENDIAN
|
||||
+AC_GNU_SOURCE
|
||||
|
||||
AC_FUNC_MALLOC
|
||||
AC_FUNC_SELECT_ARGTYPES
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 14 18:21:55 CEST 2008 - crrodriguez@suse.de
|
||||
|
||||
- fix implicit-fortify-decl errors
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Sep 26 13:55:29 CEST 2008 - duwe@suse.de
|
||||
|
||||
|
@ -23,11 +23,12 @@ BuildRequires: openssl-devel readline-devel
|
||||
Url: http://ipmitool.sourceforge.net/
|
||||
Summary: Utility for IPMI Control
|
||||
Version: 1.8.10
|
||||
Release: 2
|
||||
Release: 3
|
||||
License: BSD 3-Clause
|
||||
Group: System/Management
|
||||
Source: http://heanet.dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.bz2
|
||||
Patch: compile-fixes
|
||||
Patch1: ipmitool-1.8.10-implicit-fortify-decl.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
@ -49,20 +50,15 @@ and setting LAN configuration, and chassis power control.
|
||||
|
||||
|
||||
%prep
|
||||
%setup
|
||||
%setup -q
|
||||
%patch -p1
|
||||
%patch1
|
||||
|
||||
%build
|
||||
CFLAGS="$RPM_OPT_FLAGS" ./configure \
|
||||
--prefix=%{_prefix} \
|
||||
--bindir=%{_bindir} \
|
||||
--sbindir=%{_sbindir} \
|
||||
--datadir=%{_datadir} \
|
||||
--includedir=%{_includedir} \
|
||||
--libdir=%{_libdir} \
|
||||
--mandir=%{_mandir} \
|
||||
--sysconfdir=%{_sysconfdir}
|
||||
make
|
||||
touch INSTALL NEWS
|
||||
autoreconf -fiv
|
||||
%configure --with-pic
|
||||
%{__make} %{?jobs:-j%jobs}
|
||||
|
||||
%install
|
||||
make DESTDIR=$RPM_BUILD_ROOT install
|
||||
@ -82,6 +78,8 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%doc %{_mandir}/man8/*
|
||||
|
||||
%changelog
|
||||
* Tue Oct 14 2008 crrodriguez@suse.de
|
||||
- fix implicit-fortify-decl errors
|
||||
* Fri Sep 26 2008 duwe@suse.de
|
||||
- fix ugly code and sloppy programming found by RPMlint
|
||||
* Fri Sep 12 2008 duwe@suse.de
|
||||
|
Loading…
Reference in New Issue
Block a user