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