+ else
+ linux_openssl3
+ fi
+}
+
+deps_linux_debian() {
+ export DEBIAN_FRONTEND=noninteractive
+
+ apt-get update
+ apt-get upgrade -y
+ apt-get install -y git pkgconf diffutils sudo texinfo \
+ netcat-openbsd procps socat
+
+ HOST=${HOST:-}
+ if [ "$HOST" = mingw ]; then
+ deps_linux_debian_mingw "$@"
+ else
+ deps_linux_debian_linux "$@"
+ fi
+
+ . /etc/os-release
+
+ # Debian Buster ships an old version of meson (0.49).
+ # MinGW cross-compilation requires something newer than 0.55 that ships in Bullseye,
+ # or it fails when looking for dependencies in the OpenSSL wrap.
+ if [ "${ID:-}/${VERSION_CODENAME:-}" = debian/buster ] || [ "$HOST" = mingw ]; then
+ apt-get install -y python3 python3-pip ninja-build
+ pip3 install meson
+ else
+ apt-get install -y meson