Skip to content

Commit

Permalink
apt install pkg-config (#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
trxcllnt authored May 8, 2024
1 parent 71ecb98 commit 56be55b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
15 changes: 14 additions & 1 deletion features/src/rust/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "rust",
"version": "24.6.2",
"version": "24.6.3",
"name": "Rust",
"documentationURL": "https://github.com/rapidsai/devcontainers/features/tree/main/src/rust",
"description": "Installs Rust, common Rust utilities, and their required dependencies",
Expand All @@ -10,6 +10,19 @@
"proposals": [
"latest",
"none",
"1.76",
"1.75",
"1.74",
"1.73",
"1.72",
"1.71",
"1.70",
"1.69",
"1.68",
"1.67",
"1.66",
"1.65",
"1.64",
"1.63",
"1.62",
"1.61"
Expand Down
4 changes: 2 additions & 2 deletions features/src/rust/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ fi
# Install curl, lldb, python3-minimal,libpython and rust dependencies if missing
check_packages curl ca-certificates ${gcc_pkgs} libc6-dev libssl-dev gnupg2 gettext-base;

if ! dpkg -s gnupg2 ${lldb_pkg} python3-minimal > /dev/null 2>&1; then
apt-get -y install ${lldb_pkg} python3-minimal libpython3.?;
if ! dpkg -s gnupg2 ${lldb_pkg} python3-minimal pkg-config > /dev/null 2>&1; then
apt-get install -y --no-install-recommends ${lldb_pkg} python3-minimal libpython3.? pkg-config;
fi

architecture="${TARGETARCH:-$(dpkg --print-architecture | awk -F'-' '{print $NF}')}";
Expand Down

0 comments on commit 56be55b

Please sign in to comment.