Skip to content

Commit 4dd2998

Browse files
committed
build-scx-scheds: install recent meson with pipx
meson installed via apt on Ubuntu 24 turns out to be quite old (1.3.2 vs latest 1.8.2). This caused scx build failures [1]. pipx [2] is a recommended way to install such python apps. Update build-scx-scheds/install-dependencies.sh script to handle the installations properly. [1] https://github.com/kernel-patches/bpf/actions/runs/15850271078/job/44682123061 [2] https://github.com/pypa/pipx Signed-off-by: Ihor Solodrai <[email protected]>
1 parent 1f0f1a7 commit 4dd2998

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

build-scx-scheds/install-dependencies.sh

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,28 @@ set -euo pipefail
44

55
export DEBIAN_FRONTEND=noninteractive
66
export LLVM_VERSION=${LLVM_VERSION:-20}
7+
export PIPX_VERSION=${PIPX_VERSION:-1.7.1}
78

89
# Assume Ubuntu/Debian
910
sudo -E apt-get -y update
1011

12+
# Download and install pipx
13+
sudo -E apt-get --no-install-recommends -y install wget python3 python3-pip python3-venv
14+
wget "https://github.com/pypa/pipx/releases/download/${PIPX_VERSION}/pipx.pyz"
15+
mv pipx.pyz /usr/bin/pipx && chmod +x /usr/bin/pipx
16+
17+
# pipx ensurepath is not doing what we need
18+
# install pipx apps to /usr/local/bin manually
19+
pipx install meson
20+
pipx install ninja
21+
sudo cp -a ~/.local/bin/meson /usr/local/bin
22+
sudo cp -a ~/.local/bin/ninja /usr/local/bin
23+
24+
meson --version
25+
ninja --version
26+
1127
# Install LLVM
12-
sudo -E apt-get -y install lsb-release wget software-properties-common gnupg
28+
sudo -E apt-get --no-install-recommends -y install lsb-release wget software-properties-common gnupg
1329
wget https://apt.llvm.org/llvm.sh
1430
chmod +x llvm.sh
1531
sudo -E ./llvm.sh ${LLVM_VERSION}
@@ -25,6 +41,6 @@ sudo update-alternatives --install \
2541
# Install Rust
2642
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
2743

28-
sudo -E apt-get -y install \
29-
build-essential libssl-dev libelf-dev meson cmake pkg-config jq \
44+
sudo -E apt-get --no-install-recommends -y install \
45+
build-essential libssl-dev libelf-dev cmake pkg-config jq \
3046
protobuf-compiler libseccomp-dev

0 commit comments

Comments
 (0)