Skip to content

Commit 05757aa

Browse files
committed
Merge #21423: build: Cleanups and follow ups after bumping Qt to 5.12.10
e67c012 doc: Update dependencies.md with a new Qt version (Hennadii Stepanov) cc25f89 build: Cleanup libxkbcommon_postprocess_cmds (Hennadii Stepanov) 72fc043 build, qt: Drop redundant -lxcb-static flag (Hennadii Stepanov) cba4a7e build, qt: Always test plugins/subdir before adding to search paths (Hennadii Stepanov) Pull request description: 1) Always test `plugins/subdir` before adding to search paths as the existence of each subdir is not guaranteed for all platforms: - bitcoin/bitcoin#21376 (comment) 2) Drop redundant `-lxcb-static` flag as it has been already linked with `Qt5XcbQpa`: - bitcoin/bitcoin#21363 (comment) 3) Cleanup `libxkbcommon_postprocess_cmds` as there is no `share/` directory in the staging one: - bitcoin/bitcoin#21376 (comment) - bitcoin/bitcoin#21376 (comment) 4) Update `dependencies.md` ACKs for top commit: fanquake: ACK e67c012 Tree-SHA512: 9113ee97d5e7424290778154d62a68af804ee82efedbbe9776a7f692104d65b07d151e9f7f1f98ec08d18f6d63efef3e44b207bee67ad913f5dbc4eddbb8ea41
2 parents 47d79c9 + e67c012 commit 05757aa

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

build-aux/m4/bitcoin_qt.m4

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,12 @@ AC_DEFUN([BITCOIN_QT_CONFIGURE],[
123123
_BITCOIN_QT_CHECK_STATIC_LIBS
124124
125125
if test "x$qt_plugin_path" != x; then
126-
QT_LIBS="$QT_LIBS -L$qt_plugin_path/platforms -L$qt_plugin_path/styles"
126+
if test -d "$qt_plugin_path/platforms"; then
127+
QT_LIBS="$QT_LIBS -L$qt_plugin_path/platforms"
128+
fi
129+
if test -d "$qt_plugin_path/styles"; then
130+
QT_LIBS="$QT_LIBS -L$qt_plugin_path/styles"
131+
fi
127132
if test -d "$qt_plugin_path/accessible"; then
128133
QT_LIBS="$QT_LIBS -L$qt_plugin_path/accessible"
129134
fi
@@ -146,7 +151,7 @@ AC_DEFUN([BITCOIN_QT_CONFIGURE],[
146151
elif test "x$TARGET_OS" = xlinux; then
147152
dnl workaround for https://bugreports.qt.io/browse/QTBUG-74874
148153
AX_CHECK_LINK_FLAG([-lxcb-shm], [QT_LIBS="-lxcb-shm $QT_LIBS"], [AC_MSG_ERROR([could not link against -lxcb-shm])])
149-
_BITCOIN_QT_CHECK_STATIC_PLUGIN([QXcbIntegrationPlugin], [-lqxcb -lxcb-static])
154+
_BITCOIN_QT_CHECK_STATIC_PLUGIN([QXcbIntegrationPlugin], [-lqxcb])
150155
AC_DEFINE(QT_QPA_PLATFORM_XCB, 1, [Define this symbol if the qt platform is xcb])
151156
elif test "x$TARGET_OS" = xdarwin; then
152157
AX_CHECK_LINK_FLAG([[-framework Carbon]],[QT_LIBS="$QT_LIBS -framework Carbon"],[AC_MSG_ERROR(could not link against Carbon framework)])

depends/packages/libxkbcommon.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ define $(package)_stage_cmds
2727
endef
2828

2929
define $(package)_postprocess_cmds
30-
rm -rf share/man share/doc lib/*.la
30+
rm lib/*.la
3131
endef
3232

doc/dependencies.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ These are the dependencies currently used by Bitcoin Core. You can find instruct
2121
| PCRE | | | | | [Yes](https://github.com/bitcoin/bitcoin/blob/master/depends/packages/qt.mk) |
2222
| Python (tests) | | [3.6](https://www.python.org/downloads) | | | |
2323
| qrencode | [3.4.4](https://fukuchi.org/works/qrencode) | | No | | |
24-
| Qt | [5.9.8](https://download.qt.io/official_releases/qt/) | [5.9.5](https://github.com/bitcoin/bitcoin/issues/20104) | No | | |
24+
| Qt | [5.12.10](https://download.qt.io/official_releases/qt/) | [5.9.5](https://github.com/bitcoin/bitcoin/issues/20104) | No | | |
2525
| SQLite | [3.32.1](https://sqlite.org/download.html) | [3.7.17](https://github.com/bitcoin/bitcoin/pull/19077) | | | |
2626
| XCB | | | | | [Yes](https://github.com/bitcoin/bitcoin/blob/master/depends/packages/qt.mk) (Linux only) |
2727
| xkbcommon | | | | | [Yes](https://github.com/bitcoin/bitcoin/blob/master/depends/packages/qt.mk) (Linux only) |

0 commit comments

Comments
 (0)