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 libcmocka-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 libjson-c-dev:s390x \ 107 liblttng-ust-dev:s390x \ 108 liblzo2-dev:s390x \ 109 libncursesw5-dev:s390x \ 110 libnfs-dev:s390x \ 111 libnuma-dev:s390x \ 112 libpam0g-dev:s390x \ 113 libpixman-1-dev:s390x \ 114 libpng-dev:s390x \ 115 libpulse-dev:s390x \ 116 librbd-dev:s390x \ 117 librdmacm-dev:s390x \ 118 libsasl2-dev:s390x \ 119 libsdl2-dev:s390x \ 120 libsdl2-image-dev:s390x \ 121 libseccomp-dev:s390x \ 122 libselinux1-dev:s390x \ 123 libslirp-dev:s390x \ 124 libsnappy-dev:s390x \ 125 libssh-gcrypt-dev:s390x \ 126 libsystemd-dev:s390x \ 127 libtasn1-6-dev:s390x \ 128 libubsan1:s390x \ 129 libudev-dev:s390x \ 130 liburing-dev:s390x \ 131 libusb-1.0-0-dev:s390x \ 132 libusbredirhost-dev:s390x \ 133 libvdeplug-dev:s390x \ 134 libvirglrenderer-dev:s390x \ 135 libvte-2.91-dev:s390x \ 136 libzstd-dev:s390x \ 137 nettle-dev:s390x \ 138 systemtap-sdt-dev:s390x \ 139 xfslibs-dev:s390x \ 140 zlib1g-dev:s390x && \ 141 eatmydata apt-get autoremove -y && \ 142 eatmydata apt-get autoclean -y && \ 143 mkdir -p /usr/local/share/meson/cross && \ 144 echo "[binaries]\n\ 145c = '/usr/bin/s390x-linux-gnu-gcc'\n\ 146ar = '/usr/bin/s390x-linux-gnu-gcc-ar'\n\ 147strip = '/usr/bin/s390x-linux-gnu-strip'\n\ 148pkgconfig = '/usr/bin/s390x-linux-gnu-pkg-config'\n\ 149\n\ 150[host_machine]\n\ 151system = 'linux'\n\ 152cpu_family = 's390x'\n\ 153cpu = 's390x'\n\ 154endian = 'big'" > /usr/local/share/meson/cross/s390x-linux-gnu && \ 155 dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --show > /packages.txt && \ 156 mkdir -p /usr/libexec/ccache-wrappers && \ 157 ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/s390x-linux-gnu-c++ && \ 158 ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/s390x-linux-gnu-cc && \ 159 ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/s390x-linux-gnu-g++ && \ 160 ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/s390x-linux-gnu-gcc 161 162ENV ABI "s390x-linux-gnu" 163ENV MESON_OPTS "--cross-file=s390x-linux-gnu" 164ENV QEMU_CONFIGURE_OPTS --cross-prefix=s390x-linux-gnu- 165ENV DEF_TARGET_LIST s390x-softmmu,s390x-linux-user 166