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