From e9398133fcbec9012810ca5f7d98523ed59cf812 Mon Sep 17 00:00:00 2001 From: Eberhard Beilharz Date: Wed, 24 Apr 2024 18:38:40 +0200 Subject: [PATCH] chore(linux): Install python3-dev On a new machine we need to install python3-dev so that we can access `Python.h`. It shouldn't be in `debian/control`, so we put in our script where we check the requirements. --- linux/scripts/package-build.inc.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/linux/scripts/package-build.inc.sh b/linux/scripts/package-build.inc.sh index fcfe492b433..79ce92644e7 100644 --- a/linux/scripts/package-build.inc.sh +++ b/linux/scripts/package-build.inc.sh @@ -61,19 +61,19 @@ function checkAndInstallRequirements() { local TOINSTALL="" - for p in devscripts equivs + for p in devscripts equivs python3-dev do - if ! dpkg -s $p >/dev/null 2>&1; then - TOINSTALL="$TOINSTALL $p" + if ! dpkg -s "${p}" >/dev/null 2>&1; then + TOINSTALL="${TOINSTALL} ${p}" fi done export DEBIAN_FRONTEND=noninteractive - if [ -n "$TOINSTALL" ]; then + if [[ -n "${TOINSTALL}" ]]; then wait_for_apt_deb && sudo apt-get update # shellcheck disable=SC2086 - wait_for_apt_deb && sudo apt-get -qy install $TOINSTALL + wait_for_apt_deb && sudo apt-get -qy install ${TOINSTALL} fi sudo mk-build-deps debian/control