annotate src/qtbase-1-fixes.patch @ 4956:ddd66d48a646

Update qt5 to v5.12.1 * src/qtbase-1-fixes.patch: updated patch * src/qtbase.mk: update version, checksum * src/qtimageformats.mk: update checksum * src/qtsvg.mk: update checksum * src/qttools-1.patch: update patch * src/qttools.mk: update checksum
author John D
date Sun, 10 Feb 2019 07:58:15 -0500
parents 22937c7fe60d
children 9d35f8eb1e76
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4310
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
1 This file is part of MXE. See LICENSE.md for licensing information.
4222
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
2
4956
ddd66d48a646 Update qt5 to v5.12.1
John D
parents: 4900
diff changeset
3 From 01ee0b5260f1b83a81769132c0705aab05481641 Mon Sep 17 00:00:00 2001
4222
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
4 From: Ray Donnelly <mingw.android@gmail.com>
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
5 Date: Wed, 26 Aug 2015 12:45:43 +0100
4900
22937c7fe60d Update QT5 5.12.0
John Donoghue
parents: 4801
diff changeset
6 Subject: [PATCH 1/5] cmake: Rearrange STATIC vs INTERFACE targets
4222
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
7
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
8 Otherwise we attempt to add_library(Qt5::UiPlugin STATIC IMPORTED)
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
9 for header-only modules when building Qt5 statically.
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
10
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
11 Source: https://git.io/vzWJz
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
12 See also: https://github.com/mxe/mxe/issues/1185
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
13
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
14 diff --git a/mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in b/mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in
4900
22937c7fe60d Update QT5 5.12.0
John Donoghue
parents: 4801
diff changeset
15 index 3ed6dd5889..cc5bc9dc16 100644
4222
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
16 --- a/mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
17 +++ b/mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in
4735
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
18 @@ -214,12 +214,12 @@ if (NOT TARGET Qt5::$${CMAKE_MODULE_NAME})
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
19 list(APPEND _Qt5$${CMAKE_MODULE_NAME}_LIB_DEPENDENCIES \"$${CMAKE_INTERFACE_QT5_MODULE_DEPS}\")
4222
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
20 !!ENDIF
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
21
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
22 +!!IF equals(TEMPLATE, aux)
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
23 + add_library(Qt5::$${CMAKE_MODULE_NAME} INTERFACE IMPORTED)
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
24 +!!ELSE
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
25 !!IF !isEmpty(CMAKE_STATIC_TYPE)
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
26 add_library(Qt5::$${CMAKE_MODULE_NAME} STATIC IMPORTED)
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
27 set_property(TARGET Qt5::$${CMAKE_MODULE_NAME} PROPERTY IMPORTED_LINK_INTERFACE_LANGUAGES "CXX")
4735
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
28 -!!ELSE
4222
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
29 -!!IF equals(TEMPLATE, aux)
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
30 - add_library(Qt5::$${CMAKE_MODULE_NAME} INTERFACE IMPORTED)
4735
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
31 !!ELSE
4222
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
32 add_library(Qt5::$${CMAKE_MODULE_NAME} SHARED IMPORTED)
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
33 !!ENDIF
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
34 --
4900
22937c7fe60d Update QT5 5.12.0
John Donoghue
parents: 4801
diff changeset
35 2.19.1
4222
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
36
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
37
4956
ddd66d48a646 Update qt5 to v5.12.1
John D
parents: 4900
diff changeset
38 From 48723a27c10322a9beff2f84422c757df2639edd Mon Sep 17 00:00:00 2001
4222
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
39 From: Tony Theodore <tonyt@logyst.com>
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
40 Date: Sat, 16 Jul 2016 20:31:07 +1000
4900
22937c7fe60d Update QT5 5.12.0
John Donoghue
parents: 4801
diff changeset
41 Subject: [PATCH 2/5] Fix pkgconfig file and library naming
4222
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
42
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
43 See: https://codereview.qt-project.org/#/c/165394/
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
44 https://bugreports.qt.io/browse/QTBUG-30898
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
45
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
46 Currently, *.pc files are generated with debug suffix `d` in `-release`
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
47 mode and without the suffix in `-debug` or `-debug-and-release`. This
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
48 can be worked around by `CONIFG-=debug_and_release`, however, a more
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
49 predictable and consistent naming approach would be preferable.
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
50
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
51 This change mimics the *.prl file and lib conventions:
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
52
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
53 -release: creates normal *.pc files and lib names
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
54 -release -force-debug-info: normal as above
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
55 -debug: creates *d.pc and *d lib names
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
56 -debug-and-release: creates both
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
57 -default: creates both (default link: debug)
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
58
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
59 and should be unsurprising to users of `pkg-config`. At very least,
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
60 it's deterministic and easily incorporated into build systems.
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
61
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
62 Task-number: 30898
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
63 Change-Id: If75336ec7d21a7ec0cb6d245fe87c64afcb5a644
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
64
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
65 diff --git a/mkspecs/features/qt_module.prf b/mkspecs/features/qt_module.prf
4900
22937c7fe60d Update QT5 5.12.0
John Donoghue
parents: 4801
diff changeset
66 index 51b5bde67a..faba17aedd 100644
4222
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
67 --- a/mkspecs/features/qt_module.prf
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
68 +++ b/mkspecs/features/qt_module.prf
4900
22937c7fe60d Update QT5 5.12.0
John Donoghue
parents: 4801
diff changeset
69 @@ -263,6 +263,10 @@ load(qt_installs)
4222
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
70
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
71 load(qt_targets)
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
72
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
73 +# Set TARGET towards the end but before pkgconfig setup to keep naming
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
74 +# conventions consistent with *prl files
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
75 +TARGET = $$qt5LibraryTarget($$TARGET$$QT_LIBINFIX)
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
76 +
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
77 # this builds on top of qt_common
4900
22937c7fe60d Update QT5 5.12.0
John Donoghue
parents: 4801
diff changeset
78 !internal_module:if(unix|mingw) {
4222
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
79 CONFIG += create_pc
4900
22937c7fe60d Update QT5 5.12.0
John Donoghue
parents: 4801
diff changeset
80 @@ -278,12 +282,12 @@ load(qt_targets)
22937c7fe60d Update QT5 5.12.0
John Donoghue
parents: 4801
diff changeset
81 QMAKE_PKGCONFIG_INCDIR = $$[QT_INSTALL_HEADERS/raw]
22937c7fe60d Update QT5 5.12.0
John Donoghue
parents: 4801
diff changeset
82 QMAKE_PKGCONFIG_CFLAGS = -D$$MODULE_DEFINE -I${includedir}/$$MODULE_INCNAME
22937c7fe60d Update QT5 5.12.0
John Donoghue
parents: 4801
diff changeset
83 }
4222
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
84 - QMAKE_PKGCONFIG_NAME = $$replace(TARGET, ^Qt, "Qt$$QT_MAJOR_VERSION ")
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
85 - QMAKE_PKGCONFIG_FILE = $$replace(TARGET, ^Qt, Qt$$QT_MAJOR_VERSION)
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
86 + QMAKE_PKGCONFIG_NAME = $$replace(TARGET, ^Qt$$QT_MAJOR_VERSION, "Qt$$QT_MAJOR_VERSION ")
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
87 + QMAKE_PKGCONFIG_FILE = $$TARGET
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
88 for(i, MODULE_DEPENDS): \
4735
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
89 - QMAKE_PKGCONFIG_REQUIRES += $$replace(QT.$${i}.name, ^Qt, Qt$$section(QT.$${i}.VERSION, ., 0, 0))
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
90 + QMAKE_PKGCONFIG_REQUIRES += $$replace(QT.$${i}.name, ^Qt, Qt$$section(QT.$${i}.VERSION, ., 0, 0))$$qtPlatformTargetSuffix()
4222
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
91 isEmpty(QMAKE_PKGCONFIG_DESCRIPTION): \
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
92 - QMAKE_PKGCONFIG_DESCRIPTION = $$replace(TARGET, ^Qt, "Qt ") module
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
93 + QMAKE_PKGCONFIG_DESCRIPTION = $$replace(TARGET, ^Qt$$QT_MAJOR_VERSION, "Qt ") module
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
94 pclib_replace.match = $$lib_replace.match
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
95 !isEmpty(lib_replace.replace): \
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
96 pclib_replace.replace = $$QMAKE_PKGCONFIG_LIBDIR
4900
22937c7fe60d Update QT5 5.12.0
John Donoghue
parents: 4801
diff changeset
97 @@ -317,5 +321,3 @@ win32 {
4222
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
98 # On other platforms, Qt's own compilation goes needs to compile the Qt 5.0 API
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
99 DEFINES *= QT_DISABLE_DEPRECATED_BEFORE=0x050000
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
100 }
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
101 -
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
102 -TARGET = $$qt5LibraryTarget($$TARGET$$QT_LIBINFIX) # Do this towards the end
4310
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
103 --
4900
22937c7fe60d Update QT5 5.12.0
John Donoghue
parents: 4801
diff changeset
104 2.19.1
4735
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
105
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
106
4956
ddd66d48a646 Update qt5 to v5.12.1
John D
parents: 4900
diff changeset
107 From 6a7989a069a7aa88e898c4f68bd753b480af0cdf Mon Sep 17 00:00:00 2001
4735
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
108 From: Mark Brand <mabrand@mabrand.nl>
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
109 Date: Sun, 29 Jan 2017 13:02:16 +0100
4900
22937c7fe60d Update QT5 5.12.0
John Donoghue
parents: 4801
diff changeset
110 Subject: [PATCH 3/5] reenable fontconfig for win32 (MXE-specific)
4735
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
111
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
112 Change-Id: I05b036366bd402e43309742412bcf8ca91fe125f
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
113
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
114 diff --git a/src/gui/configure.json b/src/gui/configure.json
4956
ddd66d48a646 Update qt5 to v5.12.1
John D
parents: 4900
diff changeset
115 index 89934c8f1d..456643a22c 100644
4735
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
116 --- a/src/gui/configure.json
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
117 +++ b/src/gui/configure.json
4956
ddd66d48a646 Update qt5 to v5.12.1
John D
parents: 4900
diff changeset
118 @@ -1209,7 +1209,7 @@
4735
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
119 "fontconfig": {
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
120 "label": "Fontconfig",
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
121 "autoDetect": "!config.darwin",
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
122 - "condition": "!config.win32 && features.system-freetype && libs.fontconfig",
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
123 + "condition": "features.system-freetype && libs.fontconfig",
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
124 "output": [ "privateFeature", "feature" ]
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
125 },
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
126 "gbm": {
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
127 diff --git a/src/plugins/platforms/minimal/qminimalintegration.cpp b/src/plugins/platforms/minimal/qminimalintegration.cpp
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
128 index 0c04608fca..a26e02fbf3 100644
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
129 --- a/src/plugins/platforms/minimal/qminimalintegration.cpp
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
130 +++ b/src/plugins/platforms/minimal/qminimalintegration.cpp
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
131 @@ -161,7 +161,11 @@ QPlatformFontDatabase *QMinimalIntegration::fontDatabase() const
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
132
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
133 if (!m_fontDatabase) {
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
134 #if QT_CONFIG(fontconfig)
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
135 - m_fontDatabase = new QGenericUnixFontDatabase;
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
136 +#ifdef Q_OS_WIN
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
137 + m_fontDatabase = new QFreeTypeFontDatabase;
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
138 +#else
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
139 + m_fontDatabase = new QGenericUnixFontDatabase;
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
140 +#endif
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
141 #else
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
142 m_fontDatabase = QPlatformIntegration::fontDatabase();
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
143 #endif
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
144 --
4900
22937c7fe60d Update QT5 5.12.0
John Donoghue
parents: 4801
diff changeset
145 2.19.1
4735
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
146
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
147
4956
ddd66d48a646 Update qt5 to v5.12.1
John D
parents: 4900
diff changeset
148 From dbe7086a860dc8aac17ed5d76bc45d605a19ac02 Mon Sep 17 00:00:00 2001
4735
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
149 From: Mark Brand <mabrand@mabrand.nl>
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
150 Date: Sun, 11 Jun 2017 00:27:41 +0200
4900
22937c7fe60d Update QT5 5.12.0
John Donoghue
parents: 4801
diff changeset
151 Subject: [PATCH 4/5] use pkg-config for harfbuzz
4735
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
152
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
153 Change-Id: Ia65cbb90fd180f1bc10ce077a9a8323a48e51421
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
154
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
155 diff --git a/src/gui/configure.json b/src/gui/configure.json
4956
ddd66d48a646 Update qt5 to v5.12.1
John D
parents: 4900
diff changeset
156 index 456643a22c..f36e15603b 100644
4735
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
157 --- a/src/gui/configure.json
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
158 +++ b/src/gui/configure.json
4956
ddd66d48a646 Update qt5 to v5.12.1
John D
parents: 4900
diff changeset
159 @@ -301,7 +301,8 @@
4735
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
160 },
4956
ddd66d48a646 Update qt5 to v5.12.1
John D
parents: 4900
diff changeset
161 "headers": "harfbuzz/hb.h",
4735
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
162 "sources": [
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
163 - "-lharfbuzz"
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
164 + { "type": "pkgConfig", "args": "harfbuzz" },
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
165 + "-lharfbuzz"
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
166 ]
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
167 },
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
168 "imf": {
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
169 --
4900
22937c7fe60d Update QT5 5.12.0
John Donoghue
parents: 4801
diff changeset
170 2.19.1
4735
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
171
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
172
4956
ddd66d48a646 Update qt5 to v5.12.1
John D
parents: 4900
diff changeset
173 From 2f96f49ffa2e4b42bb35da9304bba971cfcc1475 Mon Sep 17 00:00:00 2001
4735
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
174 From: Mark Brand <mabrand@mabrand.nl>
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
175 Date: Thu, 23 Nov 2017 11:28:47 +0200
4900
22937c7fe60d Update QT5 5.12.0
John Donoghue
parents: 4801
diff changeset
176 Subject: [PATCH 5/5] disable qt_random_cpu for i686-w64-mingw32
4735
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
177
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
178 Workaround for gcc internal error compiling for mingw32:
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
179 global/qrandom.cpp: In function 'qsizetype qt_random_cpu(void*, qsizetype)':
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
180 global/qrandom.cpp:123:1: internal compiler error: in
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
181 ix86_compute_frame_layout, at config/i386/i386.c:10145
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
182 }
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
183 ^
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
184
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
185 global/qrandom.cpp:123:1: internal compiler error: Segmentation fault
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
186 i686-w64-mingw32.static-g++: internal compiler error: Segmentation fault
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
187 (program cc1plus)
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
188
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
189 Based on https://codereview.qt-project.org/#/c/212360/
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
190
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
191 Change-Id: Ia1c902e7b147bdda2b8d7904b40a3b968b8d0369
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
192
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
193 diff --git a/src/corelib/global/qrandom.cpp b/src/corelib/global/qrandom.cpp
4956
ddd66d48a646 Update qt5 to v5.12.1
John D
parents: 4900
diff changeset
194 index 6195c324e7..94902bcfc2 100644
4735
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
195 --- a/src/corelib/global/qrandom.cpp
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
196 +++ b/src/corelib/global/qrandom.cpp
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
197 @@ -90,7 +90,7 @@ DECLSPEC_IMPORT BOOLEAN WINAPI SystemFunction036(PVOID RandomBuffer, ULONG Rando
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
198
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
199 QT_BEGIN_NAMESPACE
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
200
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
201 -#if defined(Q_PROCESSOR_X86) && QT_COMPILER_SUPPORTS_HERE(RDRND)
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
202 +#if defined(Q_PROCESSOR_X86) && !defined(Q_PROCESSOR_X86_32) && QT_COMPILER_SUPPORTS_HERE(RDRND)
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
203 static qsizetype qt_random_cpu(void *buffer, qsizetype count) Q_DECL_NOTHROW;
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
204
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
205 # ifdef Q_PROCESSOR_X86_64
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
206 --
4900
22937c7fe60d Update QT5 5.12.0
John Donoghue
parents: 4801
diff changeset
207 2.19.1
4310
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
208
4735
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
209 diff -ur qtbase-everywhere-src-5.11.0.orig/mkspecs/common/gcc-base.conf qtbase-everywhere-src-5.11.0/mkspecs/common/gcc-base.conf
4956
ddd66d48a646 Update qt5 to v5.12.1
John D
parents: 4900
diff changeset
210 --- qtbase-everywhere-src-5.11.0.orig/mkspecs/common/gcc-base.conf 2018-06-12 07:47:54.488874295 -0400
ddd66d48a646 Update qt5 to v5.12.1
John D
parents: 4900
diff changeset
211 +++ qtbase-everywhere-src-5.11.0/mkspecs/common/gcc-base.conf 2018-06-12 07:48:46.550096817 -0400
4735
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
212 @@ -46,7 +46,7 @@
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
213 QMAKE_CFLAGS_SHLIB += $$QMAKE_CFLAGS_PIC
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
214 QMAKE_CFLAGS_STATIC_LIB += $$QMAKE_CFLAGS_PIC
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
215 QMAKE_CFLAGS_APP += $$QMAKE_CFLAGS_PIC
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
216 -QMAKE_CFLAGS_ISYSTEM = -isystem
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
217 +QMAKE_CFLAGS_ISYSTEM = -I
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
218 QMAKE_CFLAGS_YACC += -Wno-unused -Wno-parentheses
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
219 QMAKE_CFLAGS_HIDESYMS += -fvisibility=hidden
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
220 QMAKE_CFLAGS_EXCEPTIONS_OFF += -fno-exceptions