From 6658d7d3f63cbfd07cd07ec2857e471b0aff9595 Mon Sep 17 00:00:00 2001 From: Dima Buzdyk Date: Tue, 23 Apr 2024 14:49:36 +0500 Subject: [PATCH] build on systems with libwebkit2gtk-4.1 Linux distros started removing libwebkit2gtk-4.0 libriry from their repos. Ubuntu Noble (24.04) is one of them. Modify debian/ubuntu deps to install libwebkit2gtk-4.1 if no libwebkit2gtk-4.0 available --- linux.d/debian | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/linux.d/debian b/linux.d/debian index fd13c706c1e..e58a6ec55d1 100644 --- a/linux.d/debian +++ b/linux.d/debian @@ -20,7 +20,6 @@ REQUIRED_DEV_PACKAGES=( libssl-dev libtool libudev-dev - libwebkit2gtk-4.0-dev ninja-build texinfo wget @@ -38,6 +37,16 @@ then then REQUIRED_DEV_PACKAGES+=(libssl-dev libcurl4-openssl-dev) fi + + # check which version of libwebkit2gtk is available + apt show --quiet libwebkit2gtk-4.0-dev >/dev/null 2>&1 + if [ "$?" == "0" ] + then + REQUIRED_DEV_PACKAGES+=(libwebkit2gtk-4.0-dev) + else + REQUIRED_DEV_PACKAGES+=(libwebkit2gtk-4.1-dev) + fi + # TODO: optimize this by checking which, if any, packages are already installed # install them all at once