5 SKIP_OPENSSL3="${SKIP_OPENSSL3:-}"
6 SKIP_MESON="${SKIP_MESON:-}"
12 git binutils ninja pkgconf gcc linux-headers shadow sudo libgcrypt-dev texinfo gzip \
13 openssl-dev zlib-dev lzo-dev ncurses-dev readline-dev musl-dev lz4-dev vde2-dev cmocka-dev
15 if [ -z "$SKIP_MESON" ]; then
20 deps_linux_debian_mingw() {
22 mingw-w64 mingw-w64-tools \
24 libgcrypt-mingw-w64-dev \
28 deps_linux_debian_linux() {
29 if [ -n "$HOST" ]; then
30 dpkg --add-architecture "$HOST"
41 libncurses-dev:"$HOST" \
42 libreadline-dev:"$HOST" \
43 libgcrypt-dev:"$HOST" \
44 libminiupnpc-dev:"$HOST" \
45 libvdeplug-dev:"$HOST" \
46 libcmocka-dev:"$HOST" \
49 if [ -n "$HOST" ]; then
50 apt-get install -y crossbuild-essential-"$HOST" qemu-user
57 export DEBIAN_FRONTEND=noninteractive
61 apt-get install -y git pkgconf sudo texinfo ninja-build
64 if [ "$HOST" = mingw ]; then
65 deps_linux_debian_mingw "$@"
67 deps_linux_debian_linux "$@"
70 if [ -n "$SKIP_MESON" ]; then
76 # Debian Buster ships an old version of meson (0.49).
77 # MinGW cross-compilation requires something newer than 0.55 that ships in Bullseye,
78 # or it fails when looking for dependencies in the OpenSSL wrap.
79 if [ "${ID:-}/${VERSION_CODENAME:-}" = debian/buster ] || [ "$HOST" = mingw ]; then
80 apt-get install -y python3 python3-pip ninja-build
83 apt-get install -y meson
90 if [ "$ID" != fedora ]; then
91 yum install -y epel-release
94 dnf install -y 'dnf-command(config-manager)'
95 dnf config-manager --enable powertools || true
96 dnf config-manager --enable crb || true
101 git binutils make ninja-build pkgconf gcc sudo texinfo-tex systemd perl-IPC-Cmd \
102 lzo-devel zlib-devel lz4-devel ncurses-devel readline-devel libgcrypt-devel "$@"
104 if [ -z "$SKIP_MESON" ]; then
108 if yum info openssl11-devel; then
109 yum install -y openssl11-devel
111 dnf install -y openssl-devel
114 if yum info miniupnpc-devel; then
115 yum install -y miniupnpc-devel
120 if [ -n "$SKIP_OPENSSL3" ]; then
121 echo >&2 "skipping openssl3 installation in this job"
125 src=/usr/local/src/openssl
130 git clone --depth 1 --branch openssl-3.0.2 https://github.com/openssl/openssl $src
133 ./Configure --prefix=$ssl3 --openssldir=$ssl3
137 if [ -f /etc/ld.so.conf ]; then
138 echo $ssl3/lib64 >>/etc/ld.so.conf
141 ldconfig -v $ssl3/lib64
152 deps_linux_alpine "$@"
156 deps_linux_debian "$@"
166 if [ "${PLATFORM_ID:-}" != platform:el9 ]; then
176 brew install lzo lz4 miniupnpc libgcrypt openssl "$@"
178 if [ -z "$SKIP_MESON" ]; then
183 case "$(uname -s)" in
184 Linux) deps_linux "$@" ;;
185 Darwin) deps_macos "$@" ;;