Skip to content

Commit 7348299

Browse files
committed
ci: Set DEBIAN_FRONTEND=noninteractive
This suppresses `debconf: unable to initialize frontend: ...` warnings.
1 parent 9971d51 commit 7348299

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

ci/linux-debian.Dockerfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ RUN dpkg --add-architecture i386 && \
2121

2222
# dpkg-dev: to make pkg-config work in cross-builds
2323
# llvm: for llvm-symbolizer, which is used by clang's UBSan for symbolized stack traces
24-
RUN apt-get update && apt-get install --no-install-recommends -y \
24+
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
2525
git ca-certificates \
2626
make automake libtool pkg-config dpkg-dev valgrind qemu-user \
2727
gcc clang llvm libclang-rt-dev libc6-dbg \
@@ -34,14 +34,15 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
3434
gcc-mingw-w64-i686-win32 wine32 \
3535
python3-full && \
3636
if ! ( dpkg --print-architecture | grep --quiet "arm64" ) ; then \
37-
apt-get install --no-install-recommends -y \
37+
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
3838
gcc-aarch64-linux-gnu libc6-dev-arm64-cross libc6-dbg:arm64 ;\
3939
fi && \
4040
apt-get clean && rm -rf /var/lib/apt/lists/*
4141

4242
# Build and install gcc snapshot
4343
ARG GCC_SNAPSHOT_MAJOR=16
44-
RUN apt-get update && apt-get install --no-install-recommends -y wget libgmp-dev libmpfr-dev libmpc-dev flex && \
44+
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
45+
wget libgmp-dev libmpfr-dev libmpc-dev flex && \
4546
mkdir gcc && cd gcc && \
4647
wget --progress=dot:giga --https-only --recursive --accept '*.tar.xz' --level 1 --no-directories "https://gcc.gnu.org/pub/gcc/snapshots/LATEST-${GCC_SNAPSHOT_MAJOR}" && \
4748
wget "https://gcc.gnu.org/pub/gcc/snapshots/LATEST-${GCC_SNAPSHOT_MAJOR}/sha512.sum" && \
@@ -62,15 +63,15 @@ RUN apt-get update && apt-get install --no-install-recommends -y wget libgmp-dev
6263
# Install clang snapshot, see https://apt.llvm.org/
6364
RUN \
6465
# Setup GPG keys of LLVM repository
65-
apt-get update && apt-get install --no-install-recommends -y wget && \
66+
apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y wget && \
6667
wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc && \
6768
# Add repository for this Debian release
6869
. /etc/os-release && echo "deb http://apt.llvm.org/${VERSION_CODENAME} llvm-toolchain-${VERSION_CODENAME} main" >> /etc/apt/sources.list && \
6970
apt-get update && \
7071
# Determine the version number of the LLVM development branch
7172
LLVM_VERSION=$(apt-cache search --names-only '^clang-[0-9]+$' | sort -V | tail -1 | cut -f1 -d" " | cut -f2 -d"-" ) && \
7273
# Install
73-
apt-get install --no-install-recommends -y "clang-${LLVM_VERSION}" && \
74+
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y "clang-${LLVM_VERSION}" && \
7475
# Create symlink
7576
ln -s "/usr/bin/clang-${LLVM_VERSION}" /usr/bin/clang-snapshot && \
7677
# Clean up

0 commit comments

Comments
 (0)