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