diff --git a/ipmitool-1.8.12-bigendian.patch b/ipmitool-1.8.12-bigendian.patch new file mode 100644 index 0000000..202e8fd --- /dev/null +++ b/ipmitool-1.8.12-bigendian.patch @@ -0,0 +1,22 @@ +diff -up ipmitool-1.8.12/lib/ipmi_chassis.c.bigendian ipmitool-1.8.12/lib/ipmi_chassis.c +--- ipmitool-1.8.12/lib/ipmi_chassis.c.bigendian 2012-09-04 16:01:55.000000000 +0200 ++++ ipmitool-1.8.12/lib/ipmi_chassis.c 2012-09-04 16:02:20.000000000 +0200 +@@ -41,6 +41,7 @@ + #include + #include + #include ++#include + + extern int verbose; + +diff -up ipmitool-1.8.12/lib/ipmi_pef.c.bigendian ipmitool-1.8.12/lib/ipmi_pef.c +--- ipmitool-1.8.12/lib/ipmi_pef.c.bigendian 2012-09-04 16:02:05.000000000 +0200 ++++ ipmitool-1.8.12/lib/ipmi_pef.c 2012-09-04 16:02:30.000000000 +0200 +@@ -39,6 +39,7 @@ + #include + #include + #include ++#include + + extern int verbose; + /* diff --git a/ipmitool.spec b/ipmitool.spec index b5ff6c7..8455fbf 100644 --- a/ipmitool.spec +++ b/ipmitool.spec @@ -1,7 +1,7 @@ Name: ipmitool Summary: Utility for IPMI control Version: 1.8.12 -Release: 2%{?dist} +Release: 3%{?dist} License: BSD Group: System Environment/Base URL: http://ipmitool.sourceforge.net/ @@ -21,6 +21,8 @@ Patch1: ipmitool-1.8.10-ipmievd-init.patch Patch2: ipmitool-1.8.10-ipmievd-condrestart.patch Patch3: ipmitool-1.8.11-remove-umask0.patch Patch4: ipmitool-1.8.11-systemd.patch +# https://sourceforge.net/tracker/index.php?func=detail&aid=3564701&group_id=95200&atid=610550 +Patch5: ipmitool-1.8.12-bigendian.patch %description This package contains a utility for interfacing with devices that support @@ -44,6 +46,7 @@ setting LAN configuration, and chassis power control. %patch2 -p0 -b .condrestart %patch3 -p1 -b .umask %patch4 -p1 -b .systemd +%patch5 -p1 -b .bigendian for f in AUTHORS ChangeLog; do iconv -f iso-8859-1 -t utf8 < ${f} > ${f}.utf8 @@ -94,6 +97,9 @@ install -Dpm 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/sysconfig/ipmievd %changelog +* Tue Sep 04 2012 Dan HorĂ¡k - 1.8.12-3 +- fix build on big endian arches + * Mon Aug 27 2012 Jan Safranek - 1.8.12-2 - Fixed starting ipmievd under systemd (#819234). - Updated RPM scriplets with latest systemd-rpm macros (#850161)