changeset 90:53f3920af4c3

install Mercurial from sources in Docker for Debian
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 19 Aug 2021 11:41:15 +0200
parents 74a51200a134
children 55c41aa7053b
files Resources/Builders/Debian/docker-internal.sh
diffstat 1 files changed, 13 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Resources/Builders/Debian/docker-internal.sh	Thu Aug 19 11:22:43 2021 +0200
+++ b/Resources/Builders/Debian/docker-internal.sh	Thu Aug 19 11:41:15 2021 +0200
@@ -12,10 +12,22 @@
 useradd -u ${USER_ID} -r -g orthanc orthanc
 
 apt-get update
-DEBIAN_FRONTEND=noninteractive apt-get -y install nano build-essential unzip cmake pkg-config libpython3-dev mercurial
+DEBIAN_FRONTEND=noninteractive apt-get -y install nano build-essential unzip cmake pkg-config python libpython3-dev curl
 apt-get -y clean
 rm -rf /var/lib/apt/lists/*
 
+
+# On Bullseye, we get "stat: cannot statx
+# '/usr/share/mercurial/hgext.rc': Operation not permitted" if
+# installing the "mercurial" package using apt-get. As a consequence,
+# we manually install Mercurial from sources.
+MERCURIAL=mercurial-5.4.1
+cd /tmp
+curl https://www.mercurial-scm.org/release/${MERCURIAL}.tar.gz > ${MERCURIAL}.tar.gz
+tar xvf ${MERCURIAL}.tar.gz
+export PATH=${PATH}:/tmp/${MERCURIAL}/
+
+
 mkdir /tmp/source-writeable
 
 cp -r /source/CMakeLists.txt /tmp/source-writeable/