diff options
author | Mark Brand <mabrand@mabrand.nl> | 2017-01-29 13:07:45 (GMT) |
---|---|---|
committer | Mark Brand <mabrand@mabrand.nl> | 2017-01-30 21:15:01 (GMT) |
commit | 0f724ee4b398bab31567a2ad3a54a56ac2911c0f (patch) | |
tree | f754cbc2f8efbd9335b52d6b24141421b06c85ce /src/qtbase-1-fixes.patch | |
parent | a0f9e615026ac22d3c9c4e842b728d474b0eecc0 (diff) | |
download | mxe-0f724ee4b398bab31567a2ad3a54a56ac2911c0f.zip mxe-0f724ee4b398bab31567a2ad3a54a56ac2911c0f.tar.gz mxe-0f724ee4b398bab31567a2ad3a54a56ac2911c0f.tar.bz2 |
upgrade qt5 modules to 5.8.0
Diffstat (limited to 'src/qtbase-1-fixes.patch')
-rw-r--r-- | src/qtbase-1-fixes.patch | 241 |
1 files changed, 91 insertions, 150 deletions
diff --git a/src/qtbase-1-fixes.patch b/src/qtbase-1-fixes.patch index 31ff2ab..c3f14ea 100644 --- a/src/qtbase-1-fixes.patch +++ b/src/qtbase-1-fixes.patch @@ -1,132 +1,9 @@ This file is part of MXE. See LICENSE.md for licensing information. -From 62efa18a61560a7757acffbd4ac6ca7b153155cc Mon Sep 17 00:00:00 2001 -From: Mark Brand <mabrand@mabrand.nl> -Date: Thu, 6 Aug 2015 23:35:08 +0200 -Subject: [PATCH 1/8] fix qwindows plugin linking with system-freetype (MXE - specific) - -Change-Id: I8783e3ab2d19011b083dd3c471107298a17293c4 - -diff --git a/src/3rdparty/freetype_dependency.pri b/src/3rdparty/freetype_dependency.pri -index 39280de..e152b0d 100644 ---- a/src/3rdparty/freetype_dependency.pri -+++ b/src/3rdparty/freetype_dependency.pri -@@ -4,4 +4,5 @@ contains(QT_CONFIG, freetype) { - } else:contains(QT_CONFIG, system-freetype) { - # pull in the proper freetype2 include directory - include($$QT_SOURCE_TREE/config.tests/unix/freetype/freetype.pri) -+ win32:shared:LIBS_PRIVATE += -lfreetype - } --- -2.9.3 - - -From 5a15e0374758b7786204d98b66f49b4fd3daea79 Mon Sep 17 00:00:00 2001 -From: Mark Brand <mabrand@mabrand.nl> -Date: Sat, 21 Jun 2014 13:12:49 +0200 -Subject: [PATCH 2/8] use pkg-config for harfbuzz (MXE specific) - -Change-Id: Id4e4c37d68b63c9f480d72a561d95d4d2a5ded50 - -diff --git a/config.tests/unix/harfbuzz/harfbuzz.pro b/config.tests/unix/harfbuzz/harfbuzz.pro -index 32edd6e..a7f2c28 100644 ---- a/config.tests/unix/harfbuzz/harfbuzz.pro -+++ b/config.tests/unix/harfbuzz/harfbuzz.pro -@@ -1,3 +1,4 @@ - SOURCES = harfbuzz.cpp - CONFIG -= qt dylib --LIBS += -lharfbuzz -+CONFIG += link_pkgconfig -+PKGCONFIG += harfbuzz -diff --git a/src/3rdparty/harfbuzz_dependency.pri b/src/3rdparty/harfbuzz_dependency.pri -index 7443368..c24e684 100644 ---- a/src/3rdparty/harfbuzz_dependency.pri -+++ b/src/3rdparty/harfbuzz_dependency.pri -@@ -2,5 +2,6 @@ contains(QT_CONFIG, harfbuzz) { - INCLUDEPATH += $$PWD/harfbuzz-ng/include - LIBS_PRIVATE += -L$$QT_BUILD_TREE/lib -lqtharfbuzzng$$qtPlatformTargetSuffix() - } else:contains(QT_CONFIG, system-harfbuzz) { -- LIBS_PRIVATE += -lharfbuzz -+ CONFIG += link_pkgconfig -+ PKGCONFIG += harfbuzz - } --- -2.9.3 - - -From bc002ee2a8418c7afcba362d155ba1a591bc3d1a Mon Sep 17 00:00:00 2001 -From: Mark Brand <mabrand@mabrand.nl> -Date: Mon, 8 Dec 2014 14:15:12 +0100 -Subject: [PATCH 3/8] fix oci config test on windows - -Change-Id: If1ce2241682259ca495b0ba68bf18410f8548922 - -diff --git a/config.tests/unix/oci/oci.pro b/config.tests/unix/oci/oci.pro -index 3ffda1d..39b6f3759 100644 ---- a/config.tests/unix/oci/oci.pro -+++ b/config.tests/unix/oci/oci.pro -@@ -1,3 +1,3 @@ - SOURCES = oci.cpp - CONFIG -= qt dylib --LIBS += -lclntsh -+!win32:LIBS += -lclntsh --- -2.9.3 - - -From 92d2ae7b6eb175b4f15e5f0f231a9c29824d6f57 Mon Sep 17 00:00:00 2001 -From: Mark Brand <mabrand@mabrand.nl> -Date: Thu, 6 Aug 2015 13:24:56 +0200 -Subject: [PATCH 4/8] configure: don't set QT_NO_SYSTEMSEMAPHORE for Windows - -Change-Id: I53c110ef40e3d14cc49fa23aa5d294611cac2ffa - -diff --git a/configure b/configure -index ba94d08..50e6dfb 100755 ---- a/configure -+++ b/configure -@@ -4677,7 +4677,7 @@ fi - [ "$XPLATFORM_ANDROID" != "no" ] && QMakeVar add styles "android" - - # check IPC support --if ! compileTest unix/ipc_sysv "ipc_sysv" ; then -+if [ "$XPLATFORM_MINGW" = "no" ] && ! compileTest unix/ipc_sysv "ipc_sysv" ; then - # SYSV IPC is not supported - check POSIX IPC - if compileTest unix/ipc_posix "ipc_posix" ; then - QCONFIG_FLAGS="$QCONFIG_FLAGS QT_POSIX_IPC" --- -2.9.3 - - -From f0054e940467a64dffc0c3cc070233fdf2848d43 Mon Sep 17 00:00:00 2001 -From: Mark Brand <mabrand@mabrand.nl> -Date: Tue, 6 Oct 2015 09:53:20 +0200 -Subject: [PATCH 5/8] fix building mysql driver under mingw - -Change-Id: I9c4e821d5b3a6919566c6b684cb4916827feb6a9 - -diff --git a/src/sql/drivers/mysql/qsql_mysql.pri b/src/sql/drivers/mysql/qsql_mysql.pri -index 3cfb614..8b7063f 100644 ---- a/src/sql/drivers/mysql/qsql_mysql.pri -+++ b/src/sql/drivers/mysql/qsql_mysql.pri -@@ -4,7 +4,7 @@ SOURCES += $$PWD/qsql_mysql.cpp - QMAKE_CXXFLAGS *= $$QT_CFLAGS_MYSQL - LIBS += $$QT_LFLAGS_MYSQL - --unix { -+if (unix|mingw) { - isEmpty(QT_LFLAGS_MYSQL) { - !contains(LIBS, .*mysqlclient.*):!contains(LIBS, .*mysqld.*) { - use_libmysqlclient_r:LIBS += -lmysqlclient_r --- -2.9.3 - - -From 26229596fbb711bc222c831eca3a9e5b62c7acc6 Mon Sep 17 00:00:00 2001 +From 12eed60ff166200c12d203d0daaa6c58c41df0ea Mon Sep 17 00:00:00 2001 From: Ray Donnelly <mingw.android@gmail.com> Date: Wed, 26 Aug 2015 12:45:43 +0100 -Subject: [PATCH 6/8] cmake: Rearrange STATIC vs INTERFACE targets +Subject: [PATCH 1/5] cmake: Rearrange STATIC vs INTERFACE targets Otherwise we attempt to add_library(Qt5::UiPlugin STATIC IMPORTED) for header-only modules when building Qt5 statically. @@ -159,10 +36,10 @@ index d2358ca..6b1dc95 100644 2.9.3 -From 59fd7fdff5bf0cda3c7a11982ee96f50d8eddec1 Mon Sep 17 00:00:00 2001 +From 9d8bca4d8c1d312cca4b161c93a091147dd7aa37 Mon Sep 17 00:00:00 2001 From: Tony Theodore <tonyt@logyst.com> Date: Sat, 16 Jul 2016 20:31:07 +1000 -Subject: [PATCH 7/8] Fix pkgconfig file and library naming +Subject: [PATCH 2/5] Fix pkgconfig file and library naming See: https://codereview.qt-project.org/#/c/165394/ https://bugreports.qt.io/browse/QTBUG-30898 @@ -187,10 +64,10 @@ Task-number: 30898 Change-Id: If75336ec7d21a7ec0cb6d245fe87c64afcb5a644 diff --git a/mkspecs/features/qt_module.prf b/mkspecs/features/qt_module.prf -index d9011f5..1993a7f 100644 +index 31d6285..8e24520 100644 --- a/mkspecs/features/qt_module.prf +++ b/mkspecs/features/qt_module.prf -@@ -244,6 +244,10 @@ load(qt_installs) +@@ -248,6 +248,10 @@ load(qt_installs) load(qt_targets) @@ -201,7 +78,7 @@ index d9011f5..1993a7f 100644 # this builds on top of qt_common !internal_module:!lib_bundle:if(unix|mingw) { CONFIG += create_pc -@@ -254,12 +258,12 @@ load(qt_targets) +@@ -258,12 +262,12 @@ load(qt_targets) QMAKE_PKGCONFIG_LIBDIR = $$[QT_INSTALL_LIBS/raw] QMAKE_PKGCONFIG_INCDIR = $$[QT_INSTALL_HEADERS/raw] QMAKE_PKGCONFIG_CFLAGS = -I${includedir}/$$MODULE_INCNAME @@ -218,7 +95,7 @@ index d9011f5..1993a7f 100644 pclib_replace.match = $$lib_replace.match !isEmpty(lib_replace.replace): \ pclib_replace.replace = $$QMAKE_PKGCONFIG_LIBDIR -@@ -293,5 +297,3 @@ win32 { +@@ -297,5 +301,3 @@ win32 { # On other platforms, Qt's own compilation goes needs to compile the Qt 5.0 API DEFINES *= QT_DISABLE_DEPRECATED_BEFORE=0x050000 } @@ -228,26 +105,90 @@ index d9011f5..1993a7f 100644 2.9.3 -From a2ed2c9fe74b549cb163f89a56df6eec3af553fa Mon Sep 17 00:00:00 2001 +From e4da2904bcab29d15ad137508390bec0595c0e72 Mon Sep 17 00:00:00 2001 +From: Mark Brand <mabrand@mabrand.nl> +Date: Sun, 29 Jan 2017 13:02:16 +0100 +Subject: [PATCH 3/5] reenable fontconfig for win32 (MXE-specific) + +Change-Id: I05b036366bd402e43309742412bcf8ca91fe125f + +diff --git a/src/gui/configure.json b/src/gui/configure.json +index 1f50116..dd94429 100644 +--- a/src/gui/configure.json ++++ b/src/gui/configure.json +@@ -471,7 +471,7 @@ + }, + "fontconfig": { + "label": "Fontconfig", +- "condition": "!config.win32 && !config.darwin && features.system-freetype && libs.fontconfig", ++ "condition": "!config.darwin && features.system-freetype && libs.fontconfig", + "output": [ "privateFeature", "feature" ] + }, + "gbm": { +diff --git a/src/plugins/platforms/minimal/qminimalintegration.cpp b/src/plugins/platforms/minimal/qminimalintegration.cpp +index 03c7250..7d0ffbd 100644 +--- a/src/plugins/platforms/minimal/qminimalintegration.cpp ++++ b/src/plugins/platforms/minimal/qminimalintegration.cpp +@@ -120,7 +120,11 @@ QPlatformFontDatabase *QMinimalIntegration::fontDatabase() const + if (m_options & EnableFonts) { + #if QT_CONFIG(fontconfig) + if (!m_fontDatabase) ++#ifdef Q_OS_WIN ++ m_fontDatabase = new QBasicFontDatabase; ++#else + m_fontDatabase = new QGenericUnixFontDatabase; ++#endif + #else + return QPlatformIntegration::fontDatabase(); + #endif +-- +2.9.3 + + +From db3c6f5fecb9b93f3553273576954d363d0630bc Mon Sep 17 00:00:00 2001 +From: Mark Brand <mabrand@mabrand.nl> +Date: Sun, 29 Jan 2017 14:00:06 +0100 +Subject: [PATCH 4/5] fix included file name case + +Change-Id: I026787441aa43128aec001cfe1a7bc8d37799826 + +diff --git a/src/plugins/platforms/windows/qwin10helpers.cpp b/src/plugins/platforms/windows/qwin10helpers.cpp +index 977bbfd..12cccd1 100644 +--- a/src/plugins/platforms/windows/qwin10helpers.cpp ++++ b/src/plugins/platforms/windows/qwin10helpers.cpp +@@ -57,7 +57,7 @@ + #endif + + #ifdef HAS_UI_VIEW_SETTINGS_INTEROP +-# include <UIViewSettingsInterop.h> ++# include <uiviewsettingsinterop.h> + #endif + + #ifndef HAS_UI_VIEW_SETTINGS_INTEROP +-- +2.9.3 + + +From ddf845adb0080016c2f69fcfa7e23edf70e5151a Mon Sep 17 00:00:00 2001 From: Mark Brand <mabrand@mabrand.nl> -Date: Thu, 15 Dec 2016 17:20:56 +0100 -Subject: [PATCH 8/8] fix mysql config test - -The config test already gets link flags which should include -the library. Blindly adding it to the end of the list can break -static linking. - -Change-Id: Ief71c4ad64cbbb1b141b0ef5549f42a36bbd125b - -diff --git a/config.tests/unix/mysql/mysql.pro b/config.tests/unix/mysql/mysql.pro -index 06d1880..ca6d6aa 100644 ---- a/config.tests/unix/mysql/mysql.pro -+++ b/config.tests/unix/mysql/mysql.pro -@@ -1,3 +1,3 @@ - SOURCES = mysql.cpp - CONFIG -= qt dylib --LIBS += -lmysqlclient -+LIBS *= -lmysqlclient +Date: Sun, 29 Jan 2017 16:22:03 +0100 +Subject: [PATCH 5/5] fix treatment of SYBASE_LIBS + +Change-Id: I4c9914cf7ef9d91feb0718a57f2551c1eeed47e0 + +diff --git a/src/sql/configure.pri b/src/sql/configure.pri +index 1d8847b..229b6a1 100644 +--- a/src/sql/configure.pri ++++ b/src/sql/configure.pri +@@ -76,7 +76,7 @@ defineTest(qtConfLibrary_sybaseEnv) { + libs += "-L$${sybase}/lib" + libs += $$getenv(SYBASE_LIBS) + !isEmpty(libs) { +- $${1}.libs = "$$val_escape(libs)" ++ $${1}.libs = $$libs + export($${1}.libs) + } + return(true) -- 2.9.3 |