summaryrefslogtreecommitdiffstats
path: root/meta/recipes-sato/webkit
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2021-03-17 13:24:59 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-03-20 18:54:55 +0000
commita0ee9118fcf9fec6aeb81f56ecfd563243bf8342 (patch)
treefc4f45f66e4cb935d364744f9ce76653abdbb9fc /meta/recipes-sato/webkit
parent736086e7c010996d20c945f0e0e00a0d45d17d13 (diff)
downloadpoky-a0ee9118fcf9fec6aeb81f56ecfd563243bf8342.tar.gz
webkitgtk: enable strlen and stpcpy on musl/linux too
(From OE-Core rev: d8f210688c56c26012f44a0a8c3bc6c1fbb9b596) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-sato/webkit')
-rw-r--r--meta/recipes-sato/webkit/webkitgtk/0001-Fix-build-with-musl.patch36
1 files changed, 26 insertions, 10 deletions
diff --git a/meta/recipes-sato/webkit/webkitgtk/0001-Fix-build-with-musl.patch b/meta/recipes-sato/webkit/webkitgtk/0001-Fix-build-with-musl.patch
index 6dcb52956c..a13b394fd9 100644
--- a/meta/recipes-sato/webkit/webkitgtk/0001-Fix-build-with-musl.patch
+++ b/meta/recipes-sato/webkit/webkitgtk/0001-Fix-build-with-musl.patch
@@ -11,11 +11,9 @@ Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
11 Source/WTF/wtf/PlatformHave.h | 2 +- 11 Source/WTF/wtf/PlatformHave.h | 2 +-
12 2 files changed, 6 insertions(+), 6 deletions(-) 12 2 files changed, 6 insertions(+), 6 deletions(-)
13 13
14diff --git a/Source/JavaScriptCore/runtime/MachineContext.h b/Source/JavaScriptCore/runtime/MachineContext.h
15index c5052527..95ef98b5 100644
16--- a/Source/JavaScriptCore/runtime/MachineContext.h 14--- a/Source/JavaScriptCore/runtime/MachineContext.h
17+++ b/Source/JavaScriptCore/runtime/MachineContext.h 15+++ b/Source/JavaScriptCore/runtime/MachineContext.h
18@@ -196,7 +196,7 @@ static inline void*& stackPointerImpl(mcontext_t& machineContext) 16@@ -196,7 +196,7 @@ static inline void*& stackPointerImpl(mc
19 #error Unknown Architecture 17 #error Unknown Architecture
20 #endif 18 #endif
21 19
@@ -24,7 +22,7 @@ index c5052527..95ef98b5 100644
24 22
25 #if CPU(X86) 23 #if CPU(X86)
26 return reinterpret_cast<void*&>((uintptr_t&) machineContext.gregs[REG_ESP]); 24 return reinterpret_cast<void*&>((uintptr_t&) machineContext.gregs[REG_ESP]);
27@@ -347,7 +347,7 @@ static inline void*& framePointerImpl(mcontext_t& machineContext) 25@@ -347,7 +347,7 @@ static inline void*& framePointerImpl(mc
28 #error Unknown Architecture 26 #error Unknown Architecture
29 #endif 27 #endif
30 28
@@ -33,7 +31,7 @@ index c5052527..95ef98b5 100644
33 31
34 // The following sequence depends on glibc's sys/ucontext.h. 32 // The following sequence depends on glibc's sys/ucontext.h.
35 #if CPU(X86) 33 #if CPU(X86)
36@@ -498,7 +498,7 @@ static inline void*& instructionPointerImpl(mcontext_t& machineContext) 34@@ -498,7 +498,7 @@ static inline void*& instructionPointerI
37 #error Unknown Architecture 35 #error Unknown Architecture
38 #endif 36 #endif
39 37
@@ -42,7 +40,7 @@ index c5052527..95ef98b5 100644
42 40
43 // The following sequence depends on glibc's sys/ucontext.h. 41 // The following sequence depends on glibc's sys/ucontext.h.
44 #if CPU(X86) 42 #if CPU(X86)
45@@ -656,7 +656,7 @@ inline void*& argumentPointer<1>(mcontext_t& machineContext) 43@@ -656,7 +656,7 @@ inline void*& argumentPointer<1>(mcontex
46 #error Unknown Architecture 44 #error Unknown Architecture
47 #endif 45 #endif
48 46
@@ -51,7 +49,7 @@ index c5052527..95ef98b5 100644
51 49
52 // The following sequence depends on glibc's sys/ucontext.h. 50 // The following sequence depends on glibc's sys/ucontext.h.
53 #if CPU(X86) 51 #if CPU(X86)
54@@ -773,7 +773,7 @@ inline void*& llintInstructionPointer(mcontext_t& machineContext) 52@@ -773,7 +773,7 @@ inline void*& llintInstructionPointer(mc
55 #error Unknown Architecture 53 #error Unknown Architecture
56 #endif 54 #endif
57 55
@@ -60,11 +58,9 @@ index c5052527..95ef98b5 100644
60 58
61 // The following sequence depends on glibc's sys/ucontext.h. 59 // The following sequence depends on glibc's sys/ucontext.h.
62 #if CPU(X86) 60 #if CPU(X86)
63diff --git a/Source/WTF/wtf/PlatformHave.h b/Source/WTF/wtf/PlatformHave.h
64index daca20fe..53eae6ba 100644
65--- a/Source/WTF/wtf/PlatformHave.h 61--- a/Source/WTF/wtf/PlatformHave.h
66+++ b/Source/WTF/wtf/PlatformHave.h 62+++ b/Source/WTF/wtf/PlatformHave.h
67@@ -222,7 +222,7 @@ 63@@ -202,7 +202,7 @@
68 #define HAVE_HOSTED_CORE_ANIMATION 1 64 #define HAVE_HOSTED_CORE_ANIMATION 1
69 #endif 65 #endif
70 66
@@ -73,3 +69,23 @@ index daca20fe..53eae6ba 100644
73 #define HAVE_MACHINE_CONTEXT 1 69 #define HAVE_MACHINE_CONTEXT 1
74 #endif 70 #endif
75 71
72--- a/Source/WebCore/xml/XPathGrammar.cpp
73+++ b/Source/WebCore/xml/XPathGrammar.cpp
74@@ -966,7 +966,7 @@ int yydebug;
75 #if YYERROR_VERBOSE
76
77 # ifndef yystrlen
78-# if defined __GLIBC__ && defined _STRING_H
79+# if defined __linux__ && defined _STRING_H
80 # define yystrlen strlen
81 # else
82 /* Return the length of YYSTR. */
83@@ -989,7 +989,7 @@ yystrlen (yystr)
84 # endif
85
86 # ifndef yystpcpy
87-# if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
88+# if defined __linux__ && defined _STRING_H && defined _GNU_SOURCE
89 # define yystpcpy stpcpy
90 # else
91 /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in