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