Skip to contentSkip to conversation

tests: Remove xfsprogs and g++ from the dockerfiles

PATCH Superseded Thomas Huth 2 participants 10 messages May 13, 2024

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover tests: Remove xfsprogs and g++ from the dockerfiles

The xfsprogs package is not necessary anymore since commit a5730b8bd3 and we don't need g++ in any of the containers (except for the mingw cross compiler container which can be handled differently), so this patch series simplifies the dockerfiles a little bit accordingly.

Philippe Mathieu-Daudé (1):
tests/lcitool: Remove 'xfsprogs' from QEMU

Thomas Huth (3):
tests/lcitool: Remove g++ from the containers (except for the MinGW
one)
tests/lcitool/projects/qemu.yml: Sort entries alphabetically again tests/docker/dockerfiles: Update container files with
"lcitool-refresh"

 tests/docker/dockerfiles/alpine.docker        |  4 ----
 tests/docker/dockerfiles/centos9.docker       |  4 ----
 .../dockerfiles/debian-amd64-cross.docker     |  4 ----
 .../dockerfiles/debian-arm64-cross.docker     |  4 ----
 .../dockerfiles/debian-armel-cross.docker     |  4 ----
 .../dockerfiles/debian-armhf-cross.docker     |  4 ----
 .../dockerfiles/debian-i686-cross.docker      |  4 ----
 .../dockerfiles/debian-mips64el-cross.docker  |  4 ----
 .../dockerfiles/debian-mipsel-cross.docker    |  4 ----
 .../dockerfiles/debian-ppc64el-cross.docker   |  4 ----
 .../dockerfiles/debian-s390x-cross.docker     |  4 ----
 tests/docker/dockerfiles/debian.docker        |  4 ----
 .../dockerfiles/fedora-win64-cross.docker     |  8 +++++---
 tests/docker/dockerfiles/fedora.docker        |  4 ----
 tests/docker/dockerfiles/opensuse-leap.docker |  4 ----
 tests/docker/dockerfiles/ubuntu2204.docker    |  4 ----
 tests/lcitool/projects/qemu.yml               | 20 +++++++++----------
 tests/lcitool/refresh                         | 10 ++++++++--
 18 files changed, 22 insertions(+), 76 deletions(-)
Signature · 1 line
2.45.0
#1 lore raw

PATCH 1/4 tests/lcitool: Remove 'xfsprogs' from QEMU

From: Philippe Mathieu-Daudé <[email protected]>

QEMU's commit a5730b8bd3 ("block/file-posix: Simplify the XFS_IOC_DIOINFO handling") removed the need for the 'xfsprogs' package.

[thuth: Adjusted the patch from the lcitools repo to QEMU's repo]
---
 tests/lcitool/projects/qemu.yml | 1 -
 1 file changed, 1 deletion(-)
tests/lcitool/projects/qemu.yml +0 -1
index 149b15de57..9173d1e36e 100644
@@ -121,7 +121,6 @@ packages:
  - vte
  - which
  - xen
- - xfsprogs
  - xorriso
  - zstdtools
  - zlib
Signature · 1 line
2.45.0
#9 lore raw

PATCH 4/4 tests/docker/dockerfiles: Update container files with "lcitool-refresh"

In reply to Thomas Huth

Run "make lcitool-refresh" after the previous changes to the lcitool files. This removes the g++ and xfslibs-dev packages from the dockerfiles.

---
 tests/docker/dockerfiles/alpine.docker                | 4 ----
 tests/docker/dockerfiles/centos9.docker               | 4 ----
 tests/docker/dockerfiles/debian-amd64-cross.docker    | 4 ----
 tests/docker/dockerfiles/debian-arm64-cross.docker    | 4 ----
 tests/docker/dockerfiles/debian-armel-cross.docker    | 4 ----
 tests/docker/dockerfiles/debian-armhf-cross.docker    | 4 ----
 tests/docker/dockerfiles/debian-i686-cross.docker     | 4 ----
 tests/docker/dockerfiles/debian-mips64el-cross.docker | 4 ----
 tests/docker/dockerfiles/debian-mipsel-cross.docker   | 4 ----
 tests/docker/dockerfiles/debian-ppc64el-cross.docker  | 4 ----
 tests/docker/dockerfiles/debian-s390x-cross.docker    | 4 ----
 tests/docker/dockerfiles/debian.docker                | 4 ----
 tests/docker/dockerfiles/fedora-win64-cross.docker    | 8 +++++---
 tests/docker/dockerfiles/fedora.docker                | 4 ----
 tests/docker/dockerfiles/opensuse-leap.docker         | 4 ----
 tests/docker/dockerfiles/ubuntu2204.docker            | 4 ----
 16 files changed, 5 insertions(+), 63 deletions(-)
tests/docker/dockerfiles/alpine.docker +0 -4
index cd9d7af1ce..554464f31e 100644
@@ -32,7 +32,6 @@ RUN apk update && \
         findutils \
         flex \
         fuse3-dev \
-        g++ \
         gcc \
         gcovr \
         gettext \
@@ -110,7 +109,6 @@ RUN apk update && \
         vte3-dev \
         which \
         xen-dev \
-        xfsprogs-dev \
         xorriso \
         zlib-dev \
         zlib-static \
@@ -119,10 +117,8 @@ RUN apk update && \
     rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED && \
     apk list --installed | sort > /packages.txt && \
     mkdir -p /usr/libexec/ccache-wrappers && \
-    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/c++ && \
     ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc && \
     ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/clang && \
-    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/g++ && \
     ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc
 
 ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers"
tests/docker/dockerfiles/centos9.docker +0 -4
index 6cf47ce786..0256865b9e 100644
@@ -34,7 +34,6 @@ RUN dnf distro-sync -y && \
         flex \
         fuse3-devel \
         gcc \
-        gcc-c++ \
         gettext \
         git \
         glib2-devel \
@@ -115,7 +114,6 @@ RUN dnf distro-sync -y && \
         util-linux \
         vte291-devel \
         which \
-        xfsprogs-devel \
         xorriso \
         zlib-devel \
         zlib-static \
@@ -125,10 +123,8 @@ RUN dnf distro-sync -y && \
     rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED && \
     rpm -qa | sort > /packages.txt && \
     mkdir -p /usr/libexec/ccache-wrappers && \
-    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/c++ && \
     ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc && \
     ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/clang && \
-    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/g++ && \
     ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc
 
 ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers"
tests/docker/dockerfiles/debian-amd64-cross.docker +0 -4
index d0b0e9778e..f8c61d1191 100644
@@ -79,7 +79,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
     eatmydata apt-get dist-upgrade -y && \
     eatmydata apt-get install --no-install-recommends -y dpkg-dev && \
     eatmydata apt-get install --no-install-recommends -y \
-                      g++-x86-64-linux-gnu \
                       gcc-x86-64-linux-gnu \
                       libaio-dev:amd64 \
                       libasan6:amd64 \
@@ -149,7 +148,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       libzstd-dev:amd64 \
                       nettle-dev:amd64 \
                       systemtap-sdt-dev:amd64 \
-                      xfslibs-dev:amd64 \
                       zlib1g-dev:amd64 && \
     eatmydata apt-get autoremove -y && \
     eatmydata apt-get autoclean -y && \
@@ -167,9 +165,7 @@ cpu = 'x86_64'\n\
 endian = 'little'\n" > /usr/local/share/meson/cross/x86_64-linux-gnu && \
     dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --show > /packages.txt && \
     mkdir -p /usr/libexec/ccache-wrappers && \
-    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/x86_64-linux-gnu-c++ && \
     ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/x86_64-linux-gnu-cc && \
-    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/x86_64-linux-gnu-g++ && \
     ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/x86_64-linux-gnu-gcc
 
 ENV ABI "x86_64-linux-gnu"
tests/docker/dockerfiles/debian-arm64-cross.docker +0 -4
index 8cb225740e..6510872279 100644
@@ -79,7 +79,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
     eatmydata apt-get dist-upgrade -y && \
     eatmydata apt-get install --no-install-recommends -y dpkg-dev && \
     eatmydata apt-get install --no-install-recommends -y \
-                      g++-aarch64-linux-gnu \
                       gcc-aarch64-linux-gnu \
                       libaio-dev:arm64 \
                       libasan6:arm64 \
@@ -148,7 +147,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       libzstd-dev:arm64 \
                       nettle-dev:arm64 \
                       systemtap-sdt-dev:arm64 \
-                      xfslibs-dev:arm64 \
                       zlib1g-dev:arm64 && \
     eatmydata apt-get autoremove -y && \
     eatmydata apt-get autoclean -y && \
@@ -166,9 +164,7 @@ cpu = 'aarch64'\n\
 endian = 'little'\n" > /usr/local/share/meson/cross/aarch64-linux-gnu && \
     dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --show > /packages.txt && \
     mkdir -p /usr/libexec/ccache-wrappers && \
-    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/aarch64-linux-gnu-c++ && \
     ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/aarch64-linux-gnu-cc && \
-    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/aarch64-linux-gnu-g++ && \
     ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/aarch64-linux-gnu-gcc
 
 ENV ABI "aarch64-linux-gnu"
tests/docker/dockerfiles/debian-armel-cross.docker +0 -4
index e6f37418ed..f227d42987 100644
@@ -82,7 +82,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
     eatmydata apt-get dist-upgrade -y && \
     eatmydata apt-get install --no-install-recommends -y dpkg-dev && \
     eatmydata apt-get install --no-install-recommends -y \
-                      g++-arm-linux-gnueabi \
                       gcc-arm-linux-gnueabi \
                       libaio-dev:armel \
                       libasan6:armel \
@@ -149,7 +148,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       libzstd-dev:armel \
                       nettle-dev:armel \
                       systemtap-sdt-dev:armel \
-                      xfslibs-dev:armel \
                       zlib1g-dev:armel && \
     eatmydata apt-get autoremove -y && \
     eatmydata apt-get autoclean -y && \
@@ -167,9 +165,7 @@ cpu = 'arm'\n\
 endian = 'little'\n" > /usr/local/share/meson/cross/arm-linux-gnueabi && \
     dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --show > /packages.txt && \
     mkdir -p /usr/libexec/ccache-wrappers && \
-    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/arm-linux-gnueabi-c++ && \
     ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/arm-linux-gnueabi-cc && \
-    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/arm-linux-gnueabi-g++ && \
     ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/arm-linux-gnueabi-gcc
 
 ENV ABI "arm-linux-gnueabi"
tests/docker/dockerfiles/debian-armhf-cross.docker +0 -4
index 407a014f57..58bdf07223 100644
@@ -79,7 +79,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
     eatmydata apt-get dist-upgrade -y && \
     eatmydata apt-get install --no-install-recommends -y dpkg-dev && \
     eatmydata apt-get install --no-install-recommends -y \
-                      g++-arm-linux-gnueabihf \
                       gcc-arm-linux-gnueabihf \
                       libaio-dev:armhf \
                       libasan6:armhf \
@@ -148,7 +147,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       libzstd-dev:armhf \
                       nettle-dev:armhf \
                       systemtap-sdt-dev:armhf \
-                      xfslibs-dev:armhf \
                       zlib1g-dev:armhf && \
     eatmydata apt-get autoremove -y && \
     eatmydata apt-get autoclean -y && \
@@ -166,9 +164,7 @@ cpu = 'armhf'\n\
 endian = 'little'\n" > /usr/local/share/meson/cross/arm-linux-gnueabihf && \
     dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --show > /packages.txt && \
     mkdir -p /usr/libexec/ccache-wrappers && \
-    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/arm-linux-gnueabihf-c++ && \
     ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/arm-linux-gnueabihf-cc && \
-    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/arm-linux-gnueabihf-g++ && \
     ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/arm-linux-gnueabihf-gcc
 
 ENV ABI "arm-linux-gnueabihf"
tests/docker/dockerfiles/debian-i686-cross.docker +0 -4
index bdc9566b67..9f4102be8f 100644
@@ -82,7 +82,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
     eatmydata apt-get dist-upgrade -y && \
     eatmydata apt-get install --no-install-recommends -y dpkg-dev && \
     eatmydata apt-get install --no-install-recommends -y \
-                      g++-i686-linux-gnu \
                       gcc-i686-linux-gnu \
                       libaio-dev:i386 \
                       libasan6:i386 \
@@ -149,7 +148,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       libzstd-dev:i386 \
                       nettle-dev:i386 \
                       systemtap-sdt-dev:i386 \
-                      xfslibs-dev:i386 \
                       zlib1g-dev:i386 && \
     eatmydata apt-get autoremove -y && \
     eatmydata apt-get autoclean -y && \
@@ -167,9 +165,7 @@ cpu = 'i686'\n\
 endian = 'little'\n" > /usr/local/share/meson/cross/i686-linux-gnu && \
     dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --show > /packages.txt && \
     mkdir -p /usr/libexec/ccache-wrappers && \
-    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/i686-linux-gnu-c++ && \
     ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/i686-linux-gnu-cc && \
-    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/i686-linux-gnu-g++ && \
     ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/i686-linux-gnu-gcc
 
 ENV ABI "i686-linux-gnu"
tests/docker/dockerfiles/debian-mips64el-cross.docker +0 -4
index 4d995d0b12..c861c3bd5b 100644
@@ -82,7 +82,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
     eatmydata apt-get dist-upgrade -y && \
     eatmydata apt-get install --no-install-recommends -y dpkg-dev && \
     eatmydata apt-get install --no-install-recommends -y \
-                      g++-mips64el-linux-gnuabi64 \
                       gcc-mips64el-linux-gnuabi64 \
                       libaio-dev:mips64el \
                       libasound2-dev:mips64el \
@@ -147,7 +146,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       libzstd-dev:mips64el \
                       nettle-dev:mips64el \
                       systemtap-sdt-dev:mips64el \
-                      xfslibs-dev:mips64el \
                       zlib1g-dev:mips64el && \
     eatmydata apt-get autoremove -y && \
     eatmydata apt-get autoclean -y && \
@@ -165,9 +163,7 @@ cpu = 'mips64el'\n\
 endian = 'little'\n" > /usr/local/share/meson/cross/mips64el-linux-gnuabi64 && \
     dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --show > /packages.txt && \
     mkdir -p /usr/libexec/ccache-wrappers && \
-    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/mips64el-linux-gnuabi64-c++ && \
     ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/mips64el-linux-gnuabi64-cc && \
-    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/mips64el-linux-gnuabi64-g++ && \
     ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/mips64el-linux-gnuabi64-gcc
 
 ENV ABI "mips64el-linux-gnuabi64"
tests/docker/dockerfiles/debian-mipsel-cross.docker +0 -4
index 0cf803bda5..fe9415395e 100644
@@ -82,7 +82,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
     eatmydata apt-get dist-upgrade -y && \
     eatmydata apt-get install --no-install-recommends -y dpkg-dev && \
     eatmydata apt-get install --no-install-recommends -y \
-                      g++-mipsel-linux-gnu \
                       gcc-mipsel-linux-gnu \
                       libaio-dev:mipsel \
                       libasound2-dev:mipsel \
@@ -147,7 +146,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       libzstd-dev:mipsel \
                       nettle-dev:mipsel \
                       systemtap-sdt-dev:mipsel \
-                      xfslibs-dev:mipsel \
                       zlib1g-dev:mipsel && \
     eatmydata apt-get autoremove -y && \
     eatmydata apt-get autoclean -y && \
@@ -165,9 +163,7 @@ cpu = 'mipsel'\n\
 endian = 'little'\n" > /usr/local/share/meson/cross/mipsel-linux-gnu && \
     dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --show > /packages.txt && \
     mkdir -p /usr/libexec/ccache-wrappers && \
-    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/mipsel-linux-gnu-c++ && \
     ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/mipsel-linux-gnu-cc && \
-    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/mipsel-linux-gnu-g++ && \
     ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/mipsel-linux-gnu-gcc
 
 ENV ABI "mipsel-linux-gnu"
tests/docker/dockerfiles/debian-ppc64el-cross.docker +0 -4
index 6180ec08c3..35c8ff0864 100644
@@ -79,7 +79,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
     eatmydata apt-get dist-upgrade -y && \
     eatmydata apt-get install --no-install-recommends -y dpkg-dev && \
     eatmydata apt-get install --no-install-recommends -y \
-                      g++-powerpc64le-linux-gnu \
                       gcc-powerpc64le-linux-gnu \
                       libaio-dev:ppc64el \
                       libasan6:ppc64el \
@@ -147,7 +146,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       libzstd-dev:ppc64el \
                       nettle-dev:ppc64el \
                       systemtap-sdt-dev:ppc64el \
-                      xfslibs-dev:ppc64el \
                       zlib1g-dev:ppc64el && \
     eatmydata apt-get autoremove -y && \
     eatmydata apt-get autoclean -y && \
@@ -165,9 +163,7 @@ cpu = 'powerpc64le'\n\
 endian = 'little'\n" > /usr/local/share/meson/cross/powerpc64le-linux-gnu && \
     dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --show > /packages.txt && \
     mkdir -p /usr/libexec/ccache-wrappers && \
-    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/powerpc64le-linux-gnu-c++ && \
     ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/powerpc64le-linux-gnu-cc && \
-    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/powerpc64le-linux-gnu-g++ && \
     ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/powerpc64le-linux-gnu-gcc
 
 ENV ABI "powerpc64le-linux-gnu"
tests/docker/dockerfiles/debian-s390x-cross.docker +0 -4
index 90c8d3c7b8..bef9dff17a 100644
@@ -79,7 +79,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
     eatmydata apt-get dist-upgrade -y && \
     eatmydata apt-get install --no-install-recommends -y dpkg-dev && \
     eatmydata apt-get install --no-install-recommends -y \
-                      g++-s390x-linux-gnu \
                       gcc-s390x-linux-gnu \
                       libaio-dev:s390x \
                       libasan6:s390x \
@@ -146,7 +145,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       libzstd-dev:s390x \
                       nettle-dev:s390x \
                       systemtap-sdt-dev:s390x \
-                      xfslibs-dev:s390x \
                       zlib1g-dev:s390x && \
     eatmydata apt-get autoremove -y && \
     eatmydata apt-get autoclean -y && \
@@ -164,9 +162,7 @@ cpu = 's390x'\n\
 endian = 'big'\n" > /usr/local/share/meson/cross/s390x-linux-gnu && \
     dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --show > /packages.txt && \
     mkdir -p /usr/libexec/ccache-wrappers && \
-    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/s390x-linux-gnu-c++ && \
     ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/s390x-linux-gnu-cc && \
-    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/s390x-linux-gnu-g++ && \
     ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/s390x-linux-gnu-gcc
 
 ENV ABI "s390x-linux-gnu"
tests/docker/dockerfiles/debian.docker +0 -4
index 5722482e4c..63d7aac616 100644
@@ -25,7 +25,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       exuberant-ctags \
                       findutils \
                       flex \
-                      g++ \
                       gcc \
                       gcovr \
                       gettext \
@@ -129,7 +128,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       tar \
                       tesseract-ocr \
                       tesseract-ocr-eng \
-                      xfslibs-dev \
                       xorriso \
                       zlib1g-dev \
                       zstd && \
@@ -140,10 +138,8 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
     rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED && \
     dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --show > /packages.txt && \
     mkdir -p /usr/libexec/ccache-wrappers && \
-    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/c++ && \
     ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc && \
     ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/clang && \
-    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/g++ && \
     ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc
 
 ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers"
tests/docker/dockerfiles/fedora-win64-cross.docker +5 -3
index d1a480fa71..a5644de57a 100644
@@ -80,7 +80,6 @@ RUN nosync dnf install -y \
                mingw64-bzip2 \
                mingw64-curl \
                mingw64-gcc \
-               mingw64-gcc-c++ \
                mingw64-gettext \
                mingw64-glib2 \
                mingw64-gnutls \
@@ -96,13 +95,16 @@ RUN nosync dnf install -y \
     nosync dnf clean all -y && \
     rpm -qa | sort > /packages.txt && \
     mkdir -p /usr/libexec/ccache-wrappers && \
-    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/x86_64-w64-mingw32-c++ && \
     ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/x86_64-w64-mingw32-cc && \
-    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/x86_64-w64-mingw32-g++ && \
     ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/x86_64-w64-mingw32-gcc
 
 ENV ABI "x86_64-w64-mingw32"
 ENV MESON_OPTS "--cross-file=/usr/share/mingw/toolchain-mingw64.meson"
+
+RUN nosync dnf install -y mingw64-gcc-c++ mingw-w64-tools && \
+  ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/x86_64-w64-mingw32-c++ && \
+  ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/x86_64-w64-mingw32-g++
+
 ENV QEMU_CONFIGURE_OPTS --cross-prefix=x86_64-w64-mingw32-
 ENV DEF_TARGET_LIST x86_64-softmmu
 # As a final step configure the user (if env is defined)
tests/docker/dockerfiles/fedora.docker +0 -4
index 7e6ab0308a..098c894d10 100644
@@ -41,7 +41,6 @@ exec "$@"\n' > /usr/bin/nosync && \
                flex \
                fuse3-devel \
                gcc \
-               gcc-c++ \
                gcovr \
                gettext \
                git \
@@ -130,7 +129,6 @@ exec "$@"\n' > /usr/bin/nosync && \
                vte291-devel \
                which \
                xen-devel \
-               xfsprogs-devel \
                xorriso \
                zlib-devel \
                zlib-static \
@@ -140,10 +138,8 @@ exec "$@"\n' > /usr/bin/nosync && \
     rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED && \
     rpm -qa | sort > /packages.txt && \
     mkdir -p /usr/libexec/ccache-wrappers && \
-    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/c++ && \
     ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc && \
     ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/clang && \
-    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/g++ && \
     ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc
 
 ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers"
tests/docker/dockerfiles/opensuse-leap.docker +0 -4
index c4055bdd10..836f531ac1 100644
@@ -26,7 +26,6 @@ RUN zypper update -y && \
            flex \
            fuse3-devel \
            gcc \
-           gcc-c++ \
            gcovr \
            gettext-runtime \
            git \
@@ -113,7 +112,6 @@ RUN zypper update -y && \
            vte-devel \
            which \
            xen-devel \
-           xfsprogs-devel \
            xorriso \
            zlib-devel \
            zlib-devel-static \
@@ -122,10 +120,8 @@ RUN zypper update -y && \
     rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED && \
     rpm -qa | sort > /packages.txt && \
     mkdir -p /usr/libexec/ccache-wrappers && \
-    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/c++ && \
     ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc && \
     ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/clang && \
-    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/g++ && \
     ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc
 
 RUN /usr/bin/pip3.11 install \
tests/docker/dockerfiles/ubuntu2204.docker +0 -4
index b8e78331db..febd25b320 100644
@@ -25,7 +25,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       exuberant-ctags \
                       findutils \
                       flex \
-                      g++ \
                       gcc \
                       gcovr \
                       gettext \
@@ -129,7 +128,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       tar \
                       tesseract-ocr \
                       tesseract-ocr-eng \
-                      xfslibs-dev \
                       xorriso \
                       zlib1g-dev \
                       zstd && \
@@ -140,10 +138,8 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
     rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED && \
     dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --show > /packages.txt && \
     mkdir -p /usr/libexec/ccache-wrappers && \
-    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/c++ && \
     ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc && \
     ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/clang && \
-    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/g++ && \
     ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc
 
 ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers"
Signature · 1 line
2.45.0
#2 lore raw

PATCH 2/4 tests/lcitool: Remove g++ from the containers (except for the MinGW one)

In reply to Thomas Huth

We don't need C++ for the normal QEMU builds anymore, so installing g++ in each and every container seems to be a waste of time and disk space. The only container that still needs it is the Fedora MinGW container that builds the only remaining C++ code in ./qga/vss-win32/ and we can install it here with an extra RUN statement instead.

This way we can also add the mingw-w64-tools package quite easily which contains the x86_64-w64-mingw32-widl program that is required for compiling the vss code of the guest agent (it was missing before this change, so the VSS code was actually never compiled in the CI).

---
 tests/lcitool/projects/qemu.yml |  1 -
 tests/lcitool/refresh           | 10 ++++++++--
 2 files changed, 8 insertions(+), 3 deletions(-)
tests/lcitool/projects/qemu.yml +0 -1
index 9173d1e36e..b63b6bd850 100644
@@ -22,7 +22,6 @@ packages:
  - findutils
  - flex
  - fuse3
- - g++
  - gcc
  - gcc-native
  - gcovr
tests/lcitool/refresh +8 -2
index 24a735a3f2..dda07ddcd1 100755
@@ -109,6 +109,11 @@ debian12_extras = [
     "ENV QEMU_CONFIGURE_OPTS --enable-netmap\n"
 ]
 
+fedora_mingw_extras = [ "\n"
+    "RUN nosync dnf install -y mingw64-gcc-c++ mingw-w64-tools && \\\n"
+    "  ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/x86_64-w64-mingw32-c++ && \\\n"
+    "  ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/x86_64-w64-mingw32-g++\n\n"
+]
 
 def cross_build(prefix, targets):
     conf = "ENV QEMU_CONFIGURE_OPTS --cross-prefix=%s\n" % (prefix)
@@ -193,8 +198,9 @@ try:
 
     generate_dockerfile("fedora-win64-cross", "fedora-38",
                         cross="mingw64",
-                        trailer=cross_build("x86_64-w64-mingw32-",
-                                            "x86_64-softmmu"))
+                        trailer="".join(fedora_mingw_extras)
+                                + cross_build("x86_64-w64-mingw32-",
+                                              "x86_64-softmmu"))
 
     #
     # Cirrus packages lists for GitLab
Signature · 1 line
2.45.0
#8 lore raw

PATCH 3/4 tests/lcitool/projects/qemu.yml: Sort entries alphabetically again

In reply to Thomas Huth

Let's try to keep the entries in alphabetical order here!

---
 tests/lcitool/projects/qemu.yml | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)
tests/lcitool/projects/qemu.yml +9 -9
index b63b6bd850..752079b858 100644
@@ -35,12 +35,12 @@ packages:
  - hostname
  - json-c
  - libaio
- - libattr
  - libasan
+ - libattr
  - libbpf
- - libc-static
  - libcacard
  - libcap-ng
+ - libc-static
  - libcurl
  - libdrm
  - libepoxy
@@ -54,6 +54,7 @@ packages:
  - libjpeg
  - libnfs
  - libnuma
+ - libpipewire-dev
  - libpmem
  - libpng
  - librbd
@@ -73,27 +74,26 @@ packages:
  - llvm
  - lttng-ust
  - lzo
+ - make
+ - mesa-libgbm
+ - meson
  - mtools
+ - ncursesw
  - netcat
  - nettle
  - ninja
  - nsis
- - make
- - mesa-libgbm
- - meson
- - ncursesw
  - pam
  - pcre-static
  - pixman
- - libpipewire-dev
  - pkg-config
  - pulseaudio
  - python3
- - python3-PyYAML
  - python3-numpy
  - python3-opencv
  - python3-pillow
  - python3-pip
+ - python3-PyYAML
  - python3-sphinx
  - python3-sphinx-rtd-theme
  - python3-sqlite3
@@ -121,6 +121,6 @@ packages:
  - which
  - xen
  - xorriso
- - zstdtools
  - zlib
  - zlib-static
+ - zstdtools
Signature · 1 line
2.45.0
#3 lore raw

Re: [PATCH 2/4] tests/lcitool: Remove g++ from the containers (except for the MinGW one)

In reply to Thomas Huth
Quoted 47 lines · Thomas Huth

We don't need C++ for the normal QEMU builds anymore, so installing g++ in each and every container seems to be a waste of time and disk space. The only container that still needs it is the Fedora MinGW container that builds the only remaining C++ code in ./qga/vss-win32/ and we can install it here with an extra RUN statement instead.

This way we can also add the mingw-w64-tools package quite easily which contains the x86_64-w64-mingw32-widl program that is required for compiling the vss code of the guest agent (it was missing before this change, so the VSS code was actually never compiled in the CI).

---
 tests/lcitool/projects/qemu.yml |  1 -
 tests/lcitool/refresh           | 10 ++++++++--
 2 files changed, 8 insertions(+), 3 deletions(-)
tests/lcitool/projects/qemu.yml +0 -1
index 9173d1e36e..b63b6bd850 100644
@@ -22,7 +22,6 @@ packages:
  - findutils
  - flex
  - fuse3
- - g++
  - gcc
  - gcc-native
  - gcovr
tests/lcitool/refresh +5 -0
index 24a735a3f2..dda07ddcd1 100755
@@ -109,6 +109,11 @@ debian12_extras = [
     "ENV QEMU_CONFIGURE_OPTS --enable-netmap\n"
 ]
 
+fedora_mingw_extras = [ "\n"
+    "RUN nosync dnf install -y mingw64-gcc-c++ mingw-w64-tools && \\\n"
+    "  ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/x86_64-w64-mingw32-c++ && \\\n"
+    "  ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/x86_64-w64-mingw32-g++\n\n"
+]
 
 def cross_build(prefix, targets):
     conf = "ENV QEMU_CONFIGURE_OPTS --cross-prefix=%s\n" % (prefix)
@@ -193,8 +198,9 @@ try:
 

tests/lcitool/refresh try: · line 206

Quoted 10 lines
tests/lcitool/refresh +3 -2
     generate_dockerfile("fedora-win64-cross", "fedora-38",
                         cross="mingw64",
-                        trailer=cross_build("x86_64-w64-mingw32-",
-                                            "x86_64-softmmu"))
+                        trailer="".join(fedora_mingw_extras)
+                                + cross_build("x86_64-w64-mingw32-",
+                                              "x86_64-softmmu"))
 
     #
     # Cirrus packages lists for GitLab

A better way to handle this would be to define a separate project

'tests/lcitool/projects/qemu-win-installer.yml'

With

packages
- g++

Then enable the extra project for win64

    generate_dockerfile("fedora-win64-cross", "fedora-38",
                        project='qemu,qemu-win-installer',
                        cross="mingw64",
                        trailer=cross_build("x86_64-w64-mingw32-",
                                            "x86_64-softmmu"))

which should result in an identical container to what we have today for win64, while letting us slim the other containers.

With regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|
#4 lore raw

Re: [PATCH 2/4] tests/lcitool: Remove g++ from the containers (except for the MinGW one)

Quoted 70 lines · Daniel P. Berrangé
Quoted 47 lines · Thomas Huth

We don't need C++ for the normal QEMU builds anymore, so installing g++ in each and every container seems to be a waste of time and disk space. The only container that still needs it is the Fedora MinGW container that builds the only remaining C++ code in ./qga/vss-win32/ and we can install it here with an extra RUN statement instead.

This way we can also add the mingw-w64-tools package quite easily which contains the x86_64-w64-mingw32-widl program that is required for compiling the vss code of the guest agent (it was missing before this change, so the VSS code was actually never compiled in the CI).

---
  tests/lcitool/projects/qemu.yml |  1 -
  tests/lcitool/refresh           | 10 ++++++++--
  2 files changed, 8 insertions(+), 3 deletions(-)
tests/lcitool/projects/qemu.yml +0 -1
index 9173d1e36e..b63b6bd850 100644
@@ -22,7 +22,6 @@ packages:
   - findutils
   - flex
   - fuse3
- - g++
   - gcc
   - gcc-native
   - gcovr
tests/lcitool/refresh +5 -0
index 24a735a3f2..dda07ddcd1 100755
@@ -109,6 +109,11 @@ debian12_extras = [
      "ENV QEMU_CONFIGURE_OPTS --enable-netmap\n"
  ]
 
+fedora_mingw_extras = [ "\n"
+    "RUN nosync dnf install -y mingw64-gcc-c++ mingw-w64-tools && \\\n"
+    "  ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/x86_64-w64-mingw32-c++ && \\\n"
+    "  ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/x86_64-w64-mingw32-g++\n\n"
+]
 
  def cross_build(prefix, targets):
      conf = "ENV QEMU_CONFIGURE_OPTS --cross-prefix=%s\n" % (prefix)
@@ -193,8 +198,9 @@ try:
 

tests/lcitool/refresh try: · line 206

Quoted 10 lines
tests/lcitool/refresh +3 -2
      generate_dockerfile("fedora-win64-cross", "fedora-38",
                          cross="mingw64",
-                        trailer=cross_build("x86_64-w64-mingw32-",
-                                            "x86_64-softmmu"))
+                        trailer="".join(fedora_mingw_extras)
+                                + cross_build("x86_64-w64-mingw32-",
+                                              "x86_64-softmmu"))
 
      #
      # Cirrus packages lists for GitLab

A better way to handle this would be to define a separate project

'tests/lcitool/projects/qemu-win-installer.yml'

With

packages
- g++

Then enable the extra project for win64

Quoted 8 lines
     generate_dockerfile("fedora-win64-cross", "fedora-38",
                         project='qemu,qemu-win-installer',
                         cross="mingw64",
                         trailer=cross_build("x86_64-w64-mingw32-",
                                             "x86_64-softmmu"))

which should result in an identical container to what we have today for win64, while letting us slim the other containers.

Ok, good idea! ... but then we need to teach lcitool about mingw-w64-tools first, otherwise that vss code won't get built due to the missing "widl" tool.

Thomas

#5 lore raw

Re: [PATCH 2/4] tests/lcitool: Remove g++ from the containers (except for the MinGW one)

Quoted 73 lines · Thomas Huth
Quoted 72 lines · Daniel P. Berrangé
Quoted 44 lines · Thomas Huth

We don't need C++ for the normal QEMU builds anymore, so installing g++ in each and every container seems to be a waste of time and disk space. The only container that still needs it is the Fedora MinGW container that builds the only remaining C++ code in ./qga/vss-win32/ and we can install it here with an extra RUN statement instead.

This way we can also add the mingw-w64-tools package quite easily which contains the x86_64-w64-mingw32-widl program that is required for compiling the vss code of the guest agent (it was missing before this change, so the VSS code was actually never compiled in the CI).

---
  tests/lcitool/projects/qemu.yml |  1 -
  tests/lcitool/refresh           | 10 ++++++++--
  2 files changed, 8 insertions(+), 3 deletions(-)
tests/lcitool/projects/qemu.yml +0 -1
index 9173d1e36e..b63b6bd850 100644
@@ -22,7 +22,6 @@ packages:
   - findutils
   - flex
   - fuse3
- - g++
   - gcc
   - gcc-native
   - gcovr
tests/lcitool/refresh +5 -0
index 24a735a3f2..dda07ddcd1 100755
@@ -109,6 +109,11 @@ debian12_extras = [
      "ENV QEMU_CONFIGURE_OPTS --enable-netmap\n"
  ]
+fedora_mingw_extras = [ "\n"
+    "RUN nosync dnf install -y mingw64-gcc-c++ mingw-w64-tools && \\\n"
+    "  ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/x86_64-w64-mingw32-c++ && \\\n"
+    "  ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/x86_64-w64-mingw32-g++\n\n"
+]
  def cross_build(prefix, targets):
      conf = "ENV QEMU_CONFIGURE_OPTS --cross-prefix=%s\n" % (prefix)

tests/lcitool/refresh try: · line 204

Quoted 9 lines
tests/lcitool/refresh +3 -2
@@ -193,8 +198,9 @@ try:
      generate_dockerfile("fedora-win64-cross", "fedora-38",
                          cross="mingw64",
-                        trailer=cross_build("x86_64-w64-mingw32-",
-                                            "x86_64-softmmu"))
+                        trailer="".join(fedora_mingw_extras)
+                                + cross_build("x86_64-w64-mingw32-",
+                                              "x86_64-softmmu"))
      #
      # Cirrus packages lists for GitLab

A better way to handle this would be to define a separate project

'tests/lcitool/projects/qemu-win-installer.yml'

With

packages
- g++

Then enable the extra project for win64

     generate_dockerfile("fedora-win64-cross", "fedora-38",
                         project='qemu,qemu-win-installer',
                         cross="mingw64",
                         trailer=cross_build("x86_64-w64-mingw32-",
                                             "x86_64-softmmu"))
Quoted 6 lines
Quoted 2 lines

which should result in an identical container to what we have today for win64, while letting us slim the other containers.

Ok, good idea! ... but then we need to teach lcitool about mingw-w64-tools first, otherwise that vss code won't get built due to the missing "widl" tool.

Why is that a pre-requisite ? What i've suggested will result in a
Dockerfile for win64 that is 100% identical to what we already have in git today. So surely that will already succeed to the same extent that CI succeeds today ?

With regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|
#6 lore raw

Re: [PATCH 2/4] tests/lcitool: Remove g++ from the containers (except for the MinGW one)

Quoted 77 lines · Daniel P. Berrangé
Quoted 76 lines · Thomas Huth
Quoted 74 lines · Daniel P. Berrangé
Quoted 44 lines · Thomas Huth

We don't need C++ for the normal QEMU builds anymore, so installing g++ in each and every container seems to be a waste of time and disk space. The only container that still needs it is the Fedora MinGW container that builds the only remaining C++ code in ./qga/vss-win32/ and we can install it here with an extra RUN statement instead.

This way we can also add the mingw-w64-tools package quite easily which contains the x86_64-w64-mingw32-widl program that is required for compiling the vss code of the guest agent (it was missing before this change, so the VSS code was actually never compiled in the CI).

---
   tests/lcitool/projects/qemu.yml |  1 -
   tests/lcitool/refresh           | 10 ++++++++--
   2 files changed, 8 insertions(+), 3 deletions(-)
tests/lcitool/projects/qemu.yml +0 -1
index 9173d1e36e..b63b6bd850 100644
@@ -22,7 +22,6 @@ packages:
    - findutils
    - flex
    - fuse3
- - g++
    - gcc
    - gcc-native
    - gcovr
tests/lcitool/refresh +5 -0
index 24a735a3f2..dda07ddcd1 100755
@@ -109,6 +109,11 @@ debian12_extras = [
       "ENV QEMU_CONFIGURE_OPTS --enable-netmap\n"
   ]
+fedora_mingw_extras = [ "\n"
+    "RUN nosync dnf install -y mingw64-gcc-c++ mingw-w64-tools && \\\n"
+    "  ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/x86_64-w64-mingw32-c++ && \\\n"
+    "  ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/x86_64-w64-mingw32-g++\n\n"
+]
   def cross_build(prefix, targets):
       conf = "ENV QEMU_CONFIGURE_OPTS --cross-prefix=%s\n" % (prefix)

tests/lcitool/refresh try: · line 204

Quoted 9 lines
tests/lcitool/refresh +3 -2
@@ -193,8 +198,9 @@ try:
       generate_dockerfile("fedora-win64-cross", "fedora-38",
                           cross="mingw64",
-                        trailer=cross_build("x86_64-w64-mingw32-",
-                                            "x86_64-softmmu"))
+                        trailer="".join(fedora_mingw_extras)
+                                + cross_build("x86_64-w64-mingw32-",
+                                              "x86_64-softmmu"))
       #
       # Cirrus packages lists for GitLab

A better way to handle this would be to define a separate project

'tests/lcitool/projects/qemu-win-installer.yml'

With

packages
- g++

Then enable the extra project for win64

      generate_dockerfile("fedora-win64-cross", "fedora-38",
                          project='qemu,qemu-win-installer',
                          cross="mingw64",
                          trailer=cross_build("x86_64-w64-mingw32-",
                                              "x86_64-softmmu"))

which should result in an identical container to what we have today for win64, while letting us slim the other containers.

Quoted 8 lines
Quoted 3 lines

Ok, good idea! ... but then we need to teach lcitool about mingw-w64-tools first, otherwise that vss code won't get built due to the missing "widl" tool.

Why is that a pre-requisite ? What i've suggested will result in a
Dockerfile for win64 that is 100% identical to what we already have in git today. So surely that will already succeed to the same extent that CI succeeds today ?

If you want to have the same result, we can also simply remove g++ everywhere, also for the mingw cross containers, since the vss code is currently not built at all due to the missing widl program.

Thomas

#7 lore raw

Re: [PATCH 2/4] tests/lcitool: Remove g++ from the containers (except for the MinGW one)

Quoted 27 lines · Thomas Huth
Quoted 26 lines · Daniel P. Berrangé
Quoted 24 lines · Thomas Huth
Quoted 11 lines · Daniel P. Berrangé

A better way to handle this would be to define a separate project

'tests/lcitool/projects/qemu-win-installer.yml'

With

packages
- g++

Then enable the extra project for win64

Quoted 8 lines
      generate_dockerfile("fedora-win64-cross", "fedora-38",
                          project='qemu,qemu-win-installer',
                          cross="mingw64",
                          trailer=cross_build("x86_64-w64-mingw32-",
                                              "x86_64-softmmu"))

which should result in an identical container to what we have today for win64, while letting us slim the other containers.

Ok, good idea! ... but then we need to teach lcitool about mingw-w64-tools first, otherwise that vss code won't get built due to the missing "widl" tool.

Quoted 8 lines
Quoted 4 lines

Why is that a pre-requisite ? What i've suggested will result in a
Dockerfile for win64 that is 100% identical to what we already have in git today. So surely that will already succeed to the same extent that CI succeeds today ?

If you want to have the same result, we can also simply remove g++ everywhere, also for the mingw cross containers, since the vss code is currently not built at all due to the missing widl program.

Oh, I'm getting mixed up between the qemu-setup.exe and the qga installer exe.

With regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|