Bug 172707 - Fix sysutils/ipmitool build on big endian architectures
Summary: Fix sysutils/ipmitool build on big endian architectures
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-15 09:10 UTC by olivier
Modified: 2013-01-30 16:40 UTC (History)
0 users

See Also:


Attachments
file.diff (1.15 KB, patch)
2012-10-15 09:10 UTC, olivier
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description olivier 2012-10-15 09:10:01 UTC
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.

Fix: Apply the attached patch.

Patch attached with submission follows:
How-To-Repeat: build sysutils/ipmitool on sparc64
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2012-10-15 09:11:02 UTC
Maintainer of sysutils/ipmitool,

Please note that PR ports/172707 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/172707

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2012-10-15 09:11:03 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 3 dfilter service freebsd_committer freebsd_triage 2013-01-30 16:35:22 UTC
Author: jadawin
Date: Wed Jan 30 16:35:14 2013
New Revision: 311235
URL: http://svnweb.freebsd.org/changeset/ports/311235

Log:
  - Fix build on sparc64
  
  PR:		ports/172707
  Submitted by:	Olivier Cochard-Labbe <olivier@cochard.me>
  Approved by:	maintainer timed-out

Added:
  head/sysutils/ipmitool/files/patch-ipmi_chassis.c   (contents, props changed)
  head/sysutils/ipmitool/files/patch-ipmi_pef.c   (contents, props changed)
Modified:
  head/sysutils/ipmitool/Makefile

Modified: head/sysutils/ipmitool/Makefile
==============================================================================
--- head/sysutils/ipmitool/Makefile	Wed Jan 30 16:29:16 2013	(r311234)
+++ head/sysutils/ipmitool/Makefile	Wed Jan 30 16:35:14 2013	(r311235)
@@ -1,13 +1,9 @@
-# New ports collection makefile for:	ipmitool
-# Date created:				25/Oct/2004
-# Whom:					Dmitry Frolov <frol@nov.net>
-#
+# Created by: Dmitry Frolov <frol@nov.net>
 # $FreeBSD$
-#
 
 PORTNAME=	ipmitool
 PORTVERSION=	1.8.12
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	sysutils
 MASTER_SITES=	SF
 

Added: head/sysutils/ipmitool/files/patch-ipmi_chassis.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/ipmitool/files/patch-ipmi_chassis.c	Wed Jan 30 16:35:14 2013	(r311235)
@@ -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;
+ 

Added: head/sysutils/ipmitool/files/patch-ipmi_pef.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/ipmitool/files/patch-ipmi_pef.c	Wed Jan 30 16:35:14 2013	(r311235)
@@ -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;
+ /*
\ No newline at end of file
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 4 Philippe Audeoud freebsd_committer freebsd_triage 2013-01-30 16:35:33 UTC
State Changed
From-To: feedback->closed

Committed. Thanks!