annotate src/qtbase-1-fixes.patch @ 4735:4cea16af20b4

qt5: update to v5.11.0, add support pcre2 * src/qtbase.mk: update version, checksum * src/qtimageformats.mk: update checksum * src/qtisvg.mk: update checksum * src/qttools.mk: update checksum * src/qtbase-1-fixes.patch, src/qttools-1.patch: update patch from mxe.cc * src/pcre2.mk: new file * index.html: add pcre2 * src/sqlite.mk: enable column metadata
author John Donoghue
date Fri, 22 Jun 2018 08:28:05 -0400
parents 2c34ec679fb3
children 206f76f1b59c
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
4735
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
5 From ec06a0993dd7ceae8002852646dc1826111a1882 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
4735
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
8 Subject: [PATCH 1/8] 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
4735
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
17 index 27f4c277d6..84ff9ae0ef 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 --
4735
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
37 2.17.0
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
4735
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
40 From dad81660aaf6e7bd011b3541e9ab9a0a27120973 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
4735
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
43 Subject: [PATCH 2/8] 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
4735
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
68 index f8729de947..e7f6e3651d 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
4735
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
71 @@ -264,6 +264,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
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
80 !internal_module:!lib_bundle:if(unix|mingw) {
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
81 CONFIG += create_pc
4735
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
82 @@ -274,12 +278,12 @@ load(qt_targets)
4222
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
83 QMAKE_PKGCONFIG_LIBDIR = $$[QT_INSTALL_LIBS/raw]
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
84 QMAKE_PKGCONFIG_INCDIR = $$[QT_INSTALL_HEADERS/raw]
4735
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
85 QMAKE_PKGCONFIG_CFLAGS = -D$$MODULE_DEFINE -I${includedir}/$$MODULE_INCNAME
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
4735
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
99 @@ -313,5 +317,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 --
4735
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
106 2.17.0
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
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
109 From 69740750f7905baa5c66e48bad22e39b5e07ca72 Mon Sep 17 00:00:00 2001
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
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
112 Subject: [PATCH 3/8] reenable fontconfig for win32 (MXE-specific)
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
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
117 index 219385a108..eee90b5b20 100644
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
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
120 @@ -973,7 +973,7 @@
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 --
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
147 2.17.0
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
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
150 From e28fcb374385d6dfb29a6c99bea283a4fbc894a7 Mon Sep 17 00:00:00 2001
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, 29 Jan 2017 16:22:03 +0100
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
153 Subject: [PATCH 4/8] fix treatment of SYBASE_LIBS
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: I4c9914cf7ef9d91feb0718a57f2551c1eeed47e0
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/plugins/sqldrivers/configure.pri b/src/plugins/sqldrivers/configure.pri
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
158 index b69b51b679..d37423adbd 100644
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
159 --- a/src/plugins/sqldrivers/configure.pri
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
160 +++ b/src/plugins/sqldrivers/configure.pri
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
161 @@ -92,7 +92,7 @@ defineTest(qtConfLibrary_sybaseEnv) {
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
162 libs += "-L$${sybase}/lib"
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
163 libs += $$getenv(SYBASE_LIBS)
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
164 !isEmpty(libs) {
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
165 - $${1}.libs = "$$val_escape(libs)"
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
166 + $${1}.libs = $$libs
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
167 export($${1}.libs)
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 return(true)
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
170 --
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
171 2.17.0
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
172
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 From ef350f7199772d5846a1f6f9214e8d562183f393 Mon Sep 17 00:00:00 2001
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
175 From: Mark Brand <mabrand@mabrand.nl>
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
176 Date: Sun, 11 Jun 2017 00:27:41 +0200
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
177 Subject: [PATCH 5/8] use pkg-config for harfbuzz
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
178
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
179 Change-Id: Ia65cbb90fd180f1bc10ce077a9a8323a48e51421
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
180
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
181 diff --git a/src/gui/configure.json b/src/gui/configure.json
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
182 index eee90b5b20..6c6745b1dd 100644
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
183 --- a/src/gui/configure.json
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
184 +++ b/src/gui/configure.json
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
185 @@ -215,7 +215,8 @@
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 },
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
188 "sources": [
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
189 - "-lharfbuzz"
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
190 + { "type": "pkgConfig", "args": "harfbuzz" },
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
191 + "-lharfbuzz"
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 },
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
194 "imf": {
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
195 --
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
196 2.17.0
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
197
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 From 65353949d9a7f6bbdcd5ddabf09ac3e5357eac1d Mon Sep 17 00:00:00 2001
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
200 From: Mark Brand <mabrand@mabrand.nl>
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
201 Date: Thu, 23 Nov 2017 11:28:47 +0200
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
202 Subject: [PATCH 6/8] disable qt_random_cpu for i686-w64-mingw32
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
203
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
204 Workaround for gcc internal error compiling for mingw32:
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
205 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
206 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
207 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
208 }
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
209 ^
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
210
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
211 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
212 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
213 (program cc1plus)
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
214
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
215 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
216
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
217 Change-Id: Ia1c902e7b147bdda2b8d7904b40a3b968b8d0369
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
218
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
219 diff --git a/src/corelib/global/qrandom.cpp b/src/corelib/global/qrandom.cpp
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
220 index ebf9864b15..9a31933975 100644
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
221 --- a/src/corelib/global/qrandom.cpp
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
222 +++ b/src/corelib/global/qrandom.cpp
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
223 @@ -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
224
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
225 QT_BEGIN_NAMESPACE
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
226
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
227 -#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
228 +#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
229 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
230
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
231 # ifdef Q_PROCESSOR_X86_64
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
232 --
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
233 2.17.0
4310
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
234
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
235
4735
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
236 From 84cf457b4bc814fb82b08e0917b09397bbf9ec1a Mon Sep 17 00:00:00 2001
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
237 From: Thiago Macieira <thiago.macieira@intel.com>
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
238 Date: Tue, 8 May 2018 21:57:07 -0700
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
239 Subject: [PATCH 7/8] Fix build with GCC 8: memset/memcpy/memmove of
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
240 non-trivials
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
241 MIME-Version: 1.0
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
242 Content-Type: text/plain; charset=UTF-8
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
243 Content-Transfer-Encoding: 8bit
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
244
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
245 qarraydataops.h:73:17: error: ‘void* memset(void*, int, size_t)’ clearing an object of non-trivial type
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
246 ‘struct TCBPoint’; use assignment or value-initialization instead [-Werror=class-memaccess]
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
247
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
248 Change-Id: I5d0ee9389a794d80983efffd152ce10eb557341f
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
249 Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
4310
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
250
4735
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
251 diff --git a/src/corelib/tools/qarraydataops.h b/src/corelib/tools/qarraydataops.h
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
252 index d0f83d2b6a..7e1b43f9b1 100644
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
253 --- a/src/corelib/tools/qarraydataops.h
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
254 +++ b/src/corelib/tools/qarraydataops.h
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
255 @@ -65,7 +65,7 @@ struct QPodArrayOps
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
256 Q_ASSERT(newSize > uint(this->size));
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
257 Q_ASSERT(newSize <= this->alloc);
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
258
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
259 - ::memset(this->end(), 0, (newSize - this->size) * sizeof(T));
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
260 + ::memset(static_cast<void *>(this->end()), 0, (newSize - this->size) * sizeof(T));
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
261 this->size = int(newSize);
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
262 }
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
263
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
264 @@ -121,8 +121,9 @@ struct QPodArrayOps
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
265 Q_ASSERT(e <= where || b > this->end()); // No overlap
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
266 Q_ASSERT(size_t(e - b) <= this->alloc - uint(this->size));
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
267
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
268 - ::memmove(where + (e - b), where, (static_cast<const T*>(this->end()) - where) * sizeof(T));
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
269 - ::memcpy(where, b, (e - b) * sizeof(T));
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
270 + ::memmove(static_cast<void *>(where + (e - b)), static_cast<void *>(where),
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
271 + (static_cast<const T*>(this->end()) - where) * sizeof(T));
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
272 + ::memcpy(static_cast<void *>(where), static_cast<const void *>(b), (e - b) * sizeof(T));
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
273 this->size += (e - b);
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
274 }
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
275
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
276 @@ -133,7 +134,8 @@ struct QPodArrayOps
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
277 Q_ASSERT(b >= this->begin() && b < this->end());
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
278 Q_ASSERT(e > this->begin() && e < this->end());
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
279
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
280 - ::memmove(b, e, (static_cast<T *>(this->end()) - e) * sizeof(T));
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
281 + ::memmove(static_cast<void *>(b), static_cast<void *>(e),
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
282 + (static_cast<T *>(this->end()) - e) * sizeof(T));
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
283 this->size -= (e - b);
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
284 }
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
285 };
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
286 --
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
287 2.17.0
4310
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
288
4735
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
289
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
290 From 77082d00f719fc72daa85ad2a59f3f395201ba6a Mon Sep 17 00:00:00 2001
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
291 From: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
292 Date: Mon, 9 Apr 2018 18:34:18 +0200
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
293 Subject: [PATCH 8/8] qmake: fix look-up of relative files from .depend_command
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
294 in shadow builds
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
295
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
296 the dependency paths are fixified against the output directory, so we
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
297 must resolve them accordingly.
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
298
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
299 Change-Id: Id92750aad358153bd2db5daca3194c54eda58dbb
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
300 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
301 (cherry picked from commit 75587c8030ff8057b90200cb20cff1e4549c00b5)
4310
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
302
4735
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
303 diff --git a/qmake/generators/makefile.cpp b/qmake/generators/makefile.cpp
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
304 index 82573347b6..99aecdd8ce 100644
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
305 --- a/qmake/generators/makefile.cpp
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
306 +++ b/qmake/generators/makefile.cpp
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
307 @@ -1953,11 +1953,12 @@ MakefileGenerator::writeExtraCompilerTargets(QTextStream &t)
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
308 }
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
309 QT_PCLOSE(proc);
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
310 if(!indeps.isEmpty()) {
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
311 + QDir outDir(Option::output_dir);
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
312 // ### This is basically fubar. Add 'lines' flag to CONFIG?
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
313 QStringList dep_cmd_deps = indeps.replace('\n', ' ').simplified().split(' ');
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
314 for(int i = 0; i < dep_cmd_deps.count(); ++i) {
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
315 QString &file = dep_cmd_deps[i];
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
316 - QString absFile = QDir(Option::output_dir).absoluteFilePath(file);
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
317 + QString absFile = outDir.absoluteFilePath(file);
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
318 if (exists(absFile)) {
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
319 file = absFile;
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
320 } else {
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
321 @@ -1965,8 +1966,9 @@ MakefileGenerator::writeExtraCompilerTargets(QTextStream &t)
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
322 QList<QMakeLocalFileName> depdirs = QMakeSourceFileInfo::dependencyPaths();
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
323 for (QList<QMakeLocalFileName>::Iterator dit = depdirs.begin();
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
324 dit != depdirs.end(); ++dit) {
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
325 - if (exists((*dit).local() + '/' + file)) {
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
326 - localFile = (*dit).local() + '/' + file;
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
327 + QString lf = outDir.absoluteFilePath((*dit).local() + '/' + file);
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
328 + if (exists(lf)) {
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
329 + localFile = lf;
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
330 break;
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
331 }
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
332 }
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
333 @@ -2045,11 +2047,12 @@ MakefileGenerator::writeExtraCompilerTargets(QTextStream &t)
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
334 }
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
335 QT_PCLOSE(proc);
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
336 if(!indeps.isEmpty()) {
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
337 + QDir outDir(Option::output_dir);
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
338 // ### This is basically fubar. Add 'lines' flag to CONFIG?
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
339 QStringList dep_cmd_deps = indeps.replace('\n', ' ').simplified().split(' ');
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
340 for(int i = 0; i < dep_cmd_deps.count(); ++i) {
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
341 QString &file = dep_cmd_deps[i];
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
342 - QString absFile = QDir(Option::output_dir).absoluteFilePath(file);
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
343 + QString absFile = outDir.absoluteFilePath(file);
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
344 if (exists(absFile)) {
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
345 file = absFile;
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
346 } else {
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
347 @@ -2057,8 +2060,9 @@ MakefileGenerator::writeExtraCompilerTargets(QTextStream &t)
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
348 QList<QMakeLocalFileName> depdirs = QMakeSourceFileInfo::dependencyPaths();
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
349 for (QList<QMakeLocalFileName>::Iterator dit = depdirs.begin();
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
350 dit != depdirs.end(); ++dit) {
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
351 - if (exists((*dit).local() + '/' + file)) {
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
352 - localFile = (*dit).local() + '/' + file;
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
353 + QString lf = outDir.absoluteFilePath((*dit).local() + '/' + file);
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
354 + if (exists(lf)) {
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
355 + localFile = lf;
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
356 break;
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
357 }
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
358 }
4310
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
359 --
4735
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
360 2.17.0
4310
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
361
4735
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
362 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
363 --- 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
364 +++ 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
365 @@ -46,7 +46,7 @@
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
366 QMAKE_CFLAGS_SHLIB += $$QMAKE_CFLAGS_PIC
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
367 QMAKE_CFLAGS_STATIC_LIB += $$QMAKE_CFLAGS_PIC
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
368 QMAKE_CFLAGS_APP += $$QMAKE_CFLAGS_PIC
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
369 -QMAKE_CFLAGS_ISYSTEM = -isystem
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
370 +QMAKE_CFLAGS_ISYSTEM = -I
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
371 QMAKE_CFLAGS_YACC += -Wno-unused -Wno-parentheses
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
372 QMAKE_CFLAGS_HIDESYMS += -fvisibility=hidden
4cea16af20b4 qt5: update to v5.11.0, add support pcre2
John Donoghue
parents: 4310
diff changeset
373 QMAKE_CFLAGS_EXCEPTIONS_OFF += -fno-exceptions