From d9c22dd339209d52e914d6b0534b1d96499a8224 Mon Sep 17 00:00:00 2001
From: Joachim Schmitz <jojo@schmitz-digital.de>
Date: Tue, 8 Feb 2022 21:47:47 +0100
Subject: [PATCH] Fix vtests build

using a similar method as the mtest.
Doesn't work, so back to 5.9.8, for Linux, for now...
---
 build/ci/linux/setup.sh | 4 ++--
 vtest/gen               | 3 +++
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/build/ci/linux/setup.sh b/build/ci/linux/setup.sh
index 544ae3d12c179..b339d2b7026e2 100755
--- a/build/ci/linux/setup.sh
+++ b/build/ci/linux/setup.sh
@@ -83,11 +83,11 @@ apt-get install -y --no-install-recommends \
 ##########################################################################
 
 # Get newer Qt (only used cached version if it is the same)
-qt_version="5152"
+qt_version="598"
 qt_dir="Qt/${qt_version}"
 if [[ ! -d "${qt_dir}" ]]; then
   mkdir -p "${qt_dir}"
-  qt_url="https://s3.amazonaws.com/utils.musescore.org/Qt${qt_version}_gcc64.7z"
+  qt_url="https://s3.amazonaws.com/utils.musescore.org/qt${qt_version}.zip"
   wget -q --show-progress -O qt5.zip "${qt_url}"
   7z x -y qt5.zip -o"${qt_dir}"
   rm -f qt5.zip
diff --git a/vtest/gen b/vtest/gen
index b71afee975e8a..6dd95b8ae66ae 100755
--- a/vtest/gen
+++ b/vtest/gen
@@ -124,6 +124,9 @@ done
 echo "{}]" >> $JSON_FILE
 
 echo "Generate PNG files"
+# run the mtests in "minimal" platform for headless systems
+# enable fonts handling
+#export QT_QPA_PLATFORM=minimal:enablefonts
 $MSCORE -j $JSON_FILE -r $DPI >LOG 2>&1
 
 echo "LOG:"