Skip to content

Commit 01c4576

Browse files
committed
Merge #9469: [depends] Qt 5.7.1
bb077fa [depends] Remove OBJCXX define from config.site.in (fanquake) c37ea4d depends: fix qt translations build (Cory Fields) 2b32dea depends: use new variable layout for qt sdk (Cory Fields) 02fcb29 [depends] Qt 5.7.1 (fanquake)
2 parents 4105cb6 + bb077fa commit 01c4576

File tree

8 files changed

+39
-66
lines changed

8 files changed

+39
-66
lines changed

depends/config.site.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ LDFLAGS="-L$depends_prefix/lib $LDFLAGS"
6363
CC="@CC@"
6464
CXX="@CXX@"
6565
OBJC="${CC}"
66-
OBJCXX="${CXX}"
6766
CCACHE=$depends_prefix/native/bin/ccache
6867
PYTHONPATH=$depends_prefix/native/lib/python/dist-packages:$PYTHONPATH
6968

depends/packages/qt.mk

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
PACKAGE=qt
2-
$(package)_version=5.6.1
3-
$(package)_download_path=http://download.qt.io/official_releases/qt/5.6/$($(package)_version)/submodules
2+
$(package)_version=5.7.1
3+
$(package)_download_path=http://download.qt.io/official_releases/qt/5.7/$($(package)_version)/submodules
44
$(package)_suffix=opensource-src-$($(package)_version).tar.gz
55
$(package)_file_name=qtbase-$($(package)_suffix)
6-
$(package)_sha256_hash=0ac67cf8d66d52b995f96c31c4b48117a1afb3db99eaa93e20ccd8f7f55f7fde
6+
$(package)_sha256_hash=95f83e532d23b3ddbde7973f380ecae1bac13230340557276f75f2e37984e410
77
$(package)_dependencies=openssl
88
$(package)_linux_dependencies=freetype fontconfig libxcb libX11 xproto libXext
99
$(package)_build_subdir=qtbase
1010
$(package)_qt_libs=corelib network widgets gui plugins testlib
11-
$(package)_patches=mac-qmake.conf configure-xcoderun.patch mingw-uuidof.patch pidlist_absolute.patch fix-xcb-include-order.patch fix_qt_pkgconfig.patch
11+
$(package)_patches=mac-qmake.conf mingw-uuidof.patch pidlist_absolute.patch fix-xcb-include-order.patch fix_qt_pkgconfig.patch
1212

1313
$(package)_qttranslations_file_name=qttranslations-$($(package)_suffix)
14-
$(package)_qttranslations_sha256_hash=dcc1534d247babca1840cb6d0a000671801a341ea352d0535474f86adadaf028
14+
$(package)_qttranslations_sha256_hash=3a15aebd523c6d89fb97b2d3df866c94149653a26d27a00aac9b6d3020bc5a1d
1515

1616

1717
$(package)_qttools_file_name=qttools-$($(package)_suffix)
18-
$(package)_qttools_sha256_hash=e0f845de28c31230dfa428f0190ccb3b91d1fc02481b1f064698ae4ef8376aa1
18+
$(package)_qttools_sha256_hash=22d67de915cb8cd93e16fdd38fa006224ad9170bd217c2be1e53045a8dd02f0f
1919

2020
$(package)_extra_sources = $($(package)_qttranslations_file_name)
2121
$(package)_extra_sources += $($(package)_qttools_file_name)
2222

2323
define $(package)_set_vars
2424
$(package)_config_opts_release = -release
25-
$(package)_config_opts_debug = -debug
25+
$(package)_config_opts_debug = -debug
2626
$(package)_config_opts += -bindir $(build_prefix)/bin
27-
$(package)_config_opts += -c++11
27+
$(package)_config_opts += -c++std c++11
2828
$(package)_config_opts += -confirm-license
2929
$(package)_config_opts += -dbus-runtime
3030
$(package)_config_opts += -hostprefix $(build_prefix)
@@ -46,7 +46,6 @@ $(package)_config_opts += -no-linuxfb
4646
$(package)_config_opts += -no-libudev
4747
$(package)_config_opts += -no-mitshm
4848
$(package)_config_opts += -no-mtdev
49-
$(package)_config_opts += -no-nis
5049
$(package)_config_opts += -no-pulseaudio
5150
$(package)_config_opts += -no-openvg
5251
$(package)_config_opts += -no-reduce-relocations
@@ -125,6 +124,7 @@ endef
125124

126125
define $(package)_preprocess_cmds
127126
sed -i.old "s|updateqm.commands = \$$$$\$$$$LRELEASE|updateqm.commands = $($(package)_extract_dir)/qttools/bin/lrelease|" qttranslations/translations/translations.pro && \
127+
sed -i.old "/updateqm.depends =/d" qttranslations/translations/translations.pro && \
128128
sed -i.old "s/src_plugins.depends = src_sql src_xml src_network/src_plugins.depends = src_xml src_network/" qtbase/src/src.pro && \
129129
sed -i.old "s|X11/extensions/XIproto.h|X11/X.h|" qtbase/src/plugins/platforms/xcb/qxcbxsettings.cpp && \
130130
sed -i.old 's/if \[ "$$$$XPLATFORM_MAC" = "yes" \]; then xspecvals=$$$$(macSDKify/if \[ "$$$$BUILD_ON_MAC" = "yes" \]; then xspecvals=$$$$(macSDKify/' qtbase/configure && \
@@ -134,7 +134,6 @@ define $(package)_preprocess_cmds
134134
cp -f qtbase/mkspecs/macx-clang/Info.plist.app qtbase/mkspecs/macx-clang-linux/ &&\
135135
cp -f qtbase/mkspecs/macx-clang/qplatformdefs.h qtbase/mkspecs/macx-clang-linux/ &&\
136136
cp -f $($(package)_patch_dir)/mac-qmake.conf qtbase/mkspecs/macx-clang-linux/qmake.conf && \
137-
patch -p1 < $($(package)_patch_dir)/configure-xcoderun.patch && \
138137
patch -p1 < $($(package)_patch_dir)/mingw-uuidof.patch && \
139138
patch -p1 < $($(package)_patch_dir)/pidlist_absolute.patch && \
140139
patch -p1 < $($(package)_patch_dir)/fix-xcb-include-order.patch && \

depends/patches/qt/configure-xcoderun.patch

Lines changed: 0 additions & 25 deletions
This file was deleted.

depends/patches/qt/fix-xcb-include-order.patch

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
--- old/qtbase/src/plugins/platforms/xcb/xcb_qpa_lib.pro 2015-03-17 02:06:42.705930685 +0000
2-
+++ new/qtbase/src/plugins/platforms/xcb/xcb_qpa_lib.pro 2015-03-17 02:08:41.281926351 +0000
3-
@@ -74,8 +74,6 @@
1+
--- old/qtbase/src/plugins/platforms/xcb/xcb_qpa_lib.pro 2015-03-17
2+
+++ new/qtbase/src/plugins/platforms/xcb/xcb_qpa_lib.pro 2015-03-17
3+
@@ -76,8 +76,6 @@
44

55
DEFINES += $$QMAKE_DEFINES_XCB
66
LIBS += $$QMAKE_LIBS_XCB
@@ -9,18 +9,18 @@
99

1010
CONFIG += qpa/genericunixfontdatabase
1111

12-
@@ -87,7 +85,8 @@
12+
@@ -89,7 +87,8 @@
1313
contains(QT_CONFIG, xcb-qt) {
1414
DEFINES += XCB_USE_RENDER
1515
XCB_DIR = ../../../3rdparty/xcb
1616
- INCLUDEPATH += $$XCB_DIR/include $$XCB_DIR/sysinclude
1717
+ QMAKE_CFLAGS += -I$$XCB_DIR/include -I$$XCB_DIR/sysinclude $$QMAKE_CFLAGS_XCB
1818
+ QMAKE_CXXFLAGS += -I$$XCB_DIR/include -I$$XCB_DIR/sysinclude $$QMAKE_CFLAGS_XCB
19-
LIBS += -lxcb -L$$OUT_PWD/xcb-static -lxcb-static
19+
LIBS += -lxcb -L$$MODULE_BASE_OUTDIR/lib -lxcb-static$$qtPlatformTargetSuffix()
2020
} else {
2121
LIBS += -lxcb -lxcb-image -lxcb-icccm -lxcb-sync -lxcb-xfixes -lxcb-shm -lxcb-randr -lxcb-shape -lxcb-keysyms -lxcb-xinerama
22-
--- old/qtbase/src/plugins/platforms/xcb/xcb-static/xcb-static.pro 2015-03-17 02:07:04.641929383 +0000
23-
+++ new/qtbase/src/plugins/platforms/xcb/xcb-static/xcb-static.pro 2015-03-17 02:10:15.485922059 +0000
22+
--- old/qtbase/src/plugins/platforms/xcb/xcb-static/xcb-static.pro
23+
+++ new/qtbase/src/plugins/platforms/xcb/xcb-static/xcb-static.pro
2424
@@ -9,7 +9,8 @@
2525

2626
XCB_DIR = ../../../../3rdparty/xcb
@@ -31,8 +31,8 @@
3131

3232
QMAKE_CXXFLAGS += $$QMAKE_CFLAGS_XCB
3333
QMAKE_CFLAGS += $$QMAKE_CFLAGS_XCB
34-
--- old/qtbase/src/plugins/platforms/xcb/xcb-plugin.pro 2015-07-24 16:02:59.530038830 -0400
35-
+++ new/qtbase/src/plugins/platforms/xcb/xcb-plugin.pro 2015-07-24 16:01:22.106037459 -0400
34+
--- old/qtbase/src/plugins/platforms/xcb/xcb-plugin.pro
35+
+++ new/qtbase/src/plugins/platforms/xcb/xcb-plugin.pro
3636
@@ -6,6 +6,13 @@
3737
qxcbmain.cpp
3838
OTHER_FILES += xcb.json README

depends/patches/qt/fix_qt_pkgconfig.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
--- old/qtbase/mkspecs/features/qt_module.prf 2016-03-17 02:06:42.705930685 +0000
2-
+++ new/qtbase/mkspecs/features/qt_module.prf 2016-03-17 02:06:42.705930685 +0000
3-
@@ -244,7 +244,7 @@
1+
--- old/qtbase/mkspecs/features/qt_module.prf
2+
+++ new/qtbase/mkspecs/features/qt_module.prf
3+
@@ -245,7 +245,7 @@
44
load(qt_targets)
55

66
# this builds on top of qt_common

depends/patches/qt/mac-qmake.conf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ QMAKE_XCODE_VERSION=4.3
1111
QMAKE_XCODE_DEVELOPER_PATH=/Developer
1212
QMAKE_MACOSX_DEPLOYMENT_TARGET = $${MAC_MIN_VERSION}
1313
QMAKE_MAC_SDK=macosx
14-
QMAKE_MAC_SDK.macosx.path = $${MAC_SDK_PATH}
14+
QMAKE_MAC_SDK.macosx.Path = $${MAC_SDK_PATH}
1515
QMAKE_MAC_SDK.macosx.platform_name = macosx
16-
QMAKE_MAC_SDK.macosx.version = $${MAC_SDK_VERSION}
17-
QMAKE_MAC_SDK.macosx.platform_path = /phony
16+
QMAKE_MAC_SDK.macosx.SDKVersion = $${MAC_SDK_VERSION}
17+
QMAKE_MAC_SDK.macosx.PlatformPath = /phony
1818
QMAKE_CFLAGS += -target $${MAC_TARGET}
1919
QMAKE_OBJECTIVE_CFLAGS += $$QMAKE_CFLAGS
2020
QMAKE_CXXFLAGS += $$QMAKE_CFLAGS

depends/patches/qt/mingw-uuidof.patch

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
--- old/qtbase/src/plugins/platforms/windows/qwindowscontext.cpp 2015-06-20 17:40:20.956781548 -0400
2-
+++ new/qtbase/src/plugins/platforms/windows/qwindowscontext.cpp 2015-06-20 17:29:32.052772416 -0400
3-
@@ -69,7 +69,7 @@
1+
--- old/qtbase/src/plugins/platforms/windows/qwindowscontext.cpp
2+
+++ new/qtbase/src/plugins/platforms/windows/qwindowscontext.cpp
3+
@@ -77,7 +77,7 @@
44
#include <stdlib.h>
55
#include <stdio.h>
66
#include <windowsx.h>
@@ -9,25 +9,25 @@
99
# include <comdef.h>
1010
#endif
1111

12-
@@ -762,7 +762,7 @@
13-
HWND_MESSAGE, NULL, (HINSTANCE)GetModuleHandle(0), NULL);
12+
@@ -814,7 +814,7 @@
13+
HWND_MESSAGE, NULL, static_cast<HINSTANCE>(GetModuleHandle(0)), NULL);
1414
}
1515

1616
-#ifndef Q_OS_WINCE
1717
+#if !defined(Q_OS_WINCE) && (!defined(USE___UUIDOF) || (defined(USE___UUIDOF) && USE___UUIDOF == 1))
1818
// Re-engineered from the inline function _com_error::ErrorMessage().
1919
// We cannot use it directly since it uses swprintf_s(), which is not
2020
// present in the MSVCRT.DLL found on Windows XP (QTBUG-35617).
21-
@@ -781,7 +781,7 @@
22-
return QStringLiteral("IDispatch error #") + QString::number(wCode);
23-
return QStringLiteral("Unknown error 0x0") + QString::number(comError.Error(), 16);
21+
@@ -833,7 +833,7 @@
22+
return QString::asprintf("IDispatch error #%u", uint(wCode));
23+
return QString::asprintf("Unknown error 0x0%x", uint(comError.Error()));
2424
}
2525
-#endif // !Q_OS_WINCE
2626
+#endif // !defined(Q_OS_WINCE) && (!defined(USE___UUIDOF) || (defined(USE___UUIDOF) && USE___UUIDOF == 1))
2727

2828
/*!
2929
\brief Common COM error strings.
30-
@@ -846,12 +846,12 @@
30+
@@ -901,12 +901,12 @@
3131
default:
3232
break;
3333
}

depends/patches/qt/pidlist_absolute.patch

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
diff -dur old/qtbase/src/plugins/platforms/windows/qwindowscontext.h new/qtbase/src/plugins/platforms/windows/qwindowscontext.h
2-
--- old/qtbase/src/plugins/platforms/windows/qwindowscontext.h 2015-06-29 22:04:40.000000000 +0200
3-
+++ new/qtbase/src/plugins/platforms/windows/qwindowscontext.h 2015-11-01 12:55:59.751234846 +0100
4-
@@ -124,10 +124,18 @@
2+
--- old/qtbase/src/plugins/platforms/windows/qwindowscontext.h
3+
+++ new/qtbase/src/plugins/platforms/windows/qwindowscontext.h
4+
@@ -136,10 +136,18 @@
55
inline void init();
66

77
typedef HRESULT (WINAPI *SHCreateItemFromParsingName)(PCWSTR, IBindCtx *, const GUID&, void **);
@@ -21,9 +21,9 @@ diff -dur old/qtbase/src/plugins/platforms/windows/qwindowscontext.h new/qtbase/
2121
SHCreateItemFromParsingName sHCreateItemFromParsingName;
2222
SHGetKnownFolderIDList sHGetKnownFolderIDList;
2323
diff -dur old/qtbase/src/plugins/platforms/windows/qwindowsdialoghelpers.cpp new/qtbase/src/plugins/platforms/windows/qwindowsdialoghelpers.cpp
24-
--- old/qtbase/src/plugins/platforms/windows/qwindowsdialoghelpers.cpp 2015-06-29 22:04:40.000000000 +0200
25-
+++ new/qtbase/src/plugins/platforms/windows/qwindowsdialoghelpers.cpp 2015-11-01 13:41:09.503149772 +0100
26-
@@ -1008,7 +1008,11 @@
24+
--- old/qtbase/src/plugins/platforms/windows/qwindowsdialoghelpers.cpp
25+
+++ new/qtbase/src/plugins/platforms/windows/qwindowsdialoghelpers.cpp
26+
@@ -1016,7 +1016,11 @@
2727
qWarning() << __FUNCTION__ << ": Invalid CLSID: " << url.path();
2828
return Q_NULLPTR;
2929
}

0 commit comments

Comments
 (0)