Fix FTBFS with Qt 5.7
This commit is contained in:
parent
251726037d
commit
3f932e1ad9
@ -113,6 +113,8 @@ Patch11: qtwebengine-opensource-src-5.9.0-skia-neon.patch
|
||||
Patch12: qtwebengine-opensource-src-5.9.0-webrtc-neon-detect.patch
|
||||
# Force verbose output from the GN bootstrap process
|
||||
Patch21: qtwebengine-opensource-src-5.9.0-gn-bootstrap-verbose.patch
|
||||
# Fix FTBFS with Qt 5.7
|
||||
Patch22: qtwebengine-opensource-src-5.9.2-qt57.patch
|
||||
|
||||
%if 0%{?fedora} && 0%{?fedora} < 25
|
||||
# work around missing qt5_qtwebengine_arches macro on F24
|
||||
@ -358,6 +360,7 @@ BuildArch: noarch
|
||||
%patch11 -p1 -b .skia-neon
|
||||
%patch12 -p1 -b .webrtc-neon-detect
|
||||
%patch21 -p1 -b .gn-bootstrap-verbose
|
||||
%patch22 -p1 -b .qt57
|
||||
# fix // in #include in content/renderer/gpu to avoid debugedit failure
|
||||
sed -i -e 's!gpu//!gpu/!g' \
|
||||
src/3rdparty/chromium/content/renderer/gpu/compositor_forwarding_message_filter.cc
|
||||
@ -570,6 +573,7 @@ done
|
||||
- Drop system-re2 patch (patching the no longer used unbundle/re2.gn), the
|
||||
QtWebEngine re2/BUILD.gn is already correct
|
||||
- Explicitly force use_system_re2, the autodetection does not work on F25
|
||||
- Fix FTBFS with Qt 5.7
|
||||
|
||||
* Tue Oct 10 2017 Rex Dieter <rdieter@fedoraproject.org> - 5.9.2-1
|
||||
- Update to 5.9.2
|
||||
|
19
qtwebengine-opensource-src-5.9.2-qt57.patch
Normal file
19
qtwebengine-opensource-src-5.9.2-qt57.patch
Normal file
@ -0,0 +1,19 @@
|
||||
diff -ur qtwebengine-opensource-src-5.9.2/src/core/web_contents_adapter.cpp qtwebengine-opensource-src-5.9.2-qt57/src/core/web_contents_adapter.cpp
|
||||
--- qtwebengine-opensource-src-5.9.2/src/core/web_contents_adapter.cpp 2017-10-03 11:06:38.000000000 +0200
|
||||
+++ qtwebengine-opensource-src-5.9.2-qt57/src/core/web_contents_adapter.cpp 2017-11-16 17:17:51.072511997 +0100
|
||||
@@ -1265,7 +1265,15 @@
|
||||
}
|
||||
|
||||
const QString &fileName = toQt(dropData.file_description_filename);
|
||||
+#if (QT_VERSION >= QT_VERSION_CHECK(5, 9, 0))
|
||||
const QString &filePath = d->dndTmpDir->filePath(fileName);
|
||||
+#else
|
||||
+ QString filePath = d->dndTmpDir->path();
|
||||
+ if (!filePath.isEmpty()) {
|
||||
+ filePath += QLatin1Char('/');
|
||||
+ filePath += fileName;
|
||||
+ }
|
||||
+#endif
|
||||
QFile file(filePath);
|
||||
if (!file.open(QIODevice::WriteOnly)) {
|
||||
qWarning("Cannot write temporary file %s.", qUtf8Printable(filePath));
|
Loading…
Reference in New Issue
Block a user