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