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