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