ports/172707: Fix sysutils/ipmitool build on big endian architectures
Olivier Cochard-Labbé
olivier at cochard.me
Mon Oct 15 08:10:02 UTC 2012
>Number: 172707
>Category: ports
>Synopsis: Fix sysutils/ipmitool build on big endian architectures
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Oct 15 08:10:01 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Olivier Cochard-Labbé
>Release: 9.0
>Organization:
BSD Router Project
>Environment:
FreeBSD sparc.orange.bsdrp.net 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Wed Jan 4 05:26:33 UTC 2012 root at heller.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC sparc64
>Description:
sysutils/ipmitool can't be build on sparc64 arch (and all other big endian architectures).
There is a patch available for this problem on ipmitool the bug tracker:
http://sourceforge.net/tracker/?func=detail&aid=3564701&group_id=95200&atid=610550
And here the patch for the port.
>How-To-Repeat:
build sysutils/ipmitool on sparc64
>Fix:
Apply the attached patch.
Patch attached with submission follows:
diff -ruN sysutils/ipmitool.orig/files/patch-ipmi_chassis.c sysutils/ipmitool/files/patch-ipmi_chassis.c
--- sysutils/ipmitool.orig/files/patch-ipmi_chassis.c 1970-01-01 00:00:00.000000000 +0000
+++ sysutils/ipmitool/files/patch-ipmi_chassis.c 2012-10-15 07:40:40.000000000 +0000
@@ -0,0 +1,10 @@
+--- lib/ipmi_chassis.c.orig 2012-10-15 07:38:19.000000000 +0000
++++ lib/ipmi_chassis.c 2012-10-15 07:38:46.000000000 +0000
+@@ -41,6 +41,7 @@
+ #include <ipmitool/ipmi_intf.h>
+ #include <ipmitool/ipmi_strings.h>
+ #include <ipmitool/ipmi_chassis.h>
++#include <ipmitool/bswap.h>
+
+ extern int verbose;
+
diff -ruN sysutils/ipmitool.orig/files/patch-ipmi_pef.c sysutils/ipmitool/files/patch-ipmi_pef.c
--- sysutils/ipmitool.orig/files/patch-ipmi_pef.c 1970-01-01 00:00:00.000000000 +0000
+++ sysutils/ipmitool/files/patch-ipmi_pef.c 2012-10-15 07:41:58.000000000 +0000
@@ -0,0 +1,10 @@
+--- lib/ipmi_pef.c.orig 2012-10-15 07:41:07.000000000 +0000
++++ lib/ipmi_pef.c 2012-10-15 07:41:36.000000000 +0000
+@@ -39,6 +39,7 @@
+ #include <ipmitool/ipmi.h>
+ #include <ipmitool/ipmi_intf.h>
+ #include <ipmitool/ipmi_pef.h>
++#include <ipmitool/bswap.h>
+
+ extern int verbose;
+ /*
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list