Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1075180

Summary: Enable ppc64le in autoconf.h in libecap
Product: [Fedora] Fedora Reporter: Brent Baude <bbaude>
Component: libecapAssignee: Jaromír Cápík <jcapik>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: jcapik, mluscon, ovasik, SpikeFedora
Target Milestone: ---   
Target Release: ---   
Hardware: ppc64le   
OS: Linux   
Whiteboard:
Fixed In Version: libecap-0.2.0-8.fc21 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-05-13 17:11:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1051573    

Description Brent Baude 2014-03-11 16:23:53 UTC
Please consider the following change to autoconf.h in the libecap package.

[baude@ppc64le libecap]$ diff -Nau autoconf.h.orig autoconf.h
--- autoconf.h.orig	2013-09-16 05:25:00.000000000 -0500
+++ autoconf.h	2014-03-11 09:59:56.000000000 -0500
@@ -20,7 +20,12 @@
 #elif defined(__ia64__)
 #include "libecap/common/autoconf-ia64.h"
 #elif defined(__powerpc64__)
+#include <endian.h>
+#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
 #include "libecap/common/autoconf-ppc64.h"
+#else
+#include "libecap/common/autoconf-ppc64le.h"
+#endif
 #elif defined(__powerpc__)
 #include "libecap/common/autoconf-ppc.h"
 #elif defined(__s390x__)