Skip to content

Commit 10a6e38

Browse files
committed
Specify cmake 3.5.6 and mark held
For linuxdeploy/linuxdeploy#312
1 parent 79c6f56 commit 10a6e38

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,10 @@ RUN \
5858
sudo apt install -y kitware-archive-keyring && \
5959
echo "deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ $CODENAME-rc main" | sudo tee -a /etc/apt/sources.list.d/kitware.list >/dev/null && \
6060
sudo apt update && \
61-
sudo apt install -y cmake && \
61+
# The linuxdeploy cmake requires 3.2, but compatibility with CMake < 3.5 has been
62+
# removed from CMake as of 4.0.0
63+
sudo apt install -y cmake=3.31.6-0kitware1ubuntu22.04.1 cmake-data=3.31.6-0kitware1ubuntu22.04.1 && \
64+
sudo apt-mark hold cmake cmake-data && \
6265
sudo rm -rf /var/lib/apt/lists
6366

6467
# So pip will not report about the path...

0 commit comments

Comments
 (0)