1 # THIS FILE WAS AUTO-GENERATED
3 # $ lcitool dockerfile --layers all ubuntu-2004 qemu
5 # https://gitlab.com/libvirt/libvirt-ci
7 FROM docker.io/library/ubuntu:20.04
9 RUN export DEBIAN_FRONTEND=noninteractive && \
11 apt-get install -y eatmydata && \
12 eatmydata apt-get dist-upgrade -y && \
13 eatmydata apt-get install --no-install-recommends -y \
86 libspice-protocol-dev \
96 libvirglrenderer-dev \
117 python3-sphinx-rtd-theme \
131 eatmydata apt-get autoremove -y && \
132 eatmydata apt-get autoclean -y && \
133 sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \
134 dpkg-reconfigure locales && \
135 dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --show > /packages.txt && \
136 mkdir -p /usr/libexec/ccache-wrappers && \
137 ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/c++ && \
138 ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc && \
139 ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/clang && \
140 ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/g++ && \
141 ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc
143 RUN /usr/bin/pip3 install meson==0.56.0
145 ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers"
146 ENV LANG "en_US.UTF-8"
147 ENV MAKE "/usr/bin/make"
148 ENV NINJA "/usr/bin/ninja"
149 ENV PYTHON "/usr/bin/python3"
150 # Apply patch https://reviews.llvm.org/D75820
151 # This is required for TSan in clang-10 to compile with QEMU.
152 RUN sed -i 's/^const/static const/g' /usr/lib/llvm-10/lib/clang/10.0.0/include/sanitizer/tsan_interface.h