Bug 1096330 - qtwebkit enable jit for ppc64le
Summary: qtwebkit enable jit for ppc64le
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: qtwebkit
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Rex Dieter
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-09 17:01 UTC by Michel Normand
Modified: 2015-08-04 13:13 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-08-04 13:12:35 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
qtwebkit-23-ppc64le.patch simplified patch (832 bytes, text/x-c)
2014-05-09 17:01 UTC, Michel Normand
no flags Details

Description Michel Normand 2014-05-09 17:01:47 UTC
Created attachment 894105 [details]
qtwebkit-23-ppc64le.patch simplified patch

Description of problem: qtwebkit enable jit for ppc64le

Version-Release number of selected component (if applicable):
qtwebkit-2.3.3-13.fc21

This bz is addressing two suggested changes:
1- simplify the qtwebkit-23-ppc64le.patch previously added by git commit "ppc64le support" 
http://pkgs.fedoraproject.org/cgit/qtwebkit.git/commit/?id=21d9fad3e3864a64dd81c23956ff2aff08ce9456

refer to new qtwebkit-23-ppc64le.patch provided as attachment for simplied patch.

2- update qtwebkit.spec to enable jit for ppc64le, as suggested by diff below.
===
diff --git a/qtwebkit.spec b/qtwebkit.spec
index 0a557f3..d4ac984 100644
--- a/qtwebkit.spec
+++ b/qtwebkit.spec
@@ -166,7 +166,7 @@ PATH=%{_qt4_bindir}:$PATH; export PATH
 QMAKEPATH=`pwd`/Tools/qmake; export QMAKEPATH
 QTDIR=%{_qt4_prefix}; export QTDIR
 
-%ifarch aarch64 ppc64le
+%ifarch aarch64
 %global qtdefines  DEFINES+=ENABLE_JIT=0 DEFINES+=ENABLE_YARR_JIT=0 DEFINES+=ENABLE_ASSEMBLER=0
 %endif
===

I was able to mock build for ppc64le, but do not know yet how to test qtwebkit.

Comment 1 Jaroslav Reznik 2015-03-03 15:47:56 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle.
Changing version to '22'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22

Comment 2 Rex Dieter 2015-03-17 17:22:48 UTC
Sorry for the delay, I'll try to incorporate this today.

Comment 3 Rex Dieter 2015-03-17 19:22:16 UTC
%changelog
* Tue Mar 17 2015 Rex Dieter <rdieter> 2.3.4-3
- qtwebkit enable jit for ppc64le (#1096330)

Comment 4 Rex Dieter 2015-03-23 12:12:50 UTC
Boo, looks like the supplied patch no longer applies against 2.3.4

+ echo 'Patch #15 (qtwebkit-23-ppc64le.patch):'
Patch #15 (qtwebkit-23-ppc64le.patch):
+ /usr/bin/cat /data/rdieter1/pkgs.fedoraproject.org/qtwebkit/qtwebkit-23-ppc64le.patch
+ /usr/bin/patch -p1 -b --suffix .ppc64le --fuzz=0
patching file Source/WTF/wtf/Platform.h
Hunk #1 FAILED at 110.
1 out of 1 hunk FAILED -- saving rejects to file Source/WTF/wtf/Platform.h.rej
error: Bad exit status from /var/tmp/rpm-tmp.Fc6k5b (%prep)

Comment 5 Rex Dieter 2015-08-04 13:12:35 UTC
Looks like this is fixed in 2.3.4 properly already, the referenced code snippet in the patch already contains:

/* CPU(PPC) - PowerPC 32-bit */
#if   defined(__ppc__)     \
    || defined(__PPC__)     \
    || defined(__powerpc__) \
    || defined(__powerpc)   \
    || defined(__POWERPC__) \
    || defined(_M_PPC)      \
    || defined(__PPC)
#define WTF_CPU_PPC 1
#ifndef __LITTLE_ENDIAN__
#define WTF_CPU_BIG_ENDIAN 1
#endif
#endif

Comment 6 Rex Dieter 2015-08-04 13:13:20 UTC
Oh, and,


* Mon Mar 23 2015 Rex Dieter <rdieter> 2.3.4-5
- drop ppc64le patch (that no longer applies or is needed)


Looks like I'd just forgotten to close this then (sorry).


Note You need to log in before you can comment on or make changes to this bug.