Skip to content

Commit f79a46c

Browse files
authored
Merge pull request #2129 from cyrossignol/fix-ci-qt
build: Update depends Qt recipe to version 5.12.10
2 parents acf6806 + 49d7495 commit f79a46c

31 files changed

+481
-535
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
script-id: native
2323
- name: x86_64 Linux [GOAL install] [GUI] [xenial] [no depends]
2424
script-id: native_old
25-
- name: macOS 10.11 [GOAL deploy] [GUI] [no tests] [focal]
25+
- name: macOS 10.14 [GOAL deploy] [GUI] [no tests] [focal]
2626
script-id: mac
2727
env:
2828
FILE_ENV: ./ci/test/00_setup_env_${{ matrix.script-id }}.sh

build-aux/m4/bitcoin_qt.m4

+113-73
Large diffs are not rendered by default.

ci/test_run_all.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ export LC_ALL=C.UTF-8
99
set -o errexit; source ./ci/test/00_setup_env.sh
1010
set -o errexit; source ./ci/test/03_before_install.sh
1111
set -o errexit; source ./ci/test/04_install.sh
12-
set -o errexit; source ./ci/test/05_before_script.sh &> "/dev/null"
12+
set -o errexit; source ./ci/test/05_before_script.sh
1313
set -o errexit; source ./ci/test/06_script_a.sh
1414
set -o errexit; source ./ci/test/06_script_b.sh

depends/hosts/darwin.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
OSX_MIN_VERSION=10.11
1+
OSX_MIN_VERSION=10.14
22
OSX_SDK_VERSION=10.15.1
33
XCODE_VERSION=11.3.1
44
XCODE_BUILD_ID=11C505

depends/packages/dbus.mk

-28
This file was deleted.

depends/packages/libX11.mk

-28
This file was deleted.

depends/packages/libXext.mk

-27
This file was deleted.

depends/packages/libxkbcommon.mk

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
package=libxkbcommon
2+
$(package)_version=0.8.4
3+
$(package)_download_path=https://xkbcommon.org/download/
4+
$(package)_file_name=$(package)-$($(package)_version).tar.xz
5+
$(package)_sha256_hash=60ddcff932b7fd352752d51a5c4f04f3d0403230a584df9a2e0d5ed87c486c8b
6+
$(package)_dependencies=libxcb
7+
8+
define $(package)_set_vars
9+
$(package)_config_opts = --enable-option-checking --disable-dependency-tracking
10+
$(package)_config_opts += --disable-static --disable-docs
11+
endef
12+
13+
define $(package)_preprocess_cmds
14+
cp -f $(BASEDIR)/config.guess $(BASEDIR)/config.sub build-aux
15+
endef
16+
17+
define $(package)_config_cmds
18+
$($(package)_autoconf)
19+
endef
20+
21+
define $(package)_build_cmds
22+
$(MAKE)
23+
endef
24+
25+
define $(package)_stage_cmds
26+
$(MAKE) DESTDIR=$($(package)_staging_dir) install
27+
endef
28+
29+
define $(package)_postprocess_cmds
30+
rm lib/*.la
31+
endef
32+

depends/packages/packages.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ native_packages := native_ccache
33

44
qt_packages = qrencode
55

6-
qt_linux_packages:=qt expat dbus libxcb xcb_proto libXau xproto freetype fontconfig libX11 xextproto libXext xtrans
6+
qt_linux_packages:=qt expat libxcb xcb_proto libXau xproto freetype fontconfig libxkbcommon
77
qt_darwin_packages=qt
88
qt_mingw32_packages=qt
99

depends/packages/qt.mk

+35-39
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,30 @@
11
PACKAGE=qt
2-
$(package)_version=5.9.8
3-
$(package)_download_path=https://download.qt.io/official_releases/qt/5.9/$($(package)_version)/submodules
4-
$(package)_suffix=opensource-src-$($(package)_version).tar.xz
2+
$(package)_version=5.12.10
3+
$(package)_download_path=https://download.qt.io/official_releases/qt/5.12/$($(package)_version)/submodules
4+
$(package)_suffix=everywhere-src-$($(package)_version).tar.xz
55
$(package)_file_name=qtbase-$($(package)_suffix)
6-
$(package)_sha256_hash=9b9dec1f67df1f94bce2955c5604de992d529dde72050239154c56352da0907d
7-
$(package)_dependencies=zlib
8-
$(package)_linux_dependencies=freetype fontconfig libxcb
6+
$(package)_sha256_hash=8088f174e6d28e779516c083b6087b6a9e3c8322b4bc161fd1b54195e3c86940
7+
$(package)_linux_dependencies=freetype fontconfig libxcb libxkbcommon
98
$(package)_qt_libs=corelib network widgets gui plugins testlib concurrent
10-
$(package)_patches=fix_qt_pkgconfig.patch mac-qmake.conf fix_configure_mac.patch fix_no_printer.patch
11-
$(package)_patches+= fix_rcc_determinism.patch fix_riscv64_arch.patch xkb-default.patch no-xlib.patch
9+
$(package)_patches=fix_qt_pkgconfig.patch mac-qmake.conf fix_no_printer.patch no-xlib.patch
1210
$(package)_patches+= fix_android_qmake_conf.patch fix_android_jni_static.patch dont_hardcode_pwd.patch
13-
$(package)_patches+= freetype_back_compat.patch drop_lrelease_dependency.patch fix_powerpc_libpng.patch
14-
$(package)_patches+= fix_mingw_cross_compile.patch fix_qpainter_non_determinism.patch subdirs.pro
11+
$(package)_patches+= drop_lrelease_dependency.patch no_sdk_version_check.patch
12+
$(package)_patches+= fix_lib_paths.patch fix_android_pch.patch
13+
$(package)_patches+= fix_bigsur_drawing.patch qtbase-moc-ignore-gcc-macro.patch subdirs.pro
1514

1615
$(package)_qttranslations_file_name=qttranslations-$($(package)_suffix)
17-
$(package)_qttranslations_sha256_hash=fb5a47799754af73d3bf501fe513342cfe2fc37f64e80df5533f6110e804220c
16+
$(package)_qttranslations_sha256_hash=e1de58ed108b7e0a138815ea60fd46a2c4e1fc31396a707e5630e92de79c53de
1817

1918
$(package)_qttools_file_name=qttools-$($(package)_suffix)
20-
$(package)_qttools_sha256_hash=a97556eb7b2f30252cdd8a598c396cfce2b2f79d2bae883af6d3b26a2cdcc63c
19+
$(package)_qttools_sha256_hash=b0cfa6e7aac41b7c61fc59acc04843d7a98f9e1840370611751bcfc1834a636c
2120

2221
# Gridcoin uses charts for the voting features:
2322
$(package)_qtcharts_file_name=qtcharts-$($(package)_suffix)
24-
$(package)_qtcharts_sha256_hash=a75f89c0081af9635b50cab335a4871d476b36abc8a11dc4f24724bd3cf42437
23+
$(package)_qtcharts_sha256_hash=ac297e27844d3193205db02a22d68a9af7d79f416891617f9389ba4d29aacd32
2524

2625
# Gridcoin displays SVG images in the GUI:
2726
$(package)_qtsvg_file_name=qtsvg-$($(package)_suffix)
28-
$(package)_qtsvg_sha256_hash=c15d0c4ed93b168a6473749dd70cb04b3cc8e8af584447f2701be4cf2f11c5db
27+
$(package)_qtsvg_sha256_hash=b5fff4cfe158e17cb3f182c521aa6385f56e158b816d6dff1de915213cfa334b
2928

3029
$(package)_extra_sources = $($(package)_qttranslations_file_name)
3130
$(package)_extra_sources += $($(package)_qttools_file_name)
@@ -34,7 +33,9 @@ $(package)_extra_sources += $($(package)_qtsvg)
3433

3534
define $(package)_set_vars
3635
$(package)_config_opts_release = -release
36+
$(package)_config_opts_release += -silent
3737
$(package)_config_opts_debug = -debug
38+
$(package)_config_opts_debug += -optimized-tools
3839
$(package)_config_opts += -bindir $(build_prefix)/bin
3940
$(package)_config_opts += -c++std c++1z
4041
$(package)_config_opts += -confirm-license
@@ -58,7 +59,6 @@ $(package)_config_opts += -no-mtdev
5859
$(package)_config_opts += -no-openssl
5960
$(package)_config_opts += -no-openvg
6061
$(package)_config_opts += -no-reduce-relocations
61-
$(package)_config_opts += -no-qml-debug
6262
$(package)_config_opts += -no-sctp
6363
$(package)_config_opts += -no-securetransport
6464
$(package)_config_opts += -no-sql-db2
@@ -72,19 +72,16 @@ $(package)_config_opts += -no-sql-sqlite
7272
$(package)_config_opts += -no-sql-sqlite2
7373
$(package)_config_opts += -no-system-proxies
7474
$(package)_config_opts += -no-use-gold-linker
75-
$(package)_config_opts += -no-xinput2
7675
$(package)_config_opts += -nomake examples
7776
$(package)_config_opts += -nomake tests
7877
$(package)_config_opts += -opensource
79-
$(package)_config_opts += -optimized-tools
8078
$(package)_config_opts += -pkg-config
8179
$(package)_config_opts += -prefix $(host_prefix)
8280
$(package)_config_opts += -qt-libpng
8381
$(package)_config_opts += -qt-pcre
8482
$(package)_config_opts += -qt-harfbuzz
85-
$(package)_config_opts += -system-zlib
83+
$(package)_config_opts += -qt-zlib
8684
$(package)_config_opts += -static
87-
$(package)_config_opts += -silent
8885
$(package)_config_opts += -v
8986
$(package)_config_opts += -no-feature-bearermanagement
9087
$(package)_config_opts += -no-feature-colordialog
@@ -105,11 +102,10 @@ $(package)_config_opts += -no-feature-printdialog
105102
$(package)_config_opts += -no-feature-printer
106103
$(package)_config_opts += -no-feature-printpreviewdialog
107104
$(package)_config_opts += -no-feature-printpreviewwidget
108-
# Gridcoin uses QRegularExpression:
109-
#$(package)_config_opts += -no-feature-regularexpression
110105
$(package)_config_opts += -no-feature-sessionmanager
111106
$(package)_config_opts += -no-feature-socks5
112107
$(package)_config_opts += -no-feature-sql
108+
$(package)_config_opts += -no-feature-sqlmodel
113109
$(package)_config_opts += -no-feature-statemachine
114110
$(package)_config_opts += -no-feature-syntaxhighlighter
115111
$(package)_config_opts += -no-feature-textbrowser
@@ -129,6 +125,8 @@ $(package)_config_opts += -no-feature-xml
129125
$(package)_config_opts_darwin = -no-dbus
130126
$(package)_config_opts_darwin += -no-opengl
131127
$(package)_config_opts_darwin += -pch
128+
$(package)_config_opts_darwin += -no-feature-corewlan
129+
$(package)_config_opts_darwin += -device-option QMAKE_MACOSX_DEPLOYMENT_TARGET=$(OSX_MIN_VERSION)
132130

133131
ifneq ($(build_os),darwin)
134132
$(package)_config_opts_darwin += -xplatform macx-clang-linux
@@ -143,13 +141,13 @@ endif
143141
# for macOS on Apple Silicon (ARM) see https://bugreports.qt.io/browse/QTBUG-85279
144142
$(package)_config_opts_arm_darwin += -device-option QMAKE_APPLE_DEVICE_ARCHS=arm64
145143

146-
$(package)_config_opts_linux = -qt-xkbcommon-x11
147-
$(package)_config_opts_linux += -qt-xcb
144+
$(package)_config_opts_linux = -qt-xcb
148145
$(package)_config_opts_linux += -no-xcb-xlib
149146
$(package)_config_opts_linux += -no-feature-xlib
150147
$(package)_config_opts_linux += -system-freetype
151148
$(package)_config_opts_linux += -fontconfig
152149
$(package)_config_opts_linux += -no-opengl
150+
$(package)_config_opts_linux += -no-feature-vulkan
153151
$(package)_config_opts_linux += -dbus-runtime
154152
$(package)_config_opts_arm_linux += -platform linux-g++ -xplatform bitcoin-linux-g++
155153
$(package)_config_opts_i686_linux = -xplatform linux-g++-32
@@ -163,6 +161,9 @@ $(package)_config_opts_s390x_linux = -platform linux-g++ -xplatform bitcoin-linu
163161
$(package)_config_opts_mingw32 = -no-opengl
164162
$(package)_config_opts_mingw32 += -no-dbus
165163
$(package)_config_opts_mingw32 += -xplatform win32-g++
164+
$(package)_config_opts_mingw32 += "QMAKE_CFLAGS = '$($(package)_cflags) $($(package)_cppflags)'"
165+
$(package)_config_opts_mingw32 += "QMAKE_CXXFLAGS = '$($(package)_cflags) $($(package)_cppflags)'"
166+
$(package)_config_opts_mingw32 += "QMAKE_LFLAGS = '$($(package)_ldflags)'"
166167
$(package)_config_opts_mingw32 += -device-option CROSS_COMPILE="$(host)-"
167168
$(package)_config_opts_mingw32 += -pch
168169

@@ -181,13 +182,13 @@ $(package)_config_opts_android += -no-fontconfig
181182
$(package)_config_opts_android += -L $(host_prefix)/lib
182183
$(package)_config_opts_android += -I $(host_prefix)/include
183184
$(package)_config_opts_android += -pch
185+
$(package)_config_opts_android += -no-feature-vulkan
184186

185187
$(package)_config_opts_aarch64_android += -android-arch arm64-v8a
186188
$(package)_config_opts_armv7a_android += -android-arch armeabi-v7a
187189
$(package)_config_opts_x86_64_android += -android-arch x86_64
188190
$(package)_config_opts_i686_android += -android-arch i686
189191

190-
$(package)_build_env = QT_RCC_TEST=1
191192
$(package)_build_env += QT_RCC_SOURCE_DATE_OVERRIDE=1
192193
endef
193194

@@ -247,21 +248,18 @@ endef
247248
# CROSS_LIBRARY_PATH. See #15277.
248249
define $(package)_preprocess_cmds
249250
rm -f $(BASEDIR)/.qmake.stash && \
250-
patch -p1 -i $($(package)_patch_dir)/freetype_back_compat.patch && \
251-
patch -p1 -i $($(package)_patch_dir)/fix_powerpc_libpng.patch && \
252251
patch -p1 -i $($(package)_patch_dir)/drop_lrelease_dependency.patch && \
253252
patch -p1 -i $($(package)_patch_dir)/dont_hardcode_pwd.patch && \
254253
patch -p1 -i $($(package)_patch_dir)/fix_qt_pkgconfig.patch && \
255-
patch -p1 -i $($(package)_patch_dir)/fix_configure_mac.patch && \
256254
patch -p1 -i $($(package)_patch_dir)/fix_no_printer.patch && \
257-
patch -p1 -i $($(package)_patch_dir)/fix_rcc_determinism.patch && \
258-
patch -p1 -i $($(package)_patch_dir)/xkb-default.patch && \
259255
patch -p1 -i $($(package)_patch_dir)/fix_android_qmake_conf.patch && \
260256
patch -p1 -i $($(package)_patch_dir)/fix_android_jni_static.patch && \
261-
patch -p1 -i $($(package)_patch_dir)/fix_riscv64_arch.patch && \
257+
patch -p1 -i $($(package)_patch_dir)/fix_android_pch.patch && \
262258
patch -p1 -i $($(package)_patch_dir)/no-xlib.patch && \
263-
patch -p1 -i $($(package)_patch_dir)/fix_mingw_cross_compile.patch && \
264-
patch -p1 -i $($(package)_patch_dir)/fix_qpainter_non_determinism.patch &&\
259+
patch -p1 -i $($(package)_patch_dir)/no_sdk_version_check.patch && \
260+
patch -p1 -i $($(package)_patch_dir)/fix_lib_paths.patch && \
261+
patch -p1 -i $($(package)_patch_dir)/fix_bigsur_drawing.patch && \
262+
patch -p1 -i $($(package)_patch_dir)/qtbase-moc-ignore-gcc-macro.patch && \
265263
cp $($(package)_patch_dir)/subdirs.pro subdirs.pro && \
266264
sed -i.old "s|updateqm.commands = \$$$$\$$$$LRELEASE|updateqm.commands = $($(package)_extract_dir)/qttools/bin/lrelease|" qttranslations/translations/translations.pro && \
267265
mkdir -p qtbase/mkspecs/macx-clang-linux &&\
@@ -272,11 +270,8 @@ define $(package)_preprocess_cmds
272270
echo "!host_build: QMAKE_CFLAGS += $($(package)_cflags) $($(package)_cppflags)" >> qtbase/mkspecs/common/gcc-base.conf && \
273271
echo "!host_build: QMAKE_CXXFLAGS += $($(package)_cxxflags) $($(package)_cppflags)" >> qtbase/mkspecs/common/gcc-base.conf && \
274272
echo "!host_build: QMAKE_LFLAGS += $($(package)_ldflags)" >> qtbase/mkspecs/common/gcc-base.conf && \
275-
sed -i.old "s|QMAKE_CFLAGS += |!host_build: QMAKE_CFLAGS = $($(package)_cflags) $($(package)_cppflags) |" qtbase/mkspecs/win32-g++/qmake.conf && \
276-
sed -i.old "s|QMAKE_CXXFLAGS += |!host_build: QMAKE_CXXFLAGS = $($(package)_cxxflags) $($(package)_cppflags) |" qtbase/mkspecs/win32-g++/qmake.conf && \
277-
sed -i.old "0,/^QMAKE_LFLAGS_/s|^QMAKE_LFLAGS_|!host_build: QMAKE_LFLAGS = $($(package)_ldflags)\n&|" qtbase/mkspecs/win32-g++/qmake.conf && \
278-
sed -i.old "s|QMAKE_CC = clang|QMAKE_CC = $($(package)_cc)|" qtbase/mkspecs/common/clang.conf && \
279-
sed -i.old "s|QMAKE_CXX = clang++|QMAKE_CXX = $($(package)_cxx)|" qtbase/mkspecs/common/clang.conf && \
273+
sed -i.old "s|QMAKE_CC = \$$$$\$$$${CROSS_COMPILE}clang|QMAKE_CC = $($(package)_cc)|" qtbase/mkspecs/common/clang.conf && \
274+
sed -i.old "s|QMAKE_CXX = \$$$$\$$$${CROSS_COMPILE}clang++|QMAKE_CXX = $($(package)_cxx)|" qtbase/mkspecs/common/clang.conf && \
280275
sed -i.old "s/LIBRARY_PATH/(CROSS_)?\0/g" qtbase/mkspecs/features/toolchain.prf
281276
endef
282277

@@ -286,15 +281,14 @@ define $(package)_config_cmds
286281
export PKG_CONFIG_PATH=$(host_prefix)/share/pkgconfig && \
287282
cd qtbase && \
288283
./configure -top-level $($(package)_config_opts) && \
289-
echo "host_build: QT_CONFIG ~= s/system-zlib/zlib" >> mkspecs/qconfig.pri && \
290-
echo "CONFIG += force_bootstrap" >> mkspecs/qconfig.pri && \
291284
cd .. && \
292285
qtbase/bin/qmake -o qtbase/Makefile qtbase/qtbase.pro && \
293286
$(MAKE) -C qtbase sub-src-clean && \
294287
qtbase/bin/qmake -o qttranslations/Makefile qttranslations/qttranslations.pro && \
295288
qtbase/bin/qmake -o qttranslations/translations/Makefile qttranslations/translations/translations.pro && \
296289
qtbase/bin/qmake -o qttools/src/linguist/lrelease/Makefile qttools/src/linguist/lrelease/lrelease.pro && \
297290
qtbase/bin/qmake -o qttools/src/linguist/lupdate/Makefile qttools/src/linguist/lupdate/lupdate.pro && \
291+
qtbase/bin/qmake -o qttools/src/linguist/lconvert/Makefile qttools/src/linguist/lconvert/lconvert.pro && \
298292
qtbase/bin/qmake -o qtcharts/src/charts/Makefile qtcharts/src/charts/charts.pro && \
299293
qtbase/bin/qmake -o qtsvg/src/Makefile qtsvg/src/src.pro
300294
endef
@@ -304,6 +298,7 @@ define $(package)_build_cmds
304298
$(MAKE) -C qtbase/src $(addprefix sub-,$($(package)_qt_libs)) && \
305299
$(MAKE) -C qttools/src/linguist/lrelease && \
306300
$(MAKE) -C qttools/src/linguist/lupdate && \
301+
$(MAKE) -C qttools/src/linguist/lconvert && \
307302
$(MAKE) -C qttranslations && \
308303
$(MAKE) -C qtcharts/src/charts && \
309304
$(MAKE) -C qtsvg/src \
@@ -315,6 +310,7 @@ define $(package)_stage_cmds
315310
$(MAKE) -C qtbase/src INSTALL_ROOT=$($(package)_staging_dir) $(addsuffix -install_subtargets,$(addprefix sub-,$($(package)_qt_libs))) && \
316311
$(MAKE) -C qttools/src/linguist/lrelease INSTALL_ROOT=$($(package)_staging_dir) install_target && \
317312
$(MAKE) -C qttools/src/linguist/lupdate INSTALL_ROOT=$($(package)_staging_dir) install_target && \
313+
$(MAKE) -C qttools/src/linguist/lconvert INSTALL_ROOT=$($(package)_staging_dir) install_target && \
318314
$(MAKE) -C qttranslations INSTALL_ROOT=$($(package)_staging_dir) install_subtargets && \
319315
$(MAKE) -C qtcharts/src/charts INSTALL_ROOT=$($(package)_staging_dir) install && \
320316
$(MAKE) -C qtsvg/src INSTALL_ROOT=$($(package)_staging_dir) install \

0 commit comments

Comments
 (0)