Install libproc2-dev in Linux build environment

This ensures that the plugin will attempt to load either libprocps-dev
or libproc2-dev libraries at runtime, instead of just the libprocps-dev
library

Dep packages taken from:
 * https://packages.debian.org/bookworm/libproc2-0
 * https://packages.debian.org/bookworm/libproc2-dev
This commit is contained in:
WarmUpTill 2024-08-02 19:24:23 +02:00 committed by WarmUpTill
parent 15998012e5
commit 9941cfe9b5
3 changed files with 6 additions and 1 deletions

View File

@ -456,7 +456,12 @@ Usage: %B${functrace[1]%:*}%b <option> [<options>]
popd
;;
linux)
# Nothing to do for now
# Hacky workaround to support libproc2 with Ubuntu 22 build environment
local lsb_version=$(lsb_release -r | cut -f 2 || true)
if [[ "${lsb_version}" == '22.04' ]] {
sudo apt install ${project_root}/build-aux/CI/linux/ubuntu22/libproc2-0_4.0.2-3_amd64.deb
sudo apt install ${project_root}/build-aux/CI/linux/ubuntu22/libproc2-dev_4.0.2-3_amd64.deb
}
;;
}
}