Skip to content

Commit bee07cf

Browse files
committed
docker: use newer CMake from buster-backports
1 parent 02d4cc0 commit bee07cf

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docker/install-system-dependencies

+11
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,17 @@ _exec apt-get update
153153

154154
_exec apt-get install --yes "${system_packages[@]}"
155155

156+
# Install newer cmake on Debian Buster.
157+
_exec apt-get install --yes lsb-release
158+
if [ "$(lsb_release -sc)" = 'buster' ]
159+
then
160+
_exec apt-get install --yes ca-certificates.
161+
echo 'deb https://archive.debian.org/debian-archive/debian buster-backports main' \
162+
| _exec tee '/etc/apt/sources.list.d/debian-buster-backports.list' >/dev/null
163+
_exec apt-get update
164+
_exec apt-get install --yes -t buster-backports cmake
165+
fi
166+
156167
for alternative_pair in "${alternative_pairs[@]}"
157168
do
158169
_exec update-alternatives --set ${alternative_pair}

0 commit comments

Comments
 (0)