Bug 1086937

Summary: Add ppc64le support to Thunderbird
Product: [Fedora] Fedora Reporter: Gustavo Luiz Duarte <gustavold>
Component: thunderbirdAssignee: Jan Horak <jhorak>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: gecko-bugs-nobody, gustavold, stransky
Target Milestone: ---   
Target Release: ---   
Hardware: ppc64le   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-05-06 07:46:17 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
Part 1: Build/config support
none
Part2: libffi support
none
Part 3: xptcall port
none
Part 4: js support none

Description Gustavo Luiz Duarte 2014-04-11 21:28:46 UTC
The new little-endian 64-bit PowerPC platform (powerpc64le-linux) is not currently supported by Thunderbird.  The following is required to have ppc64le support on Thunderbird:

1. build/config support
2. Javascript build/config support
3. js/src/ctypes - libffi backport
4. xptcall port

Ulrich Weigand has implemented that and posted his work on the following bz:
https://bugzilla.mozilla.org/show_bug.cgi?id=976648

Considering Ulrich's patches have been merged into mozilla-central, can we please add those patches to Rawhide's thunderbird package?
To make sure we don't break other arches, you can apply these patches only on ppc64le.

I will attach Ulrich's patches backported to Rawhide (thunderbird-24) shortly.

Comment 1 Gustavo Luiz Duarte 2014-04-11 21:31:29 UTC
Created attachment 885622 [details]
Part 1: Build/config support

Comment 2 Gustavo Luiz Duarte 2014-04-11 21:33:08 UTC
Created attachment 885623 [details]
Part2: libffi support

Comment 3 Gustavo Luiz Duarte 2014-04-11 21:34:13 UTC
Created attachment 885624 [details]
Part 3: xptcall port

Comment 4 Gustavo Luiz Duarte 2014-04-11 21:34:56 UTC
Created attachment 885625 [details]
Part 4: js support

Comment 5 Gustavo Luiz Duarte 2014-04-15 19:58:48 UTC
Please also consider the following change to the spec file:

@@ -275,7 +289,7 @@ export LIBDIR='%{_libdir}'
 MOZ_SMP_FLAGS=-j1
 # On x86 architectures, Mozilla can build up to 4 jobs at once in parallel,
 # however builds tend to fail on other arches when building in parallel.
-%ifarch %{ix86} x86_64 ppc ppc64
+%ifarch %{ix86} x86_64 ppc ppc64 ppc64le
 [ -z "$RPM_BUILD_NCPUS" ] && \
      RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"
 [ "$RPM_BUILD_NCPUS" -ge 2 ] && MOZ_SMP_FLAGS=-j2

Comment 6 Jan Horak 2014-05-06 07:46:17 UTC
Thanks for the patches, should be part of thunderbird-24.5.0-2.fc21 build.