Merge tag 'pull-loongarch-20241016' of https://gitlab.com/gaosong/qemu into staging
[qemu/armbru.git] / tests / docker / dockerfiles / debian-s390x-cross.docker
blob72668e03152d51e39f4160e14ff17a1744d68239
1 # THIS FILE WAS AUTO-GENERATED
3 #  $ lcitool dockerfile --layers all --cross-arch s390x debian-12 qemu
5 # https://gitlab.com/libvirt/libvirt-ci
7 FROM docker.io/library/debian:12-slim
9 RUN 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                       gcc \
28                       gcovr \
29                       gettext \
30                       git \
31                       hostname \
32                       libglib2.0-dev \
33                       libgtk-vnc-2.0-dev \
34                       libpcre2-dev \
35                       libsndio-dev \
36                       libspice-protocol-dev \
37                       llvm \
38                       locales \
39                       make \
40                       meson \
41                       mtools \
42                       ncat \
43                       ninja-build \
44                       openssh-client \
45                       pkgconf \
46                       python3 \
47                       python3-numpy \
48                       python3-opencv \
49                       python3-pillow \
50                       python3-pip \
51                       python3-sphinx \
52                       python3-sphinx-rtd-theme \
53                       python3-venv \
54                       python3-yaml \
55                       rpm2cpio \
56                       sed \
57                       socat \
58                       sparse \
59                       swtpm \
60                       tar \
61                       tesseract-ocr \
62                       tesseract-ocr-eng \
63                       xorriso \
64                       zstd && \
65     eatmydata apt-get autoremove -y && \
66     eatmydata apt-get autoclean -y && \
67     sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \
68     dpkg-reconfigure locales && \
69     rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED
71 ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers"
72 ENV LANG "en_US.UTF-8"
73 ENV MAKE "/usr/bin/make"
74 ENV NINJA "/usr/bin/ninja"
75 ENV PYTHON "/usr/bin/python3"
77 RUN export DEBIAN_FRONTEND=noninteractive && \
78     dpkg --add-architecture s390x && \
79     eatmydata apt-get update && \
80     eatmydata apt-get dist-upgrade -y && \
81     eatmydata apt-get install --no-install-recommends -y dpkg-dev && \
82     eatmydata apt-get install --no-install-recommends -y \
83                       gcc-s390x-linux-gnu \
84                       libaio-dev:s390x \
85                       libasan6:s390x \
86                       libasound2-dev:s390x \
87                       libattr1-dev:s390x \
88                       libbpf-dev:s390x \
89                       libbrlapi-dev:s390x \
90                       libbz2-dev:s390x \
91                       libc6-dev:s390x \
92                       libcacard-dev:s390x \
93                       libcap-ng-dev:s390x \
94                       libcapstone-dev:s390x \
95                       libcmocka-dev:s390x \
96                       libcurl4-gnutls-dev:s390x \
97                       libdaxctl-dev:s390x \
98                       libdrm-dev:s390x \
99                       libepoxy-dev:s390x \
100                       libfdt-dev:s390x \
101                       libffi-dev:s390x \
102                       libfuse3-dev:s390x \
103                       libgbm-dev:s390x \
104                       libgcrypt20-dev:s390x \
105                       libglib2.0-dev:s390x \
106                       libglusterfs-dev:s390x \
107                       libgnutls28-dev:s390x \
108                       libgtk-3-dev:s390x \
109                       libibverbs-dev:s390x \
110                       libiscsi-dev:s390x \
111                       libjemalloc-dev:s390x \
112                       libjpeg62-turbo-dev:s390x \
113                       libjson-c-dev:s390x \
114                       liblttng-ust-dev:s390x \
115                       liblzo2-dev:s390x \
116                       libncursesw5-dev:s390x \
117                       libnfs-dev:s390x \
118                       libnuma-dev:s390x \
119                       libpam0g-dev:s390x \
120                       libpipewire-0.3-dev:s390x \
121                       libpixman-1-dev:s390x \
122                       libpng-dev:s390x \
123                       libpulse-dev:s390x \
124                       librbd-dev:s390x \
125                       librdmacm-dev:s390x \
126                       libsasl2-dev:s390x \
127                       libsdl2-dev:s390x \
128                       libsdl2-image-dev:s390x \
129                       libseccomp-dev:s390x \
130                       libselinux1-dev:s390x \
131                       libslirp-dev:s390x \
132                       libsnappy-dev:s390x \
133                       libssh-gcrypt-dev:s390x \
134                       libsystemd-dev:s390x \
135                       libtasn1-6-dev:s390x \
136                       libubsan1:s390x \
137                       libudev-dev:s390x \
138                       liburing-dev:s390x \
139                       libusb-1.0-0-dev:s390x \
140                       libusbredirhost-dev:s390x \
141                       libvdeplug-dev:s390x \
142                       libvirglrenderer-dev:s390x \
143                       libvte-2.91-dev:s390x \
144                       libxdp-dev:s390x \
145                       libzstd-dev:s390x \
146                       nettle-dev:s390x \
147                       systemtap-sdt-dev:s390x \
148                       zlib1g-dev:s390x && \
149     eatmydata apt-get autoremove -y && \
150     eatmydata apt-get autoclean -y && \
151     mkdir -p /usr/local/share/meson/cross && \
152     printf "[binaries]\n\
153 c = '/usr/bin/s390x-linux-gnu-gcc'\n\
154 ar = '/usr/bin/s390x-linux-gnu-gcc-ar'\n\
155 strip = '/usr/bin/s390x-linux-gnu-strip'\n\
156 pkgconfig = '/usr/bin/s390x-linux-gnu-pkg-config'\n\
158 [host_machine]\n\
159 system = 'linux'\n\
160 cpu_family = 's390x'\n\
161 cpu = 's390x'\n\
162 endian = 'big'\n" > /usr/local/share/meson/cross/s390x-linux-gnu && \
163     dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --show > /packages.txt && \
164     mkdir -p /usr/libexec/ccache-wrappers && \
165     ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/s390x-linux-gnu-cc && \
166     ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/s390x-linux-gnu-gcc
168 ENV ABI "s390x-linux-gnu"
169 ENV MESON_OPTS "--cross-file=s390x-linux-gnu"
170 ENV QEMU_CONFIGURE_OPTS --cross-prefix=s390x-linux-gnu-
171 ENV DEF_TARGET_LIST s390x-softmmu,s390x-linux-user
172 # As a final step configure the user (if env is defined)
173 ARG USER
174 ARG UID
175 RUN if [ "${USER}" ]; then \
176   id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi