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 1081216

Summary: Enable ppc64le in qt
Product: [Fedora] Fedora Reporter: Brent Baude <bbaude>
Component: qtAssignee: Than Ngo <than>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: dvratil, itamar, jreznik, kevin, ltinkl, rdieter, rnovacek, smparrish, than
Target Milestone: ---   
Target Release: ---   
Hardware: ppc64le   
OS: Linux   
Whiteboard:
Fixed In Version: qt-4.8.5-24.fc21 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-03-26 20:35:49 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    
Attachments:
Description Flags
qt arch define for ppc64le none

Description Brent Baude 2014-03-26 19:01:50 UTC
Created attachment 879173 [details]
qt arch define for ppc64le

For the latest rawhide qt to build for ppc64le, we need a trivial patch and trivial spec changes implemented.  The spec changes are as follows:

[baude@ppc64le qt]$ git diff
diff --git a/qt.spec b/qt.spec
index 3041aad..1cdc439 100644
--- a/qt.spec
+++ b/qt.spec
@@ -5,8 +5,8 @@
 %define no_pch -no-pch
 
 # See http://bugzilla.redhat.com/223663
-%define multilib_archs x86_64 %{ix86} ppc64 ppc s390x s390 sparc64 sparcv9
-%define multilib_basearchs x86_64 ppc64 s390x sparc64
+%define multilib_archs x86_64 %{ix86} ppc64 ppc s390x s390 sparc64 sparcv9 ppc64le
+%define multilib_basearchs x86_64 ppc64 s390x sparc64 ppc64le
 
 %if 0%{?fedora} > 16 || 0%{?rhel} > 6
 # use external qt_settings pkg
@@ -174,6 +174,9 @@ Patch1147: 0147-Disallow-deep-or-widely-nested-entity-references.patch
 # https://codereview.qt-project.org/#change,71010
 Patch1162: 0162-Fully-expand-entities-to-ensure-deep-or-widely-neste.patch
 
+# ppc64le support
+Patch999: qt-everywhere-opensource-src-4.8-ppc64le_support.patch
+
 ## security patches
 
 # desktop files
@@ -550,6 +553,8 @@ rm -fv mkspecs/linux-g++*/qmake.conf.multilib-optflags
 %patch85 -p1 -b .QTBUG-35460
 %patch86 -p1 -b .systemtrayicon
 
+%patch999 -p1
+
 # drop -fexceptions from $RPM_OPT_FLAGS
 RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed 's|-fexceptions||g'`

Comment 1 Rex Dieter 2014-03-26 20:35:49 UTC
Thanks.

%changelog
* Wed Mar 26 2014 Rex Dieter <rdieter> 4.8.5-24
- support ppc64le arch (#1081216)