- Fix rebuild problems due to glibc change

- License review and fixes
This commit is contained in:
Phil Knirsch 2007-08-17 15:42:26 +00:00
parent 7e437c2fa4
commit 738eff871b
2 changed files with 81 additions and 2 deletions

View File

@ -3,14 +3,15 @@
Summary: OpenIPMI (Intelligent Platform Management Interface) library and tools
Name: OpenIPMI
Version: 2.0.11
Release: 1%{?dist}
License: GPL
Release: 2%{?dist}
License: BSD and BSD with advertising and LGPLv2+ and GPLv2+
Group: System Environment/Base
URL: http://sourceforge.net/projects/openipmi/
Source: http://prdownloads.sourceforge.net/openipmi/%{name}-%{version}.tar.gz
Source2: http://prdownloads.sourceforge.net/ipmitool/ipmitool-%{ipmitoolver}.tar.gz
Source3: openipmi.sysconf
Source4: openipmi.initscript
Patch100: ipmitool-1.8.9-open.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
PreReq: chkconfig
BuildPrereq: gdbm-devel swig glib2-devel net-snmp-devel ncurses-devel
@ -62,6 +63,8 @@ of the OpenIPMI project.
%prep
%setup -q -a 2
pushd ipmitool-%{ipmitoolver}
%patch100 -p1 -b .open
%build
%configure --with-pythoninstall=%{python_sitearch}
@ -160,6 +163,10 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/*.a
%changelog
* Fri Aug 17 2007 Phil Knirsch <pknirsch@redhat.com> - 2.0.11-2
- Fix rebuild problems due to glibc change
- License review and fixes
* Tue Apr 24 2007 Phil Knirsch <pknirsch@redhat.com> - 2.0.11-1
- Update to OpenIPMI-2.0.11

72
ipmitool-1.8.9-open.patch Normal file
View File

@ -0,0 +1,72 @@
diff -up ipmitool-1.8.9/src/ipmievd.c.open ipmitool-1.8.9/src/ipmievd.c
--- ipmitool-1.8.9/src/ipmievd.c.open 2007-08-17 16:27:37.000000000 +0200
+++ ipmitool-1.8.9/src/ipmievd.c 2007-08-17 16:27:52.000000000 +0200
@@ -661,7 +661,7 @@ ipmievd_main(struct ipmi_event_intf * ei
* so error messages are not lost to syslog and
* return code is successfully returned to initscript
*/
- if (eintf->intf->open(eintf->intf) < 0) {
+ if ((eintf->intf->open)(eintf->intf) < 0) {
lprintf(LOG_ERR, "Unable to open interface");
return -1;
}
diff -up ipmitool-1.8.9/src/plugins/lanplus/lanplus.c.open ipmitool-1.8.9/src/plugins/lanplus/lanplus.c
--- ipmitool-1.8.9/src/plugins/lanplus/lanplus.c.open 2007-08-17 16:26:09.000000000 +0200
+++ ipmitool-1.8.9/src/plugins/lanplus/lanplus.c 2007-08-17 16:26:35.000000000 +0200
@@ -2016,7 +2016,7 @@ ipmi_lanplus_send_payload(
int xmit = 1;
time_t ltime;
- if (!intf->opened && intf->open && intf->open(intf) < 0)
+ if (!intf->opened && intf->open && (intf->open)(intf) < 0)
return NULL;
while (try < session->retry) {
diff -up ipmitool-1.8.9/src/plugins/open/open.c.open ipmitool-1.8.9/src/plugins/open/open.c
--- ipmitool-1.8.9/src/plugins/open/open.c.open 2007-08-17 16:26:58.000000000 +0200
+++ ipmitool-1.8.9/src/plugins/open/open.c 2007-08-17 16:27:10.000000000 +0200
@@ -174,7 +174,7 @@ ipmi_openipmi_send_cmd(struct ipmi_intf
if (intf == NULL || req == NULL)
return NULL;
if (intf->opened == 0 && intf->open != NULL)
- if (intf->open(intf) < 0)
+ if ((intf->open)(intf) < 0)
return NULL;
if (verbose > 2)
diff -up ipmitool-1.8.9/src/plugins/lan/lan.c.open ipmitool-1.8.9/src/plugins/lan/lan.c
--- ipmitool-1.8.9/src/plugins/lan/lan.c.open 2007-08-17 16:25:31.000000000 +0200
+++ ipmitool-1.8.9/src/plugins/lan/lan.c 2007-08-17 16:25:46.000000000 +0200
@@ -743,7 +743,7 @@ ipmi_lan_send_cmd(struct ipmi_intf * int
intf->opened, intf->open);
if (intf->opened == 0 && intf->open != NULL) {
- if (intf->open(intf) < 0) {
+ if ((intf->open)(intf) < 0) {
lprintf(LOG_DEBUG, "Failed to open LAN interface");
return NULL;
}
diff -up ipmitool-1.8.9/lib/ipmi_tsol.c.open ipmitool-1.8.9/lib/ipmi_tsol.c
--- ipmitool-1.8.9/lib/ipmi_tsol.c.open 2007-08-17 16:24:34.000000000 +0200
+++ ipmitool-1.8.9/lib/ipmi_tsol.c 2007-08-17 16:24:47.000000000 +0200
@@ -452,7 +452,7 @@ ipmi_tsol_main(struct ipmi_intf * intf,
* retrieve local IP address if not supplied on command line
*/
if (recvip == NULL) {
- result = intf->open(intf); /* must connect first */
+ result = (intf->open)(intf); /* must connect first */
if (result < 0)
return -1;
diff -up ipmitool-1.8.9/lib/ipmi_main.c.open ipmitool-1.8.9/lib/ipmi_main.c
--- ipmitool-1.8.9/lib/ipmi_main.c.open 2007-08-16 18:08:54.000000000 +0200
+++ ipmitool-1.8.9/lib/ipmi_main.c 2007-08-17 16:24:12.000000000 +0200
@@ -594,7 +594,7 @@ ipmi_main(int argc, char ** argv,
if (target_addr > 0) {
/* need to open the interface first */
if (intf->open != NULL)
- intf->open(intf);
+ (intf->open)(intf);
intf->target_addr = target_addr;
/* must be admin level to do this over lan */
ipmi_intf_session_set_privlvl(intf, IPMI_SESSION_PRIV_ADMIN);