xref: /openbmc/qemu/tests/docker/dockerfiles/debian-i686-cross.docker (revision aa5730b07ebcebf26206a4f70a5118dc469e1160)
1*aa5730b0SDaniel P. Berrangé# THIS FILE WAS AUTO-GENERATED
2*aa5730b0SDaniel P. Berrangé#
3*aa5730b0SDaniel P. Berrangé#  $ lcitool dockerfile --layers all --cross-arch i686 debian-11 qemu
4*aa5730b0SDaniel P. Berrangé#
5*aa5730b0SDaniel P. Berrangé# https://gitlab.com/libvirt/libvirt-ci
6*aa5730b0SDaniel P. Berrangé
7*aa5730b0SDaniel P. BerrangéFROM docker.io/library/debian:11-slim
8*aa5730b0SDaniel P. Berrangé
9*aa5730b0SDaniel P. BerrangéRUN export DEBIAN_FRONTEND=noninteractive && \
10*aa5730b0SDaniel P. Berrangé    apt-get update && \
11*aa5730b0SDaniel P. Berrangé    apt-get install -y eatmydata && \
12*aa5730b0SDaniel P. Berrangé    eatmydata apt-get dist-upgrade -y && \
13*aa5730b0SDaniel P. Berrangé    eatmydata apt-get install --no-install-recommends -y \
14*aa5730b0SDaniel P. Berrangé                      bash \
15*aa5730b0SDaniel P. Berrangé                      bc \
16*aa5730b0SDaniel P. Berrangé                      bison \
17*aa5730b0SDaniel P. Berrangé                      bsdextrautils \
18*aa5730b0SDaniel P. Berrangé                      bzip2 \
19*aa5730b0SDaniel P. Berrangé                      ca-certificates \
20*aa5730b0SDaniel P. Berrangé                      ccache \
21*aa5730b0SDaniel P. Berrangé                      dbus \
22*aa5730b0SDaniel P. Berrangé                      debianutils \
23*aa5730b0SDaniel P. Berrangé                      diffutils \
24*aa5730b0SDaniel P. Berrangé                      exuberant-ctags \
25*aa5730b0SDaniel P. Berrangé                      findutils \
26*aa5730b0SDaniel P. Berrangé                      flex \
27*aa5730b0SDaniel P. Berrangé                      gcc \
28*aa5730b0SDaniel P. Berrangé                      gcovr \
29*aa5730b0SDaniel P. Berrangé                      gettext \
30*aa5730b0SDaniel P. Berrangé                      git \
31*aa5730b0SDaniel P. Berrangé                      hostname \
32*aa5730b0SDaniel P. Berrangé                      libglib2.0-dev \
33*aa5730b0SDaniel P. Berrangé                      libpcre2-dev \
34*aa5730b0SDaniel P. Berrangé                      libsndio-dev \
35*aa5730b0SDaniel P. Berrangé                      libspice-protocol-dev \
36*aa5730b0SDaniel P. Berrangé                      llvm \
37*aa5730b0SDaniel P. Berrangé                      locales \
38*aa5730b0SDaniel P. Berrangé                      make \
39*aa5730b0SDaniel P. Berrangé                      meson \
40*aa5730b0SDaniel P. Berrangé                      mtools \
41*aa5730b0SDaniel P. Berrangé                      ncat \
42*aa5730b0SDaniel P. Berrangé                      ninja-build \
43*aa5730b0SDaniel P. Berrangé                      openssh-client \
44*aa5730b0SDaniel P. Berrangé                      pkgconf \
45*aa5730b0SDaniel P. Berrangé                      python3 \
46*aa5730b0SDaniel P. Berrangé                      python3-numpy \
47*aa5730b0SDaniel P. Berrangé                      python3-opencv \
48*aa5730b0SDaniel P. Berrangé                      python3-pillow \
49*aa5730b0SDaniel P. Berrangé                      python3-pip \
50*aa5730b0SDaniel P. Berrangé                      python3-setuptools \
51*aa5730b0SDaniel P. Berrangé                      python3-sphinx \
52*aa5730b0SDaniel P. Berrangé                      python3-sphinx-rtd-theme \
53*aa5730b0SDaniel P. Berrangé                      python3-venv \
54*aa5730b0SDaniel P. Berrangé                      python3-wheel \
55*aa5730b0SDaniel P. Berrangé                      python3-yaml \
56*aa5730b0SDaniel P. Berrangé                      rpm2cpio \
57*aa5730b0SDaniel P. Berrangé                      sed \
58*aa5730b0SDaniel P. Berrangé                      socat \
59*aa5730b0SDaniel P. Berrangé                      sparse \
60*aa5730b0SDaniel P. Berrangé                      tar \
61*aa5730b0SDaniel P. Berrangé                      tesseract-ocr \
62*aa5730b0SDaniel P. Berrangé                      tesseract-ocr-eng \
63*aa5730b0SDaniel P. Berrangé                      xorriso \
64*aa5730b0SDaniel P. Berrangé                      zstd && \
65*aa5730b0SDaniel P. Berrangé    eatmydata apt-get autoremove -y && \
66*aa5730b0SDaniel P. Berrangé    eatmydata apt-get autoclean -y && \
67*aa5730b0SDaniel P. Berrangé    sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \
68*aa5730b0SDaniel P. Berrangé    dpkg-reconfigure locales
69*aa5730b0SDaniel P. Berrangé
70*aa5730b0SDaniel P. BerrangéRUN /usr/bin/pip3 install tomli
71*aa5730b0SDaniel P. Berrangé
72*aa5730b0SDaniel P. BerrangéENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers"
73*aa5730b0SDaniel P. BerrangéENV LANG "en_US.UTF-8"
74*aa5730b0SDaniel P. BerrangéENV MAKE "/usr/bin/make"
75*aa5730b0SDaniel P. BerrangéENV NINJA "/usr/bin/ninja"
76*aa5730b0SDaniel P. BerrangéENV PYTHON "/usr/bin/python3"
77*aa5730b0SDaniel P. Berrangé
78*aa5730b0SDaniel P. BerrangéRUN export DEBIAN_FRONTEND=noninteractive && \
79*aa5730b0SDaniel P. Berrangé    dpkg --add-architecture i386 && \
80*aa5730b0SDaniel P. Berrangé    eatmydata apt-get update && \
81*aa5730b0SDaniel P. Berrangé    eatmydata apt-get dist-upgrade -y && \
82*aa5730b0SDaniel P. Berrangé    eatmydata apt-get install --no-install-recommends -y dpkg-dev && \
83*aa5730b0SDaniel P. Berrangé    eatmydata apt-get install --no-install-recommends -y \
84*aa5730b0SDaniel P. Berrangé                      g++-i686-linux-gnu \
85*aa5730b0SDaniel P. Berrangé                      gcc-i686-linux-gnu \
86*aa5730b0SDaniel P. Berrangé                      libaio-dev:i386 \
87*aa5730b0SDaniel P. Berrangé                      libasan6:i386 \
88*aa5730b0SDaniel P. Berrangé                      libasound2-dev:i386 \
89*aa5730b0SDaniel P. Berrangé                      libattr1-dev:i386 \
90*aa5730b0SDaniel P. Berrangé                      libbpf-dev:i386 \
91*aa5730b0SDaniel P. Berrangé                      libbrlapi-dev:i386 \
92*aa5730b0SDaniel P. Berrangé                      libbz2-dev:i386 \
93*aa5730b0SDaniel P. Berrangé                      libc6-dev:i386 \
94*aa5730b0SDaniel P. Berrangé                      libcacard-dev:i386 \
95*aa5730b0SDaniel P. Berrangé                      libcap-ng-dev:i386 \
96*aa5730b0SDaniel P. Berrangé                      libcapstone-dev:i386 \
97*aa5730b0SDaniel P. Berrangé                      libcmocka-dev:i386 \
98*aa5730b0SDaniel P. Berrangé                      libcurl4-gnutls-dev:i386 \
99*aa5730b0SDaniel P. Berrangé                      libdaxctl-dev:i386 \
100*aa5730b0SDaniel P. Berrangé                      libdrm-dev:i386 \
101*aa5730b0SDaniel P. Berrangé                      libepoxy-dev:i386 \
102*aa5730b0SDaniel P. Berrangé                      libfdt-dev:i386 \
103*aa5730b0SDaniel P. Berrangé                      libffi-dev:i386 \
104*aa5730b0SDaniel P. Berrangé                      libfuse3-dev:i386 \
105*aa5730b0SDaniel P. Berrangé                      libgbm-dev:i386 \
106*aa5730b0SDaniel P. Berrangé                      libgcrypt20-dev:i386 \
107*aa5730b0SDaniel P. Berrangé                      libglib2.0-dev:i386 \
108*aa5730b0SDaniel P. Berrangé                      libglusterfs-dev:i386 \
109*aa5730b0SDaniel P. Berrangé                      libgnutls28-dev:i386 \
110*aa5730b0SDaniel P. Berrangé                      libgtk-3-dev:i386 \
111*aa5730b0SDaniel P. Berrangé                      libibumad-dev:i386 \
112*aa5730b0SDaniel P. Berrangé                      libibverbs-dev:i386 \
113*aa5730b0SDaniel P. Berrangé                      libiscsi-dev:i386 \
114*aa5730b0SDaniel P. Berrangé                      libjemalloc-dev:i386 \
115*aa5730b0SDaniel P. Berrangé                      libjpeg62-turbo-dev:i386 \
116*aa5730b0SDaniel P. Berrangé                      libjson-c-dev:i386 \
117*aa5730b0SDaniel P. Berrangé                      liblttng-ust-dev:i386 \
118*aa5730b0SDaniel P. Berrangé                      liblzo2-dev:i386 \
119*aa5730b0SDaniel P. Berrangé                      libncursesw5-dev:i386 \
120*aa5730b0SDaniel P. Berrangé                      libnfs-dev:i386 \
121*aa5730b0SDaniel P. Berrangé                      libnuma-dev:i386 \
122*aa5730b0SDaniel P. Berrangé                      libpam0g-dev:i386 \
123*aa5730b0SDaniel P. Berrangé                      libpipewire-0.3-dev:i386 \
124*aa5730b0SDaniel P. Berrangé                      libpixman-1-dev:i386 \
125*aa5730b0SDaniel P. Berrangé                      libpng-dev:i386 \
126*aa5730b0SDaniel P. Berrangé                      libpulse-dev:i386 \
127*aa5730b0SDaniel P. Berrangé                      librbd-dev:i386 \
128*aa5730b0SDaniel P. Berrangé                      librdmacm-dev:i386 \
129*aa5730b0SDaniel P. Berrangé                      libsasl2-dev:i386 \
130*aa5730b0SDaniel P. Berrangé                      libsdl2-dev:i386 \
131*aa5730b0SDaniel P. Berrangé                      libsdl2-image-dev:i386 \
132*aa5730b0SDaniel P. Berrangé                      libseccomp-dev:i386 \
133*aa5730b0SDaniel P. Berrangé                      libselinux1-dev:i386 \
134*aa5730b0SDaniel P. Berrangé                      libslirp-dev:i386 \
135*aa5730b0SDaniel P. Berrangé                      libsnappy-dev:i386 \
136*aa5730b0SDaniel P. Berrangé                      libspice-server-dev:i386 \
137*aa5730b0SDaniel P. Berrangé                      libssh-gcrypt-dev:i386 \
138*aa5730b0SDaniel P. Berrangé                      libsystemd-dev:i386 \
139*aa5730b0SDaniel P. Berrangé                      libtasn1-6-dev:i386 \
140*aa5730b0SDaniel P. Berrangé                      libubsan1:i386 \
141*aa5730b0SDaniel P. Berrangé                      libudev-dev:i386 \
142*aa5730b0SDaniel P. Berrangé                      liburing-dev:i386 \
143*aa5730b0SDaniel P. Berrangé                      libusb-1.0-0-dev:i386 \
144*aa5730b0SDaniel P. Berrangé                      libusbredirhost-dev:i386 \
145*aa5730b0SDaniel P. Berrangé                      libvdeplug-dev:i386 \
146*aa5730b0SDaniel P. Berrangé                      libvirglrenderer-dev:i386 \
147*aa5730b0SDaniel P. Berrangé                      libvte-2.91-dev:i386 \
148*aa5730b0SDaniel P. Berrangé                      libzstd-dev:i386 \
149*aa5730b0SDaniel P. Berrangé                      nettle-dev:i386 \
150*aa5730b0SDaniel P. Berrangé                      systemtap-sdt-dev:i386 \
151*aa5730b0SDaniel P. Berrangé                      xfslibs-dev:i386 \
152*aa5730b0SDaniel P. Berrangé                      zlib1g-dev:i386 && \
153*aa5730b0SDaniel P. Berrangé    eatmydata apt-get autoremove -y && \
154*aa5730b0SDaniel P. Berrangé    eatmydata apt-get autoclean -y && \
155*aa5730b0SDaniel P. Berrangé    mkdir -p /usr/local/share/meson/cross && \
156*aa5730b0SDaniel P. Berrangé    printf "[binaries]\n\
157*aa5730b0SDaniel P. Berrangéc = '/usr/bin/i686-linux-gnu-gcc'\n\
158*aa5730b0SDaniel P. Berrangéar = '/usr/bin/i686-linux-gnu-gcc-ar'\n\
159*aa5730b0SDaniel P. Berrangéstrip = '/usr/bin/i686-linux-gnu-strip'\n\
160*aa5730b0SDaniel P. Berrangépkgconfig = '/usr/bin/i686-linux-gnu-pkg-config'\n\
161*aa5730b0SDaniel P. Berrangé\n\
162*aa5730b0SDaniel P. Berrangé[host_machine]\n\
163*aa5730b0SDaniel P. Berrangésystem = 'linux'\n\
164*aa5730b0SDaniel P. Berrangécpu_family = 'x86'\n\
165*aa5730b0SDaniel P. Berrangécpu = 'i686'\n\
166*aa5730b0SDaniel P. Berrangéendian = 'little'\n" > /usr/local/share/meson/cross/i686-linux-gnu && \
167*aa5730b0SDaniel P. Berrangé    dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --show > /packages.txt && \
168*aa5730b0SDaniel P. Berrangé    mkdir -p /usr/libexec/ccache-wrappers && \
169*aa5730b0SDaniel P. Berrangé    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/i686-linux-gnu-c++ && \
170*aa5730b0SDaniel P. Berrangé    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/i686-linux-gnu-cc && \
171*aa5730b0SDaniel P. Berrangé    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/i686-linux-gnu-g++ && \
172*aa5730b0SDaniel P. Berrangé    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/i686-linux-gnu-gcc
173*aa5730b0SDaniel P. Berrangé
174*aa5730b0SDaniel P. BerrangéENV ABI "i686-linux-gnu"
175*aa5730b0SDaniel P. BerrangéENV MESON_OPTS "--cross-file=i686-linux-gnu"
176*aa5730b0SDaniel P. BerrangéENV QEMU_CONFIGURE_OPTS --cross-prefix=x86_64-linux-gnu-
177*aa5730b0SDaniel P. BerrangéENV DEF_TARGET_LIST x86_64-softmmu,x86_64-linux-user,i386-softmmu,i386-linux-user
178*aa5730b0SDaniel P. Berrangé# As a final step configure the user (if env is defined)
179*aa5730b0SDaniel P. BerrangéARG USER
180*aa5730b0SDaniel P. BerrangéARG UID
181*aa5730b0SDaniel P. BerrangéRUN if [ "${USER}" ]; then \
182*aa5730b0SDaniel P. Berrangé  id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi
183