diff options
author | Khem Raj <raj.khem@gmail.com> | 2018-08-24 07:15:18 +0000 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2018-09-19 09:55:34 +0000 |
commit | a307eb0ede74c0f6335fa6e016c65c8ab101dc98 (patch) | |
tree | d7f619a15fa4dc6fb0ab369d3c86d86d0f88028e /recipes-qt/qt5/qtwebkit | |
parent | 3e4141cfbb8e2940bf9882a00a3f89e092419198 (diff) | |
download | meta-qt5-a307eb0ede74c0f6335fa6e016c65c8ab101dc98.tar.gz |
qtwebkit: Fix conflicts with -I and -isystem
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes-qt/qt5/qtwebkit')
-rw-r--r-- | recipes-qt/qt5/qtwebkit/0001-WebKitMacros-Append-to-I-and-not-to-isystem.patch | 207 |
1 files changed, 207 insertions, 0 deletions
diff --git a/recipes-qt/qt5/qtwebkit/0001-WebKitMacros-Append-to-I-and-not-to-isystem.patch b/recipes-qt/qt5/qtwebkit/0001-WebKitMacros-Append-to-I-and-not-to-isystem.patch new file mode 100644 index 00000000..d96a6b65 --- /dev/null +++ b/recipes-qt/qt5/qtwebkit/0001-WebKitMacros-Append-to-I-and-not-to-isystem.patch | |||
@@ -0,0 +1,207 @@ | |||
1 | From 7c2e6013caf7720530f963ca03eab2baa540c512 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 24 Aug 2018 07:13:39 +0000 | ||
4 | Subject: [PATCH] WebKitMacros: Append to -I and not to -isystem | ||
5 | |||
6 | gcc-6 has now introduced stdlib.h in libstdc++ for better | ||
7 | compliance and its including the C library stdlib.h using | ||
8 | include_next which is sensitive to order of system header | ||
9 | include paths. Its infact better to not tinker with the | ||
10 | system header include paths at all. Since adding /usr/include | ||
11 | to -system is redundant and compiler knows about it moreover | ||
12 | now with gcc6 it interferes with compiler's functioning | ||
13 | and ends up with compile errors e.g. | ||
14 | |||
15 | /usr/include/c++/6.0.0/cstdlib:75:25: fatal error: stdlib.h: No such file or directory | ||
16 | |||
17 | Upstream-Status: Pending | ||
18 | |||
19 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
20 | --- | ||
21 | Source/JavaScriptCore/shell/CMakeLists.txt | 2 +- | ||
22 | Source/WebKit/qt/declarative/CMakeLists.txt | 2 +- | ||
23 | Source/WebKit/qt/tests/CMakeLists.txt | 2 +- | ||
24 | Source/WebKit2/UIProcess/API/qt/tests/CMakeLists.txt | 2 +- | ||
25 | Source/cmake/WebKitMacros.cmake | 2 +- | ||
26 | Tools/DumpRenderTree/CMakeLists.txt | 2 +- | ||
27 | Tools/DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt | 2 +- | ||
28 | Tools/ImageDiff/CMakeLists.txt | 2 +- | ||
29 | Tools/MiniBrowser/qt/CMakeLists.txt | 2 +- | ||
30 | Tools/QtTestBrowser/CMakeLists.txt | 2 +- | ||
31 | Tools/TestWebKitAPI/PlatformQt.cmake | 2 +- | ||
32 | Tools/TestWebKitAPI/Tests/WebKit2Gtk/CMakeLists.txt | 2 +- | ||
33 | Tools/WebKitTestRunner/CMakeLists.txt | 2 +- | ||
34 | 13 files changed, 13 insertions(+), 13 deletions(-) | ||
35 | |||
36 | diff --git a/Source/JavaScriptCore/shell/CMakeLists.txt b/Source/JavaScriptCore/shell/CMakeLists.txt | ||
37 | index 27d8133..9480f6d 100644 | ||
38 | --- a/Source/JavaScriptCore/shell/CMakeLists.txt | ||
39 | +++ b/Source/JavaScriptCore/shell/CMakeLists.txt | ||
40 | @@ -20,7 +20,7 @@ WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS() | ||
41 | |||
42 | WEBKIT_WRAP_SOURCELIST(${JSC_SOURCES}) | ||
43 | include_directories(./ ${JavaScriptCore_INCLUDE_DIRECTORIES}) | ||
44 | -include_directories(SYSTEM ${JavaScriptCore_SYSTEM_INCLUDE_DIRECTORIES}) | ||
45 | +include_directories(${JavaScriptCore_SYSTEM_INCLUDE_DIRECTORIES}) | ||
46 | add_executable(jsc ${JSC_SOURCES}) | ||
47 | target_link_libraries(jsc ${JSC_LIBRARIES}) | ||
48 | set_target_properties(jsc PROPERTIES FOLDER "JavaScriptCore") | ||
49 | diff --git a/Source/WebKit/qt/declarative/CMakeLists.txt b/Source/WebKit/qt/declarative/CMakeLists.txt | ||
50 | index e1ba22b..84cb565 100644 | ||
51 | --- a/Source/WebKit/qt/declarative/CMakeLists.txt | ||
52 | +++ b/Source/WebKit/qt/declarative/CMakeLists.txt | ||
53 | @@ -15,7 +15,7 @@ include_directories( | ||
54 | |||
55 | ${WTF_DIR} | ||
56 | ) | ||
57 | -include_directories(SYSTEM | ||
58 | +include_directories( | ||
59 | ${ICU_INCLUDE_DIRS} | ||
60 | ${Qt5Quick_INCLUDE_DIRS} | ||
61 | ${Qt5Quick_PRIVATE_INCLUDE_DIRS} | ||
62 | diff --git a/Source/WebKit/qt/tests/CMakeLists.txt b/Source/WebKit/qt/tests/CMakeLists.txt | ||
63 | index 3dc6af1..d821f02 100644 | ||
64 | --- a/Source/WebKit/qt/tests/CMakeLists.txt | ||
65 | +++ b/Source/WebKit/qt/tests/CMakeLists.txt | ||
66 | @@ -7,7 +7,7 @@ include_directories( | ||
67 | "${WEBKIT_DIR}/qt/WidgetApi" | ||
68 | ) | ||
69 | |||
70 | -include_directories(SYSTEM | ||
71 | +include_directories( | ||
72 | ${ICU_INCLUDE_DIRS} | ||
73 | ${Qt5Gui_PRIVATE_INCLUDE_DIRS} | ||
74 | ${Qt5Widgets_INCLUDE_DIRS} | ||
75 | diff --git a/Source/WebKit2/UIProcess/API/qt/tests/CMakeLists.txt b/Source/WebKit2/UIProcess/API/qt/tests/CMakeLists.txt | ||
76 | index 210342e..bfc768f 100644 | ||
77 | --- a/Source/WebKit2/UIProcess/API/qt/tests/CMakeLists.txt | ||
78 | +++ b/Source/WebKit2/UIProcess/API/qt/tests/CMakeLists.txt | ||
79 | @@ -4,7 +4,7 @@ include_directories( | ||
80 | "${WEBKIT_DIR}/qt/Api" | ||
81 | ) | ||
82 | |||
83 | -include_directories(SYSTEM | ||
84 | +include_directories( | ||
85 | ${Qt5Quick_INCLUDE_DIRS} | ||
86 | ${Qt5Quick_PRIVATE_INCLUDE_DIRS} | ||
87 | ${Qt5QuickTest_INCLUDE_DIRS} | ||
88 | diff --git a/Source/cmake/WebKitMacros.cmake b/Source/cmake/WebKitMacros.cmake | ||
89 | index 07e3143..a1e5887 100644 | ||
90 | --- a/Source/cmake/WebKitMacros.cmake | ||
91 | +++ b/Source/cmake/WebKitMacros.cmake | ||
92 | @@ -260,7 +260,7 @@ endmacro() | ||
93 | |||
94 | macro(WEBKIT_FRAMEWORK _target) | ||
95 | include_directories(${${_target}_INCLUDE_DIRECTORIES}) | ||
96 | - include_directories(SYSTEM ${${_target}_SYSTEM_INCLUDE_DIRECTORIES}) | ||
97 | + include_directories(${${_target}_SYSTEM_INCLUDE_DIRECTORIES}) | ||
98 | add_library(${_target} ${${_target}_LIBRARY_TYPE} | ||
99 | ${${_target}_HEADERS} | ||
100 | ${${_target}_SOURCES} | ||
101 | diff --git a/Tools/DumpRenderTree/CMakeLists.txt b/Tools/DumpRenderTree/CMakeLists.txt | ||
102 | index 4a726cc..cd0c5e3 100644 | ||
103 | --- a/Tools/DumpRenderTree/CMakeLists.txt | ||
104 | +++ b/Tools/DumpRenderTree/CMakeLists.txt | ||
105 | @@ -115,7 +115,7 @@ list(APPEND TestNetscapePlugin_LIBRARIES | ||
106 | WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS() | ||
107 | |||
108 | include_directories(${DumpRenderTree_INCLUDE_DIRECTORIES}) | ||
109 | -include_directories(SYSTEM ${DumpRenderTree_SYSTEM_INCLUDE_DIRECTORIES}) | ||
110 | +include_directories(${DumpRenderTree_SYSTEM_INCLUDE_DIRECTORIES}) | ||
111 | |||
112 | add_executable(DumpRenderTree ${DumpRenderTree_SOURCES}) | ||
113 | target_link_libraries(DumpRenderTree ${DumpRenderTree_LIBRARIES}) | ||
114 | diff --git a/Tools/DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt b/Tools/DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt | ||
115 | index c431667..6dff244 100644 | ||
116 | --- a/Tools/DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt | ||
117 | +++ b/Tools/DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt | ||
118 | @@ -42,7 +42,7 @@ set(WebKitTestNetscapePlugin_SYSTEM_INCLUDE_DIRECTORIES | ||
119 | ) | ||
120 | |||
121 | include_directories(${WebKitTestNetscapePlugin_INCLUDE_DIRECTORIES}) | ||
122 | -include_directories(SYSTEM ${WebKitTestNetscapePlugin_SYSTEM_INCLUDE_DIRECTORIES}) | ||
123 | +include_directories(${WebKitTestNetscapePlugin_SYSTEM_INCLUDE_DIRECTORIES}) | ||
124 | |||
125 | set(WebKitTestNetscapePlugin_LIBRARIES | ||
126 | ${X11_LIBRARIES} | ||
127 | diff --git a/Tools/ImageDiff/CMakeLists.txt b/Tools/ImageDiff/CMakeLists.txt | ||
128 | index 6ce4ed5..4dd6c4a 100644 | ||
129 | --- a/Tools/ImageDiff/CMakeLists.txt | ||
130 | +++ b/Tools/ImageDiff/CMakeLists.txt | ||
131 | @@ -14,7 +14,7 @@ set(IMAGE_DIFF_LIBRARIES | ||
132 | WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS() | ||
133 | |||
134 | include_directories(${IMAGE_DIFF_INCLUDE_DIRECTORIES}) | ||
135 | -include_directories(SYSTEM ${IMAGE_DIFF_SYSTEM_INCLUDE_DIRECTORIES}) | ||
136 | +include_directories(${IMAGE_DIFF_SYSTEM_INCLUDE_DIRECTORIES}) | ||
137 | add_executable(ImageDiff ${IMAGE_DIFF_SOURCES}) | ||
138 | target_link_libraries(ImageDiff ${IMAGE_DIFF_LIBRARIES}) | ||
139 | set_target_properties(ImageDiff PROPERTIES FOLDER "Tools") | ||
140 | diff --git a/Tools/MiniBrowser/qt/CMakeLists.txt b/Tools/MiniBrowser/qt/CMakeLists.txt | ||
141 | index 68dd13c..b491df2 100644 | ||
142 | --- a/Tools/MiniBrowser/qt/CMakeLists.txt | ||
143 | +++ b/Tools/MiniBrowser/qt/CMakeLists.txt | ||
144 | @@ -64,7 +64,7 @@ if (ENABLE_TEST_SUPPORT) | ||
145 | endif () | ||
146 | |||
147 | include_directories(${MiniBrowser_INCLUDE_DIRECTORIES}) | ||
148 | -include_directories(SYSTEM ${MiniBrowser_SYSTEM_INCLUDE_DIRECTORIES}) | ||
149 | +include_directories(${MiniBrowser_SYSTEM_INCLUDE_DIRECTORIES}) | ||
150 | add_executable(MiniBrowser ${MiniBrowser_SOURCES}) | ||
151 | target_link_libraries(MiniBrowser ${MiniBrowser_LIBRARIES}) | ||
152 | set_target_properties(MiniBrowser PROPERTIES FOLDER "Tools" AUTOMOC ON) | ||
153 | diff --git a/Tools/QtTestBrowser/CMakeLists.txt b/Tools/QtTestBrowser/CMakeLists.txt | ||
154 | index ccd8e0f..18de9f2 100644 | ||
155 | --- a/Tools/QtTestBrowser/CMakeLists.txt | ||
156 | +++ b/Tools/QtTestBrowser/CMakeLists.txt | ||
157 | @@ -62,7 +62,7 @@ if (ENABLE_TEST_SUPPORT) | ||
158 | endif () | ||
159 | |||
160 | include_directories(${QtTestBrowser_INCLUDE_DIRECTORIES}) | ||
161 | -include_directories(SYSTEM ${QtTestBrowser_SYSTEM_INCLUDE_DIRECTORIES}) | ||
162 | +include_directories(${QtTestBrowser_SYSTEM_INCLUDE_DIRECTORIES}) | ||
163 | add_executable(QtTestBrowser ${QtTestBrowser_SOURCES}) | ||
164 | target_link_libraries(QtTestBrowser ${QtTestBrowser_LIBRARIES}) | ||
165 | set_target_properties(QtTestBrowser PROPERTIES FOLDER "Tools" AUTOMOC ON) | ||
166 | diff --git a/Tools/TestWebKitAPI/PlatformQt.cmake b/Tools/TestWebKitAPI/PlatformQt.cmake | ||
167 | index c054c66..046a91a 100644 | ||
168 | --- a/Tools/TestWebKitAPI/PlatformQt.cmake | ||
169 | +++ b/Tools/TestWebKitAPI/PlatformQt.cmake | ||
170 | @@ -7,7 +7,7 @@ include_directories( | ||
171 | ${TESTWEBKITAPI_DIR} | ||
172 | ) | ||
173 | |||
174 | -include_directories(SYSTEM | ||
175 | +include_directories( | ||
176 | ${ICU_INCLUDE_DIRS} | ||
177 | ${Qt5Gui_INCLUDE_DIRS} | ||
178 | ) | ||
179 | diff --git a/Tools/TestWebKitAPI/Tests/WebKit2Gtk/CMakeLists.txt b/Tools/TestWebKitAPI/Tests/WebKit2Gtk/CMakeLists.txt | ||
180 | index b0b4739..434e4ca 100644 | ||
181 | --- a/Tools/TestWebKitAPI/Tests/WebKit2Gtk/CMakeLists.txt | ||
182 | +++ b/Tools/TestWebKitAPI/Tests/WebKit2Gtk/CMakeLists.txt | ||
183 | @@ -23,7 +23,7 @@ include_directories( | ||
184 | ${TOOLS_DIR}/TestWebKitAPI/gtk/WebKit2Gtk | ||
185 | ) | ||
186 | |||
187 | -include_directories(SYSTEM | ||
188 | +include_directories( | ||
189 | ${ATSPI_INCLUDE_DIRS} | ||
190 | ${GLIB_INCLUDE_DIRS} | ||
191 | ${GSTREAMER_INCLUDE_DIRS} | ||
192 | diff --git a/Tools/WebKitTestRunner/CMakeLists.txt b/Tools/WebKitTestRunner/CMakeLists.txt | ||
193 | index 6355772..6279658 100644 | ||
194 | --- a/Tools/WebKitTestRunner/CMakeLists.txt | ||
195 | +++ b/Tools/WebKitTestRunner/CMakeLists.txt | ||
196 | @@ -116,7 +116,7 @@ GENERATE_BINDINGS(WebKitTestRunner_SOURCES | ||
197 | WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS() | ||
198 | |||
199 | include_directories(${WebKitTestRunner_INCLUDE_DIRECTORIES}) | ||
200 | -include_directories(SYSTEM ${WebKitTestRunner_SYSTEM_INCLUDE_DIRECTORIES}) | ||
201 | +include_directories(${WebKitTestRunner_SYSTEM_INCLUDE_DIRECTORIES}) | ||
202 | |||
203 | add_library(TestRunnerInjectedBundle SHARED ${WebKitTestRunnerInjectedBundle_SOURCES}) | ||
204 | target_link_libraries(TestRunnerInjectedBundle ${WebKitTestRunner_LIBRARIES}) | ||
205 | -- | ||
206 | 1.9.1 | ||
207 | |||