Skip to contentSkip to conversation

.gitlab-ci.d/windows.yml: Unify the prerequisite packages

PATCH Superseded Bin Meng 2 participants 7 messages Nov 25, 2022 Arm/Amlogic Meson SoC support

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Bin Meng

author
#0 lore raw

PATCH 1/4 .gitlab-ci.d/windows.yml: Unify the prerequisite packages

From: Bin Meng <[email protected]>

At present the prerequisite packages for 64-bit and 32-bit builds are slightly different. Let's use the same packages for both for easier maintenance in the future.

---

 .gitlab-ci.d/windows.yml | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
.gitlab-ci.d/windows.yml +11 -1
index a3e7a37022..99d78c2213 100644
@@ -41,11 +41,15 @@ msys2-64bit:
       mingw-w64-x86_64-gcc
       mingw-w64-x86_64-glib2
       mingw-w64-x86_64-gnutls
+      mingw-w64-x86_64-gtk3
+      mingw-w64-x86_64-libgcrypt
+      mingw-w64-x86_64-libjpeg-turbo
       mingw-w64-x86_64-libnfs
       mingw-w64-x86_64-libpng
       mingw-w64-x86_64-libssh
       mingw-w64-x86_64-libtasn1
       mingw-w64-x86_64-libusb
+      mingw-w64-x86_64-lzo2
       mingw-w64-x86_64-nettle
       mingw-w64-x86_64-ninja
       mingw-w64-x86_64-pixman
@@ -79,16 +83,22 @@ msys2-32bit:
       mingw-w64-i686-gtk3
       mingw-w64-i686-libgcrypt
       mingw-w64-i686-libjpeg-turbo
+      mingw-w64-i686-libnfs
+      mingw-w64-i686-libpng
       mingw-w64-i686-libssh
       mingw-w64-i686-libtasn1
       mingw-w64-i686-libusb
       mingw-w64-i686-lzo2
+      mingw-w64-i686-nettle
       mingw-w64-i686-ninja
       mingw-w64-i686-pixman
       mingw-w64-i686-pkgconf
       mingw-w64-i686-python
+      mingw-w64-i686-SDL2
+      mingw-w64-i686-SDL2_image
       mingw-w64-i686-snappy
-      mingw-w64-i686-usbredir "
+      mingw-w64-i686-usbredir
+      mingw-w64-i686-zstd "
   - $env:CHERE_INVOKING = 'yes'  # Preserve the current working directory
   - $env:MSYSTEM = 'MINGW32'     # Start a 32-bit MinG environment
   - $env:MSYS = 'winsymlinks:native' # Enable native Windows symlink
Signature · 1 line
2.34.1
author
#1 lore raw

PATCH 2/4 .gitlab-ci.d/windows.yml: Keep 64-bit and 32-bit build scripts consistent

From: Bin Meng <[email protected]>

At present the build scripts of 32-bit and 64-bit are inconsistent. Let's keep them consistent for easier maintenance.

While we are here, add some comments to explain that for the 64-bit job, "--without-default-devices" is a must have, at least for now.

---

 .gitlab-ci.d/windows.yml | 20 ++++++++++++++------
 1 file changed, 14 insertions(+), 6 deletions(-)
.gitlab-ci.d/windows.yml +14 -6
index 99d78c2213..c6de65c784 100644
@@ -61,12 +61,19 @@ msys2-64bit:
       mingw-w64-x86_64-usbredir
       mingw-w64-x86_64-zstd "
   - $env:CHERE_INVOKING = 'yes'  # Preserve the current working directory
-  - $env:MSYSTEM = 'MINGW64'     # Start a 64 bit Mingw environment
+  - $env:MSYSTEM = 'MINGW64'     # Start a 64-bit MinGW environment
   - $env:MSYS = 'winsymlinks:native' # Enable native Windows symlink
-  - .\msys64\usr\bin\bash -lc './configure --target-list=x86_64-softmmu
+  - mkdir output
+  - cd output
+  # Note: do not remove "--without-default-devices"!
+  # commit 9f8e6cad65a6 ("gitlab-ci: Speed up the msys2-64bit job by using --without-default-devices"
+  # changed to compile QEMU with the --without-default-devices switch
+  # for the msys2 64-bit job, due to the build could not complete within
+  # the project timeout.
+  - ..\msys64\usr\bin\bash -lc '../configure --target-list=x86_64-softmmu
       --enable-capstone --without-default-devices'
-  - .\msys64\usr\bin\bash -lc 'make'
-  - .\msys64\usr\bin\bash -lc 'make check || { cat build/meson-logs/testlog.txt; exit 1; } ;'
+  - ..\msys64\usr\bin\bash -lc 'make'
+  - ..\msys64\usr\bin\bash -lc 'make check || { cat meson-logs/testlog.txt; exit 1; } ;'
 
 msys2-32bit:
   extends: .shared_msys2_builder
@@ -100,10 +107,11 @@ msys2-32bit:
       mingw-w64-i686-usbredir
       mingw-w64-i686-zstd "
   - $env:CHERE_INVOKING = 'yes'  # Preserve the current working directory
-  - $env:MSYSTEM = 'MINGW32'     # Start a 32-bit MinG environment
+  - $env:MSYSTEM = 'MINGW32'     # Start a 32-bit MinGW environment
   - $env:MSYS = 'winsymlinks:native' # Enable native Windows symlink
   - mkdir output
   - cd output
-  - ..\msys64\usr\bin\bash -lc "../configure --target-list=ppc64-softmmu"
+  - ..\msys64\usr\bin\bash -lc '../configure --target-list=ppc64-softmmu
+      --enable-capstone'
   - ..\msys64\usr\bin\bash -lc 'make'
   - ..\msys64\usr\bin\bash -lc 'make check || { cat meson-logs/testlog.txt; exit 1; } ;'
Signature · 1 line
2.34.1
#2 lore raw

Re: [PATCH 2/4] .gitlab-ci.d/windows.yml: Keep 64-bit and 32-bit build scripts consistent

Quoted 44 lines · Bin Meng

From: Bin Meng <[email protected]>

At present the build scripts of 32-bit and 64-bit are inconsistent. Let's keep them consistent for easier maintenance.

While we are here, add some comments to explain that for the 64-bit job, "--without-default-devices" is a must have, at least for now.

---

  .gitlab-ci.d/windows.yml | 20 ++++++++++++++------
  1 file changed, 14 insertions(+), 6 deletions(-)
.gitlab-ci.d/windows.yml +11 -4
index 99d78c2213..c6de65c784 100644
@@ -61,12 +61,19 @@ msys2-64bit:
        mingw-w64-x86_64-usbredir
        mingw-w64-x86_64-zstd "
    - $env:CHERE_INVOKING = 'yes'  # Preserve the current working directory
-  - $env:MSYSTEM = 'MINGW64'     # Start a 64 bit Mingw environment
+  - $env:MSYSTEM = 'MINGW64'     # Start a 64-bit MinGW environment
    - $env:MSYS = 'winsymlinks:native' # Enable native Windows symlink
-  - .\msys64\usr\bin\bash -lc './configure --target-list=x86_64-softmmu
+  - mkdir output
+  - cd output
+  # Note: do not remove "--without-default-devices"!
+  # commit 9f8e6cad65a6 ("gitlab-ci: Speed up the msys2-64bit job by using --without-default-devices"
+  # changed to compile QEMU with the --without-default-devices switch
+  # for the msys2 64-bit job, due to the build could not complete within
+  # the project timeout.
+  - ..\msys64\usr\bin\bash -lc '../configure --target-list=x86_64-softmmu
        --enable-capstone --without-default-devices'
-  - .\msys64\usr\bin\bash -lc 'make'
-  - .\msys64\usr\bin\bash -lc 'make check || { cat build/meson-logs/testlog.txt; exit 1; } ;'
+  - ..\msys64\usr\bin\bash -lc 'make'
+  - ..\msys64\usr\bin\bash -lc 'make check || { cat meson-logs/testlog.txt; exit 1; } ;'
 
  msys2-32bit:
    extends: .shared_msys2_builder
@@ -100,10 +107,11 @@ msys2-32bit:
        mingw-w64-i686-usbredir

.gitlab-ci.d/windows.yml msys2-32bit: · line 115

Quoted 10 lines
.gitlab-ci.d/windows.yml +3 -2
        mingw-w64-i686-zstd "
    - $env:CHERE_INVOKING = 'yes'  # Preserve the current working directory
-  - $env:MSYSTEM = 'MINGW32'     # Start a 32-bit MinG environment
+  - $env:MSYSTEM = 'MINGW32'     # Start a 32-bit MinGW environment
    - $env:MSYS = 'winsymlinks:native' # Enable native Windows symlink
    - mkdir output
    - cd output
-  - ..\msys64\usr\bin\bash -lc "../configure --target-list=ppc64-softmmu"
+  - ..\msys64\usr\bin\bash -lc '../configure --target-list=ppc64-softmmu
+      --enable-capstone'

Capstone should automatically be detected if it is installed, so the --enable-capstone seems redundant here ... does it not work without it?

Thomas

author
#3 lore raw

Re: [PATCH 2/4] .gitlab-ci.d/windows.yml: Keep 64-bit and 32-bit build scripts consistent

Quoted 51 lines · Thomas Huth
Quoted 49 lines · Bin Meng

From: Bin Meng <[email protected]>

At present the build scripts of 32-bit and 64-bit are inconsistent. Let's keep them consistent for easier maintenance.

While we are here, add some comments to explain that for the 64-bit job, "--without-default-devices" is a must have, at least for now.

---

  .gitlab-ci.d/windows.yml | 20 ++++++++++++++------
  1 file changed, 14 insertions(+), 6 deletions(-)
.gitlab-ci.d/windows.yml +12 -5
index 99d78c2213..c6de65c784 100644
@@ -61,12 +61,19 @@ msys2-64bit:
        mingw-w64-x86_64-usbredir
        mingw-w64-x86_64-zstd "
    - $env:CHERE_INVOKING = 'yes'  # Preserve the current working directory
-  - $env:MSYSTEM = 'MINGW64'     # Start a 64 bit Mingw environment
+  - $env:MSYSTEM = 'MINGW64'     # Start a 64-bit MinGW environment
    - $env:MSYS = 'winsymlinks:native' # Enable native Windows symlink
-  - .\msys64\usr\bin\bash -lc './configure --target-list=x86_64-softmmu
+  - mkdir output
+  - cd output
+  # Note: do not remove "--without-default-devices"!
+  # commit 9f8e6cad65a6 ("gitlab-ci: Speed up the msys2-64bit job by using --without-default-devices"
+  # changed to compile QEMU with the --without-default-devices switch
+  # for the msys2 64-bit job, due to the build could not complete within
+  # the project timeout.
+  - ..\msys64\usr\bin\bash -lc '../configure --target-list=x86_64-softmmu
        --enable-capstone --without-default-devices'
-  - .\msys64\usr\bin\bash -lc 'make'
-  - .\msys64\usr\bin\bash -lc 'make check || { cat build/meson-logs/testlog.txt; exit 1; } ;'
+  - ..\msys64\usr\bin\bash -lc 'make'
+  - ..\msys64\usr\bin\bash -lc 'make check || { cat meson-logs/testlog.txt; exit 1; } ;'
 
  msys2-32bit:
    extends: .shared_msys2_builder
@@ -100,10 +107,11 @@ msys2-32bit:
        mingw-w64-i686-usbredir
        mingw-w64-i686-zstd "
    - $env:CHERE_INVOKING = 'yes'  # Preserve the current working directory
-  - $env:MSYSTEM = 'MINGW32'     # Start a 32-bit MinG environment
+  - $env:MSYSTEM = 'MINGW32'     # Start a 32-bit MinGW environment
    - $env:MSYS = 'winsymlinks:native' # Enable native Windows symlink
Quoted 9 lines

.gitlab-ci.d/windows.yml msys2-32bit: · line 115

Quoted 5 lines
.gitlab-ci.d/windows.yml +2 -1
    - mkdir output
    - cd output
-  - ..\msys64\usr\bin\bash -lc "../configure --target-list=ppc64-softmmu"
+  - ..\msys64\usr\bin\bash -lc '../configure --target-list=ppc64-softmmu
+      --enable-capstone'

Capstone should automatically be detected if it is installed, so the --enable-capstone seems redundant here ... does it not work without it?

--enable-capstone is redundant. Will remove in v2.

Regards,
Bin

author
#4 lore raw

PATCH 3/4 .gitlab-ci.d/windows.yml: Exclude qTests from 64-bit CI job for now

In reply to Bin Meng

From: Bin Meng <[email protected]>

qTests don't run successfully with "--without-default-devices", so let's exclude the qtests from CI for now.

---

 .gitlab-ci.d/windows.yml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
.gitlab-ci.d/windows.yml +3 -1
index c6de65c784..fce9a02387 100644
@@ -73,7 +73,9 @@ msys2-64bit:
   - ..\msys64\usr\bin\bash -lc '../configure --target-list=x86_64-softmmu
       --enable-capstone --without-default-devices'
   - ..\msys64\usr\bin\bash -lc 'make'
-  - ..\msys64\usr\bin\bash -lc 'make check || { cat meson-logs/testlog.txt; exit 1; } ;'
+  # qTests don't run successfully with "--without-default-devices",
+  # so let's exclude the qtests from CI for now.
+  - ..\msys64\usr\bin\bash -lc 'make check MTESTARGS=\"--no-suite qtest\" || { cat meson-logs/testlog.txt; exit 1; } ;'
 
 msys2-32bit:
   extends: .shared_msys2_builder
Signature · 1 line
2.34.1
Reviewed-by on v1 3/4
#5 lore raw

Re: [PATCH 3/4] .gitlab-ci.d/windows.yml: Exclude qTests from 64-bit CI job for now

Quoted 17 lines · Bin Meng

From: Bin Meng <[email protected]>

qTests don't run successfully with "--without-default-devices", so let's exclude the qtests from CI for now.

---

  .gitlab-ci.d/windows.yml | 4 +++-
  1 file changed, 3 insertions(+), 1 deletion(-)
.gitlab-ci.d/windows.yml +0 -0
index c6de65c784..fce9a02387 100644

.gitlab-ci.d/windows.yml msys2-64bit: · line 81

Quoted 10 lines
.gitlab-ci.d/windows.yml +3 -1
@@ -73,7 +73,9 @@ msys2-64bit:
    - ..\msys64\usr\bin\bash -lc '../configure --target-list=x86_64-softmmu
        --enable-capstone --without-default-devices'
    - ..\msys64\usr\bin\bash -lc 'make'
-  - ..\msys64\usr\bin\bash -lc 'make check || { cat meson-logs/testlog.txt; exit 1; } ;'
+  # qTests don't run successfully with "--without-default-devices",
+  # so let's exclude the qtests from CI for now.
+  - ..\msys64\usr\bin\bash -lc 'make check MTESTARGS=\"--no-suite qtest\" || { cat meson-logs/testlog.txt; exit 1; } ;'
 
  msys2-32bit:
    extends: .shared_msys2_builder
author
#6 lore raw

PATCH 4/4 tests/qtest: Enable qtest build on Windows

In reply to Bin Meng

From: Bin Meng <[email protected]>

Now that we have fixed various test case issues as seen when running on Windows, let's enable the qtest build on Windows.

---

 tests/qtest/meson.build | 6 ------
 1 file changed, 6 deletions(-)
tests/qtest/meson.build +0 -6
index c07a5b1a5f..f0ebb5fac6 100644
@@ -1,9 +1,3 @@
-# All QTests for now are POSIX-only, but the dependencies are
-# really in libqtest, not in the testcases themselves.
-if not config_host.has_key('CONFIG_POSIX')
-  subdir_done()
-endif
-
 slow_qtests = {
   'ahci-test' : 60,
   'bios-tables-test' : 120,
Signature · 1 line
2.34.1