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