annotate src/qtbase-1-fixes.patch @ 4900:22937c7fe60d

Update QT5 5.12.0 * src/qtbase-1-fixes.patch: update patch * src/qtbase.mk: update version, checksum * src/qtimageformats-1.patch: update patch * src/qtimageformats.mk: update checksum * src/qtsvg.mk: update checksum * src/qttools.mk: update checksum
author John Donoghue
date Fri, 14 Dec 2018 08:25:27 -0500
parents 206f76f1b59c
children ddd66d48a646
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
4735
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
3 Contains ad hoc patches for cross building.
4222
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
4
4900
22937c7fe60d Update QT5 5.12.0
John Donoghue
parents: 4801
diff changeset
5 From f1dbf592c625533c9f8a704e4d5f12f3111a1fb3 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
6 From: Ray Donnelly <mingw.android@gmail.com>
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
7 Date: Wed, 26 Aug 2015 12:45:43 +0100
4900
22937c7fe60d Update QT5 5.12.0
John Donoghue
parents: 4801
diff changeset
8 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
9
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
10 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
11 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
12
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
13 Source: https://git.io/vzWJz
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
14 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
15
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
16 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
17 index 3ed6dd5889..cc5bc9dc16 100644
4222
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
18 --- 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
19 +++ 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
20 @@ -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
21 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
22 !!ENDIF
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
23
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
24 +!!IF equals(TEMPLATE, aux)
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
25 + 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
26 +!!ELSE
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
27 !!IF !isEmpty(CMAKE_STATIC_TYPE)
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
28 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
29 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
30 -!!ELSE
4222
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
31 -!!IF equals(TEMPLATE, aux)
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
32 - 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
33 !!ELSE
4222
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
34 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
35 !!ENDIF
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
36 --
4900
22937c7fe60d Update QT5 5.12.0
John Donoghue
parents: 4801
diff changeset
37 2.19.1
4222
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
38
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
39
4900
22937c7fe60d Update QT5 5.12.0
John Donoghue
parents: 4801
diff changeset
40 From b822f7ff799d10297b0b36408e7cfa44fd416118 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
41 From: Tony Theodore <tonyt@logyst.com>
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
42 Date: Sat, 16 Jul 2016 20:31:07 +1000
4900
22937c7fe60d Update QT5 5.12.0
John Donoghue
parents: 4801
diff changeset
43 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
44
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
45 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
46 https://bugreports.qt.io/browse/QTBUG-30898
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
47
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
48 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
49 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
50 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
51 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
52
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
53 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
54
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
55 -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
56 -release -force-debug-info: normal as above
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
57 -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
58 -debug-and-release: creates both
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
59 -default: creates both (default link: debug)
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
60
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
61 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
62 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
63
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
64 Task-number: 30898
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
65 Change-Id: If75336ec7d21a7ec0cb6d245fe87c64afcb5a644
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
66
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
67 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
68 index 51b5bde67a..faba17aedd 100644
4222
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
69 --- a/mkspecs/features/qt_module.prf
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
70 +++ b/mkspecs/features/qt_module.prf
4900
22937c7fe60d Update QT5 5.12.0
John Donoghue
parents: 4801
diff changeset
71 @@ -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
72
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
73 load(qt_targets)
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
74
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
75 +# 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
76 +# conventions consistent with *prl files
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
77 +TARGET = $$qt5LibraryTarget($$TARGET$$QT_LIBINFIX)
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
78 +
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
79 # this builds on top of qt_common
4900
22937c7fe60d Update QT5 5.12.0
John Donoghue
parents: 4801
diff changeset
80 !internal_module:if(unix|mingw) {
4222
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
81 CONFIG += create_pc
4900
22937c7fe60d Update QT5 5.12.0
John Donoghue
parents: 4801
diff changeset
82 @@ -278,12 +282,12 @@ load(qt_targets)
22937c7fe60d Update QT5 5.12.0
John Donoghue
parents: 4801
diff changeset
83 QMAKE_PKGCONFIG_INCDIR = $$[QT_INSTALL_HEADERS/raw]
22937c7fe60d Update QT5 5.12.0
John Donoghue
parents: 4801
diff changeset
84 QMAKE_PKGCONFIG_CFLAGS = -D$$MODULE_DEFINE -I${includedir}/$$MODULE_INCNAME
22937c7fe60d Update QT5 5.12.0
John Donoghue
parents: 4801
diff changeset
85 }
4222
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$$QT_MAJOR_VERSION ")
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
87 - 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
88 + 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
89 + QMAKE_PKGCONFIG_FILE = $$TARGET
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
90 for(i, MODULE_DEPENDS): \
4735
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
91 - 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
92 + 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
93 isEmpty(QMAKE_PKGCONFIG_DESCRIPTION): \
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
94 - 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
95 + 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
96 pclib_replace.match = $$lib_replace.match
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
97 !isEmpty(lib_replace.replace): \
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
98 pclib_replace.replace = $$QMAKE_PKGCONFIG_LIBDIR
4900
22937c7fe60d Update QT5 5.12.0
John Donoghue
parents: 4801
diff changeset
99 @@ -317,5 +321,3 @@ win32 {
4222
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
100 # 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
101 DEFINES *= QT_DISABLE_DEPRECATED_BEFORE=0x050000
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
102 }
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
103 -
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
104 -TARGET = $$qt5LibraryTarget($$TARGET$$QT_LIBINFIX) # Do this towards the end
4310
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
105 --
4900
22937c7fe60d Update QT5 5.12.0
John Donoghue
parents: 4801
diff changeset
106 2.19.1
4735
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
107
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
108
4900
22937c7fe60d Update QT5 5.12.0
John Donoghue
parents: 4801
diff changeset
109 From 7773e45dfdd82ede2415a6818332de3e36e7c824 Mon Sep 17 00:00:00 2001
4735
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
110 From: Mark Brand <mabrand@mabrand.nl>
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
111 Date: Sun, 29 Jan 2017 13:02:16 +0100
4900
22937c7fe60d Update QT5 5.12.0
John Donoghue
parents: 4801
diff changeset
112 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
113
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
114 Change-Id: I05b036366bd402e43309742412bcf8ca91fe125f
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
115
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
116 diff --git a/src/gui/configure.json b/src/gui/configure.json
4900
22937c7fe60d Update QT5 5.12.0
John Donoghue
parents: 4801
diff changeset
117 index 0332631ec8..e2d87e77b3 100644
4735
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
118 --- a/src/gui/configure.json
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
119 +++ b/src/gui/configure.json
4900
22937c7fe60d Update QT5 5.12.0
John Donoghue
parents: 4801
diff changeset
120 @@ -1003,7 +1003,7 @@
4735
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
121 "fontconfig": {
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
122 "label": "Fontconfig",
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
123 "autoDetect": "!config.darwin",
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
124 - "condition": "!config.win32 && features.system-freetype && libs.fontconfig",
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
125 + "condition": "features.system-freetype && libs.fontconfig",
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
126 "output": [ "privateFeature", "feature" ]
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
127 },
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
128 "gbm": {
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
129 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
130 index 0c04608fca..a26e02fbf3 100644
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
131 --- a/src/plugins/platforms/minimal/qminimalintegration.cpp
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
132 +++ b/src/plugins/platforms/minimal/qminimalintegration.cpp
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
133 @@ -161,7 +161,11 @@ QPlatformFontDatabase *QMinimalIntegration::fontDatabase() const
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
134
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
135 if (!m_fontDatabase) {
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
136 #if QT_CONFIG(fontconfig)
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
137 - m_fontDatabase = new QGenericUnixFontDatabase;
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
138 +#ifdef Q_OS_WIN
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
139 + m_fontDatabase = new QFreeTypeFontDatabase;
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
140 +#else
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
141 + m_fontDatabase = new QGenericUnixFontDatabase;
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
142 +#endif
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
143 #else
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
144 m_fontDatabase = QPlatformIntegration::fontDatabase();
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
145 #endif
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
146 --
4900
22937c7fe60d Update QT5 5.12.0
John Donoghue
parents: 4801
diff changeset
147 2.19.1
4735
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
148
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
149
4900
22937c7fe60d Update QT5 5.12.0
John Donoghue
parents: 4801
diff changeset
150 From 82d08b0378db0a30007ca5ee965ffa034859af5c Mon Sep 17 00:00:00 2001
4735
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
151 From: Mark Brand <mabrand@mabrand.nl>
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
152 Date: Sun, 11 Jun 2017 00:27:41 +0200
4900
22937c7fe60d Update QT5 5.12.0
John Donoghue
parents: 4801
diff changeset
153 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
154
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
155 Change-Id: Ia65cbb90fd180f1bc10ce077a9a8323a48e51421
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
156
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
157 diff --git a/src/gui/configure.json b/src/gui/configure.json
4900
22937c7fe60d Update QT5 5.12.0
John Donoghue
parents: 4801
diff changeset
158 index e2d87e77b3..4eb37aea17 100644
4735
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
159 --- a/src/gui/configure.json
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
160 +++ b/src/gui/configure.json
4900
22937c7fe60d Update QT5 5.12.0
John Donoghue
parents: 4801
diff changeset
161 @@ -224,7 +224,8 @@
4735
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
162 ]
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
163 },
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
164 "sources": [
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 + { "type": "pkgConfig", "args": "harfbuzz" },
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
167 + "-lharfbuzz"
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
168 ]
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
169 },
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
170 "imf": {
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
171 --
4900
22937c7fe60d Update QT5 5.12.0
John Donoghue
parents: 4801
diff changeset
172 2.19.1
4735
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
173
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
174
4900
22937c7fe60d Update QT5 5.12.0
John Donoghue
parents: 4801
diff changeset
175 From 8ea9633854e8c2ad94df00866a9b9e3a4394d161 Mon Sep 17 00:00:00 2001
4735
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
176 From: Mark Brand <mabrand@mabrand.nl>
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
177 Date: Thu, 23 Nov 2017 11:28:47 +0200
4900
22937c7fe60d Update QT5 5.12.0
John Donoghue
parents: 4801
diff changeset
178 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
179
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
180 Workaround for gcc internal error compiling for mingw32:
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
181 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
182 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
183 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
184 }
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
185 ^
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
186
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
187 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
188 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
189 (program cc1plus)
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 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
192
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
193 Change-Id: Ia1c902e7b147bdda2b8d7904b40a3b968b8d0369
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
194
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
195 diff --git a/src/corelib/global/qrandom.cpp b/src/corelib/global/qrandom.cpp
4900
22937c7fe60d Update QT5 5.12.0
John Donoghue
parents: 4801
diff changeset
196 index 23e5e499b2..d0b3159c0d 100644
4735
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
197 --- a/src/corelib/global/qrandom.cpp
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
198 +++ b/src/corelib/global/qrandom.cpp
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
199 @@ -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
200
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
201 QT_BEGIN_NAMESPACE
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
202
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
203 -#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
204 +#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
205 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
206
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
207 # ifdef Q_PROCESSOR_X86_64
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
208 --
4900
22937c7fe60d Update QT5 5.12.0
John Donoghue
parents: 4801
diff changeset
209 2.19.1
4310
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
210
4735
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
211 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
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
212 --- qtbase-everywhere-src-5.11.0.orig/mkspecs/common/gcc-base.conf 2018-06-12 07:47:54.488874295 -0400
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
213 +++ qtbase-everywhere-src-5.11.0/mkspecs/common/gcc-base.conf 2018-06-12 07:48:46.550096817 -0400
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
214 @@ -46,7 +46,7 @@
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
215 QMAKE_CFLAGS_SHLIB += $$QMAKE_CFLAGS_PIC
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
216 QMAKE_CFLAGS_STATIC_LIB += $$QMAKE_CFLAGS_PIC
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
217 QMAKE_CFLAGS_APP += $$QMAKE_CFLAGS_PIC
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
218 -QMAKE_CFLAGS_ISYSTEM = -isystem
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
219 +QMAKE_CFLAGS_ISYSTEM = -I
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
220 QMAKE_CFLAGS_YACC += -Wno-unused -Wno-parentheses
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
221 QMAKE_CFLAGS_HIDESYMS += -fvisibility=hidden
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
222 QMAKE_CFLAGS_EXCEPTIONS_OFF += -fno-exceptions