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