diff --git a/qt5-qtwebengine.spec b/qt5-qtwebengine.spec index f4a06d2..347af18 100644 --- a/qt5-qtwebengine.spec +++ b/qt5-qtwebengine.spec @@ -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 - 5.9.2-1 - Update to 5.9.2 diff --git a/qtwebengine-opensource-src-5.9.2-qt57.patch b/qtwebengine-opensource-src-5.9.2-qt57.patch new file mode 100644 index 0000000..1c10e4b --- /dev/null +++ b/qtwebengine-opensource-src-5.9.2-qt57.patch @@ -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));