1 # THIS FILE WAS AUTO-GENERATED
3 # $ lcitool dockerfile --layers all --cross-arch aarch64 debian-12 qemu
5 # https://gitlab.com/libvirt/libvirt-ci
7 FROM docker.io/library/debian:12-slim
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 \
35 libspice-protocol-dev \
51 python3-sphinx-rtd-theme \
64 eatmydata apt-get autoremove -y && \
65 eatmydata apt-get autoclean -y && \
66 sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \
67 dpkg-reconfigure locales
69 ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers"
70 ENV LANG "en_US.UTF-8"
71 ENV MAKE "/usr/bin/make"
72 ENV NINJA "/usr/bin/ninja"
73 ENV PYTHON "/usr/bin/python3"
75 RUN export DEBIAN_FRONTEND=noninteractive && \
76 dpkg --add-architecture arm64 && \
77 eatmydata apt-get update && \
78 eatmydata apt-get dist-upgrade -y && \
79 eatmydata apt-get install --no-install-recommends -y dpkg-dev && \
80 eatmydata apt-get install --no-install-recommends -y \
81 g++-aarch64-linux-gnu \
82 gcc-aarch64-linux-gnu \
85 libasound2-dev:arm64 \
93 libcapstone-dev:arm64 \
95 libcurl4-gnutls-dev:arm64 \
103 libgcrypt20-dev:arm64 \
104 libglib2.0-dev:arm64 \
105 libglusterfs-dev:arm64 \
106 libgnutls28-dev:arm64 \
108 libibumad-dev:arm64 \
109 libibverbs-dev:arm64 \
111 libjemalloc-dev:arm64 \
112 libjpeg62-turbo-dev:arm64 \
113 libjson-c-dev:arm64 \
114 liblttng-ust-dev:arm64 \
116 libncursesw5-dev:arm64 \
120 libpipewire-0.3-dev:arm64 \
121 libpixman-1-dev:arm64 \
125 librdmacm-dev:arm64 \
128 libsdl2-image-dev:arm64 \
129 libseccomp-dev:arm64 \
130 libselinux1-dev:arm64 \
132 libsnappy-dev:arm64 \
133 libspice-server-dev:arm64 \
134 libssh-gcrypt-dev:arm64 \
135 libsystemd-dev:arm64 \
136 libtasn1-6-dev:arm64 \
140 libusb-1.0-0-dev:arm64 \
141 libusbredirhost-dev:arm64 \
142 libvdeplug-dev:arm64 \
143 libvirglrenderer-dev:arm64 \
144 libvte-2.91-dev:arm64 \
149 systemtap-sdt-dev:arm64 \
151 zlib1g-dev:arm64 && \
152 eatmydata apt-get autoremove -y && \
153 eatmydata apt-get autoclean -y && \
154 mkdir -p /usr/local/share/meson/cross && \
155 printf "[binaries]\n\
156 c = '/usr/bin/aarch64-linux-gnu-gcc'\n\
157 ar = '/usr/bin/aarch64-linux-gnu-gcc-ar'\n\
158 strip = '/usr/bin/aarch64-linux-gnu-strip'\n\
159 pkgconfig = '/usr/bin/aarch64-linux-gnu-pkg-config'\n\
163 cpu_family = 'aarch64'\n\
165 endian = 'little'\n" > /usr/local/share/meson/cross/aarch64-linux-gnu && \
166 dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --show > /packages.txt && \
167 mkdir -p /usr/libexec/ccache-wrappers && \
168 ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/aarch64-linux-gnu-c++ && \
169 ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/aarch64-linux-gnu-cc && \
170 ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/aarch64-linux-gnu-g++ && \
171 ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/aarch64-linux-gnu-gcc
173 ENV ABI "aarch64-linux-gnu"
174 ENV MESON_OPTS "--cross-file=aarch64-linux-gnu"
175 ENV QEMU_CONFIGURE_OPTS --cross-prefix=aarch64-linux-gnu-
176 ENV DEF_TARGET_LIST aarch64-softmmu,aarch64-linux-user
177 # As a final step configure the user (if env is defined)
180 RUN if [ "${USER}" ]; then \
181 id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi