Gentoo Archives: gentoo-commits

From: Mart Raudsepp <leio@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/webkit-gtk/, net-libs/webkit-gtk/files/
Date: Sun, 19 Jan 2020 18:49:20
Message-Id: 1579459681.67cc73686f1c4ea44aa0b639d2be4659c21c4c9c.leio@gentoo
1 commit: 67cc73686f1c4ea44aa0b639d2be4659c21c4c9c
2 Author: Mart Raudsepp <leio <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 19 18:47:40 2020 +0000
4 Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 19 18:48:01 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67cc7368
7
8 net-libs/webkit-gtk: fix USE=-jumbo-build builds on non-amd64
9
10 In some non-amd64 architectures (arm and sparc at least), there
11 are missing headers in JSC. Not sure what the trigger is - maybe
12 lack of FTL, or some other differences. Hopefully fix it by
13 patching in the necessary includes to the places I could identify
14 with limited armv7a cross-compiling.
15
16 Closes: https://bugs.gentoo.org/704194
17 Package-Manager: Portage-2.3.79, Repoman-2.3.12
18 Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org>
19
20 .../files/2.26.2-fix-arm-non-unified-build.patch | 27 ++++++++++++++++++++++
21 net-libs/webkit-gtk/webkit-gtk-2.26.2.ebuild | 1 +
22 2 files changed, 28 insertions(+)
23
24 diff --git a/net-libs/webkit-gtk/files/2.26.2-fix-arm-non-unified-build.patch b/net-libs/webkit-gtk/files/2.26.2-fix-arm-non-unified-build.patch
25 new file mode 100644
26 index 00000000000..0f0959900df
27 --- /dev/null
28 +++ b/net-libs/webkit-gtk/files/2.26.2-fix-arm-non-unified-build.patch
29 @@ -0,0 +1,27 @@
30 +Add missing headers required during non-unified build.
31 +
32 +Unified build happens to get them included by the other sources unified
33 +into same source file, thus didn't fail.
34 +
35 +diff -urNp a/Source/JavaScriptCore/bytecompiler/NodesCodegen.cpp b/Source/JavaScriptCore/bytecompiler/NodesCodegen.cpp
36 +--- a/Source/JavaScriptCore/bytecompiler/NodesCodegen.cpp
37 ++++ b/Source/JavaScriptCore/bytecompiler/NodesCodegen.cpp
38 +@@ -30,6 +30,7 @@
39 +
40 + #include "BuiltinNames.h"
41 + #include "BytecodeGenerator.h"
42 ++#include "BytecodeStructs.h"
43 + #include "CallFrame.h"
44 + #include "JIT.h"
45 + #include "JSCInlines.h"
46 +diff -urNp a/Source/JavaScriptCore/heap/MachineStackMarker.cpp b/Source/JavaScriptCore/heap/MachineStackMarker.cpp
47 +--- a/Source/JavaScriptCore/heap/MachineStackMarker.cpp
48 ++++ b/Source/JavaScriptCore/heap/MachineStackMarker.cpp
49 +@@ -23,6 +23,7 @@
50 + #include "MachineStackMarker.h"
51 +
52 + #include "ConservativeRoots.h"
53 ++#include "CPU.h"
54 + #include "MachineContext.h"
55 + #include <setjmp.h>
56 + #include <stdlib.h>
57
58 diff --git a/net-libs/webkit-gtk/webkit-gtk-2.26.2.ebuild b/net-libs/webkit-gtk/webkit-gtk-2.26.2.ebuild
59 index d8e82634b06..455b181a4dd 100644
60 --- a/net-libs/webkit-gtk/webkit-gtk-2.26.2.ebuild
61 +++ b/net-libs/webkit-gtk/webkit-gtk-2.26.2.ebuild
62 @@ -167,6 +167,7 @@ src_prepare() {
63 eapply "${FILESDIR}/${PN}-2.24.4-icu-65.patch" # bug 698596
64 eapply "${FILESDIR}/${PN}-2.24.4-eglmesaext-include.patch" # bug 699054 # https://bugs.webkit.org/show_bug.cgi?id=204108
65 eapply "${FILESDIR}"/${PV}-fix-noGL-build.patch # bug 704236
66 + eapply "${FILESDIR}"/${PV}-fix-arm-non-unified-build.patch # bug 704194
67 cmake-utils_src_prepare
68 gnome2_src_prepare
69 }