From 721b2fc39451ecfc4cb84ec32138011f160913f8 Mon Sep 17 00:00:00 2001 From: Martin Nowack Date: Thu, 23 Mar 2023 18:57:57 +0000 Subject: Fix detection and installation of Ubuntu-provided llvm/clang packages --- scripts/build/p-llvm-linux-ubuntu.inc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/build/p-llvm-linux-ubuntu.inc b/scripts/build/p-llvm-linux-ubuntu.inc index 1af095f9..440afbd4 100644 --- a/scripts/build/p-llvm-linux-ubuntu.inc +++ b/scripts/build/p-llvm-linux-ubuntu.inc @@ -56,7 +56,7 @@ install_binary_artifact_llvm() { # Check if package in standard repository otherwise use upstream with_sudo apt-get update -y - if ! apt-cache show "llvm${version}"; then + if ! apt-cache show "llvm-${version}"; then if [[ -z "$(which wget)" ]]; then # Add certificate with_sudo apt-get update -y @@ -82,10 +82,10 @@ install_binary_artifact_llvm() { fi dependencies=( - "llvm${version}" - "llvm${version}-dev" - "llvm${version}-runtime" - "clang${version}" + "llvm-${version}" + "llvm-${version}-dev" + "llvm-${version}-runtime" + "clang-${version}" ) #Install essential dependencies -- cgit 1.4.1