1# THIS FILE WAS AUTO-GENERATED 2# 3# $ lcitool dockerfile --layers all --cross ppc64le 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 ppc64el && \ 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++-powerpc64le-linux-gnu \ 75 gcc-powerpc64le-linux-gnu \ 76 libaio-dev:ppc64el \ 77 libasan5:ppc64el \ 78 libasound2-dev:ppc64el \ 79 libattr1-dev:ppc64el \ 80 libbpf-dev:ppc64el \ 81 libbrlapi-dev:ppc64el \ 82 libbz2-dev:ppc64el \ 83 libc6-dev:ppc64el \ 84 libcacard-dev:ppc64el \ 85 libcap-ng-dev:ppc64el \ 86 libcapstone-dev:ppc64el \ 87 libcmocka-dev:ppc64el \ 88 libcurl4-gnutls-dev:ppc64el \ 89 libdaxctl-dev:ppc64el \ 90 libdrm-dev:ppc64el \ 91 libepoxy-dev:ppc64el \ 92 libfdt-dev:ppc64el \ 93 libffi-dev:ppc64el \ 94 libfuse3-dev:ppc64el \ 95 libgbm-dev:ppc64el \ 96 libgcrypt20-dev:ppc64el \ 97 libglib2.0-dev:ppc64el \ 98 libglusterfs-dev:ppc64el \ 99 libgnutls28-dev:ppc64el \ 100 libgtk-3-dev:ppc64el \ 101 libibumad-dev:ppc64el \ 102 libibverbs-dev:ppc64el \ 103 libiscsi-dev:ppc64el \ 104 libjemalloc-dev:ppc64el \ 105 libjpeg62-turbo-dev:ppc64el \ 106 libjson-c-dev:ppc64el \ 107 liblttng-ust-dev:ppc64el \ 108 liblzo2-dev:ppc64el \ 109 libncursesw5-dev:ppc64el \ 110 libnfs-dev:ppc64el \ 111 libnuma-dev:ppc64el \ 112 libpam0g-dev:ppc64el \ 113 libpixman-1-dev:ppc64el \ 114 libpng-dev:ppc64el \ 115 libpulse-dev:ppc64el \ 116 librbd-dev:ppc64el \ 117 librdmacm-dev:ppc64el \ 118 libsasl2-dev:ppc64el \ 119 libsdl2-dev:ppc64el \ 120 libsdl2-image-dev:ppc64el \ 121 libseccomp-dev:ppc64el \ 122 libselinux1-dev:ppc64el \ 123 libslirp-dev:ppc64el \ 124 libsnappy-dev:ppc64el \ 125 libspice-server-dev:ppc64el \ 126 libssh-gcrypt-dev:ppc64el \ 127 libsystemd-dev:ppc64el \ 128 libtasn1-6-dev:ppc64el \ 129 libubsan1:ppc64el \ 130 libudev-dev:ppc64el \ 131 liburing-dev:ppc64el \ 132 libusb-1.0-0-dev:ppc64el \ 133 libusbredirhost-dev:ppc64el \ 134 libvdeplug-dev:ppc64el \ 135 libvirglrenderer-dev:ppc64el \ 136 libvte-2.91-dev:ppc64el \ 137 libzstd-dev:ppc64el \ 138 nettle-dev:ppc64el \ 139 systemtap-sdt-dev:ppc64el \ 140 xfslibs-dev:ppc64el \ 141 zlib1g-dev:ppc64el && \ 142 eatmydata apt-get autoremove -y && \ 143 eatmydata apt-get autoclean -y && \ 144 mkdir -p /usr/local/share/meson/cross && \ 145 echo "[binaries]\n\ 146c = '/usr/bin/powerpc64le-linux-gnu-gcc'\n\ 147ar = '/usr/bin/powerpc64le-linux-gnu-gcc-ar'\n\ 148strip = '/usr/bin/powerpc64le-linux-gnu-strip'\n\ 149pkgconfig = '/usr/bin/powerpc64le-linux-gnu-pkg-config'\n\ 150\n\ 151[host_machine]\n\ 152system = 'linux'\n\ 153cpu_family = 'ppc64'\n\ 154cpu = 'powerpc64le'\n\ 155endian = 'little'" > /usr/local/share/meson/cross/powerpc64le-linux-gnu && \ 156 dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --show > /packages.txt && \ 157 mkdir -p /usr/libexec/ccache-wrappers && \ 158 ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/powerpc64le-linux-gnu-c++ && \ 159 ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/powerpc64le-linux-gnu-cc && \ 160 ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/powerpc64le-linux-gnu-g++ && \ 161 ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/powerpc64le-linux-gnu-gcc 162 163ENV ABI "powerpc64le-linux-gnu" 164ENV MESON_OPTS "--cross-file=powerpc64le-linux-gnu" 165ENV QEMU_CONFIGURE_OPTS --cross-prefix=powerpc64le-linux-gnu- 166ENV DEF_TARGET_LIST ppc64-softmmu,ppc64-linux-user 167