Skip to content

Commit 3272e34

Browse files
hebastofanquake
andcommitted
build: Add xkbcommon 0.8.4
Co-authored-by: fanquake <[email protected]>
1 parent d769b33 commit 3272e34

File tree

10 files changed

+44
-8
lines changed

10 files changed

+44
-8
lines changed

ci/test/00_setup_env.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export BASE_OUTDIR=${BASE_OUTDIR:-$BASE_SCRATCH_DIR/out/$HOST}
6565
export BASE_BUILD_DIR=${BASE_BUILD_DIR:-$BASE_SCRATCH_DIR/build}
6666
export PREVIOUS_RELEASES_DIR=${PREVIOUS_RELEASES_DIR:-$BASE_ROOT_DIR/releases/$HOST}
6767
export SDK_URL=${SDK_URL:-https://bitcoincore.org/depends-sources/sdks}
68-
export DOCKER_PACKAGES=${DOCKER_PACKAGES:-build-essential libtool autotools-dev automake pkg-config bsdmainutils curl ca-certificates ccache python3 rsync git procps}
68+
export DOCKER_PACKAGES=${DOCKER_PACKAGES:-build-essential libtool autotools-dev automake pkg-config bsdmainutils curl ca-certificates ccache python3 rsync git procps bison}
6969
export GOAL=${GOAL:-install}
7070
export DIR_QA_ASSETS=${DIR_QA_ASSETS:-${BASE_SCRATCH_DIR}/qa-assets}
7171
export PATH=${BASE_ROOT_DIR}/ci/retry:$PATH

ci/test/00_setup_env_i686_centos.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export LC_ALL=C.UTF-8
99
export HOST=i686-pc-linux-gnu
1010
export CONTAINER_NAME=ci_i686_centos_8
1111
export DOCKER_NAME_TAG=centos:8
12-
export DOCKER_PACKAGES="gcc-c++ glibc-devel.x86_64 libstdc++-devel.x86_64 glibc-devel.i686 libstdc++-devel.i686 ccache libtool make git python3 python3-zmq which patch lbzip2 dash rsync coreutils"
12+
export DOCKER_PACKAGES="gcc-c++ glibc-devel.x86_64 libstdc++-devel.x86_64 glibc-devel.i686 libstdc++-devel.i686 ccache libtool make git python3 python3-zmq which patch lbzip2 dash rsync coreutils bison"
1313
export GOAL="install"
1414
export BITCOIN_CONFIG="--enable-zmq --with-gui=qt5 --enable-reduce-exports --with-boost-process"
1515
export CONFIG_SHELL="/bin/dash"

contrib/devtools/symbol-check.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@
7373
'ld-linux-riscv64-lp64d.so.1', # 64-bit RISC-V dynamic linker
7474
# bitcoin-qt only
7575
'libxcb.so.1', # part of X11
76+
'libxkbcommon.so.0', # keyboard keymapping
77+
'libxkbcommon-x11.so.0', # keyboard keymapping
7678
'libfontconfig.so.1', # font support
7779
'libfreetype.so.6', # font parsing
7880
'libdl.so.2' # programming interface to dynamic linker

contrib/gitian-descriptors/gitian-linux.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ packages:
1111
- "autoconf"
1212
- "automake"
1313
- "binutils"
14+
- "bison"
1415
- "bsdmainutils"
1516
- "ca-certificates"
1617
- "curl"

contrib/guix/manifest.scm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
(gnu packages autotools)
44
(gnu packages base)
55
(gnu packages bash)
6+
(gnu packages bison)
67
(gnu packages cdrom)
78
(gnu packages check)
89
(gnu packages cmake)
@@ -219,6 +220,7 @@ chain for " target " development."))
219220
autoconf
220221
automake
221222
pkg-config
223+
bison
222224
;; Scripting
223225
perl
224226
python-3

depends/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ The paths are automatically configured and no other options are needed unless ta
5454

5555
Common linux dependencies:
5656

57-
sudo apt-get install make automake cmake curl g++-multilib libtool binutils-gold bsdmainutils pkg-config python3 patch
57+
sudo apt-get install make automake cmake curl g++-multilib libtool binutils-gold bsdmainutils pkg-config python3 patch bison
5858

5959
For linux ARM cross compilation:
6060

depends/packages/libxcb.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ $(package)_config_opts += --disable-present --disable-randr --disable-record
1717
$(package)_config_opts += --disable-render --disable-resource --disable-screensaver
1818
$(package)_config_opts += --disable-shape --disable-shm --disable-sync
1919
$(package)_config_opts += --disable-xevie --disable-xfixes --disable-xfree86-dri
20-
$(package)_config_opts += --disable-xinerama --disable-xinput --disable-xkb
20+
$(package)_config_opts += --disable-xinerama --disable-xinput
2121
$(package)_config_opts += --disable-xprint --disable-selinux --disable-xtest
2222
$(package)_config_opts += --disable-xv --disable-xvmc
2323
endef

depends/packages/libxkbcommon.mk

Lines changed: 32 additions & 0 deletions
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 -rf share/man share/doc lib/*.la
31+
endef
32+

depends/packages/packages.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ qt_packages = zlib
44

55
qrencode_packages = qrencode
66

7-
qt_linux_packages:=qt expat libxcb xcb_proto libXau xproto freetype fontconfig
7+
qt_linux_packages:=qt expat libxcb xcb_proto libXau xproto freetype fontconfig libxkbcommon
88
qt_android_packages=qt
99

1010
qt_darwin_packages=qt

depends/packages/qt.mk

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ $(package)_suffix=opensource-src-$($(package)_version).tar.xz
55
$(package)_file_name=qtbase-$($(package)_suffix)
66
$(package)_sha256_hash=9b9dec1f67df1f94bce2955c5604de992d529dde72050239154c56352da0907d
77
$(package)_dependencies=zlib
8-
$(package)_linux_dependencies=freetype fontconfig libxcb
8+
$(package)_linux_dependencies=freetype fontconfig libxcb libxkbcommon
99
$(package)_qt_libs=corelib network widgets gui plugins testlib
1010
$(package)_patches=fix_qt_pkgconfig.patch mac-qmake.conf fix_configure_mac.patch fix_no_printer.patch
1111
$(package)_patches+= fix_rcc_determinism.patch fix_riscv64_arch.patch xkb-default.patch no-xlib.patch
@@ -129,8 +129,7 @@ endif
129129
# for macOS on Apple Silicon (ARM) see https://bugreports.qt.io/browse/QTBUG-85279
130130
$(package)_config_opts_arm_darwin += -device-option QMAKE_APPLE_DEVICE_ARCHS=arm64
131131

132-
$(package)_config_opts_linux = -qt-xkbcommon-x11
133-
$(package)_config_opts_linux += -qt-xcb
132+
$(package)_config_opts_linux = -qt-xcb
134133
$(package)_config_opts_linux += -no-xcb-xlib
135134
$(package)_config_opts_linux += -no-feature-xlib
136135
$(package)_config_opts_linux += -system-freetype

0 commit comments

Comments
 (0)