1# THIS FILE WAS AUTO-GENERATED
2#
3#  $ lcitool dockerfile --layers all --cross aarch64 debian-11 qemu
4#
5# https://gitlab.com/libvirt/libvirt-ci
6
7FROM docker.io/library/debian:11-slim
8
9RUN export DEBIAN_FRONTEND=noninteractive && \
10    apt-get update && \
11    apt-get install -y eatmydata && \
12    eatmydata apt-get dist-upgrade -y && \
13    eatmydata apt-get install --no-install-recommends -y \
14            bash \
15            bc \
16            bison \
17            bsdextrautils \
18            bzip2 \
19            ca-certificates \
20            ccache \
21            dbus \
22            debianutils \
23            diffutils \
24            exuberant-ctags \
25            findutils \
26            flex \
27            gcovr \
28            genisoimage \
29            gettext \
30            git \
31            hostname \
32            libglib2.0-dev \
33            libpcre2-dev \
34            libspice-protocol-dev \
35            llvm \
36            locales \
37            make \
38            meson \
39            ncat \
40            ninja-build \
41            openssh-client \
42            perl-base \
43            pkgconf \
44            python3 \
45            python3-numpy \
46            python3-opencv \
47            python3-pillow \
48            python3-pip \
49            python3-sphinx \
50            python3-sphinx-rtd-theme \
51            python3-venv \
52            python3-yaml \
53            rpm2cpio \
54            sed \
55            sparse \
56            tar \
57            tesseract-ocr \
58            tesseract-ocr-eng \
59            texinfo && \
60    eatmydata apt-get autoremove -y && \
61    eatmydata apt-get autoclean -y && \
62    sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \
63    dpkg-reconfigure locales
64
65ENV LANG "en_US.UTF-8"
66ENV MAKE "/usr/bin/make"
67ENV NINJA "/usr/bin/ninja"
68ENV PYTHON "/usr/bin/python3"
69ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers"
70
71RUN export DEBIAN_FRONTEND=noninteractive && \
72    dpkg --add-architecture arm64 && \
73    eatmydata apt-get update && \
74    eatmydata apt-get dist-upgrade -y && \
75    eatmydata apt-get install --no-install-recommends -y dpkg-dev && \
76    eatmydata apt-get install --no-install-recommends -y \
77            g++-aarch64-linux-gnu \
78            gcc-aarch64-linux-gnu \
79            libaio-dev:arm64 \
80            libasan5:arm64 \
81            libasound2-dev:arm64 \
82            libattr1-dev:arm64 \
83            libbpf-dev:arm64 \
84            libbrlapi-dev:arm64 \
85            libbz2-dev:arm64 \
86            libc6-dev:arm64 \
87            libcacard-dev:arm64 \
88            libcap-ng-dev:arm64 \
89            libcapstone-dev:arm64 \
90            libcmocka-dev:arm64 \
91            libcurl4-gnutls-dev:arm64 \
92            libdaxctl-dev:arm64 \
93            libdrm-dev:arm64 \
94            libepoxy-dev:arm64 \
95            libfdt-dev:arm64 \
96            libffi-dev:arm64 \
97            libfuse3-dev:arm64 \
98            libgbm-dev:arm64 \
99            libgcrypt20-dev:arm64 \
100            libglib2.0-dev:arm64 \
101            libglusterfs-dev:arm64 \
102            libgnutls28-dev:arm64 \
103            libgtk-3-dev:arm64 \
104            libibumad-dev:arm64 \
105            libibverbs-dev:arm64 \
106            libiscsi-dev:arm64 \
107            libjemalloc-dev:arm64 \
108            libjpeg62-turbo-dev:arm64 \
109            libjson-c-dev:arm64 \
110            liblttng-ust-dev:arm64 \
111            liblzo2-dev:arm64 \
112            libncursesw5-dev:arm64 \
113            libnfs-dev:arm64 \
114            libnuma-dev:arm64 \
115            libpam0g-dev:arm64 \
116            libpixman-1-dev:arm64 \
117            libpng-dev:arm64 \
118            libpulse-dev:arm64 \
119            librbd-dev:arm64 \
120            librdmacm-dev:arm64 \
121            libsasl2-dev:arm64 \
122            libsdl2-dev:arm64 \
123            libsdl2-image-dev:arm64 \
124            libseccomp-dev:arm64 \
125            libselinux1-dev:arm64 \
126            libslirp-dev:arm64 \
127            libsnappy-dev:arm64 \
128            libspice-server-dev:arm64 \
129            libssh-gcrypt-dev:arm64 \
130            libsystemd-dev:arm64 \
131            libtasn1-6-dev:arm64 \
132            libubsan1:arm64 \
133            libudev-dev:arm64 \
134            liburing-dev:arm64 \
135            libusb-1.0-0-dev:arm64 \
136            libusbredirhost-dev:arm64 \
137            libvdeplug-dev:arm64 \
138            libvirglrenderer-dev:arm64 \
139            libvte-2.91-dev:arm64 \
140            libxen-dev:arm64 \
141            libzstd-dev:arm64 \
142            nettle-dev:arm64 \
143            systemtap-sdt-dev:arm64 \
144            xfslibs-dev:arm64 \
145            zlib1g-dev:arm64 && \
146    eatmydata apt-get autoremove -y && \
147    eatmydata apt-get autoclean -y && \
148    mkdir -p /usr/local/share/meson/cross && \
149    echo "[binaries]\n\
150c = '/usr/bin/aarch64-linux-gnu-gcc'\n\
151ar = '/usr/bin/aarch64-linux-gnu-gcc-ar'\n\
152strip = '/usr/bin/aarch64-linux-gnu-strip'\n\
153pkgconfig = '/usr/bin/aarch64-linux-gnu-pkg-config'\n\
154\n\
155[host_machine]\n\
156system = 'linux'\n\
157cpu_family = 'aarch64'\n\
158cpu = 'aarch64'\n\
159endian = 'little'" > /usr/local/share/meson/cross/aarch64-linux-gnu && \
160    dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --show > /packages.txt && \
161    mkdir -p /usr/libexec/ccache-wrappers && \
162    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/aarch64-linux-gnu-c++ && \
163    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/aarch64-linux-gnu-cc && \
164    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/aarch64-linux-gnu-g++ && \
165    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/aarch64-linux-gnu-gcc
166
167ENV ABI "aarch64-linux-gnu"
168ENV MESON_OPTS "--cross-file=aarch64-linux-gnu"
169ENV QEMU_CONFIGURE_OPTS --cross-prefix=aarch64-linux-gnu-
170ENV DEF_TARGET_LIST aarch64-softmmu,aarch64-linux-user
171