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