1# THIS FILE WAS AUTO-GENERATED 2# 3# $ lcitool dockerfile --layers all --cross mingw64 fedora-37 qemu 4# 5# https://gitlab.com/libvirt/libvirt-ci 6 7FROM registry.fedoraproject.org/fedora:37 8 9RUN dnf install -y nosync && \ 10 printf '#!/bin/sh\n\ 11if test -d /usr/lib64\n\ 12then\n\ 13 export LD_PRELOAD=/usr/lib64/nosync/nosync.so\n\ 14else\n\ 15 export LD_PRELOAD=/usr/lib/nosync/nosync.so\n\ 16fi\n\ 17exec "$@"\n' > /usr/bin/nosync && \ 18 chmod +x /usr/bin/nosync && \ 19 nosync dnf update -y && \ 20 nosync dnf install -y \ 21 bash \ 22 bc \ 23 bison \ 24 bzip2 \ 25 ca-certificates \ 26 ccache \ 27 ctags \ 28 dbus-daemon \ 29 diffutils \ 30 findutils \ 31 flex \ 32 gcovr \ 33 git \ 34 glib2-devel \ 35 glibc-langpack-en \ 36 hostname \ 37 llvm \ 38 make \ 39 meson \ 40 mtools \ 41 ninja-build \ 42 nmap-ncat \ 43 openssh-clients \ 44 pcre-static \ 45 python3 \ 46 python3-PyYAML \ 47 python3-numpy \ 48 python3-opencv \ 49 python3-pillow \ 50 python3-pip \ 51 python3-sphinx \ 52 python3-sphinx_rtd_theme \ 53 sed \ 54 socat \ 55 sparse \ 56 spice-protocol \ 57 tar \ 58 tesseract \ 59 tesseract-langpack-eng \ 60 util-linux \ 61 which \ 62 xorriso \ 63 zstd && \ 64 nosync dnf autoremove -y && \ 65 nosync dnf clean all -y 66 67ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers" 68ENV LANG "en_US.UTF-8" 69ENV MAKE "/usr/bin/make" 70ENV NINJA "/usr/bin/ninja" 71ENV PYTHON "/usr/bin/python3" 72 73RUN nosync dnf install -y \ 74 mingw32-nsis \ 75 mingw64-SDL2 \ 76 mingw64-SDL2_image \ 77 mingw64-bzip2 \ 78 mingw64-curl \ 79 mingw64-gcc \ 80 mingw64-gcc-c++ \ 81 mingw64-gettext \ 82 mingw64-glib2 \ 83 mingw64-gnutls \ 84 mingw64-gtk3 \ 85 mingw64-libepoxy \ 86 mingw64-libgcrypt \ 87 mingw64-libjpeg-turbo \ 88 mingw64-libpng \ 89 mingw64-libtasn1 \ 90 mingw64-nettle \ 91 mingw64-pixman \ 92 mingw64-pkg-config && \ 93 nosync dnf clean all -y && \ 94 rpm -qa | sort > /packages.txt && \ 95 mkdir -p /usr/libexec/ccache-wrappers && \ 96 ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/x86_64-w64-mingw32-c++ && \ 97 ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/x86_64-w64-mingw32-cc && \ 98 ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/x86_64-w64-mingw32-g++ && \ 99 ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/x86_64-w64-mingw32-gcc 100 101ENV ABI "x86_64-w64-mingw32" 102ENV MESON_OPTS "--cross-file=/usr/share/mingw/toolchain-mingw64.meson" 103ENV QEMU_CONFIGURE_OPTS --cross-prefix=x86_64-w64-mingw32- 104ENV DEF_TARGET_LIST x86_64-softmmu 105# As a final step configure the user (if env is defined) 106ARG USER 107ARG UID 108RUN if [ "${USER}" ]; then \ 109 id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi 110