From e33c87dabac8adf950327cc55d27304e56c338ba Mon Sep 17 00:00:00 2001 From: OPNA2608 Date: Sat, 1 Feb 2025 17:30:45 +0100 Subject: [PATCH] lomiri.qtmir: Increase Mir startup timeout to fix VM tests on weaker hardware --- pkgs/desktops/lomiri/development/qtmir/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/desktops/lomiri/development/qtmir/default.nix b/pkgs/desktops/lomiri/development/qtmir/default.nix index 4cc4f3bb1fef..926b784eccf0 100644 --- a/pkgs/desktops/lomiri/development/qtmir/default.nix +++ b/pkgs/desktops/lomiri/development/qtmir/default.nix @@ -83,6 +83,11 @@ stdenv.mkDerivation (finalAttrs: { ]; postPatch = '' + # 10s timeout for Mir startup is too tight for VM tests on weaker hardwre (aarch64) + substituteInPlace src/platforms/mirserver/qmirserver_p.cpp \ + --replace-fail 'const int timeout = RUNNING_ON_VALGRIND ? 100 : 10' 'const int timeout = RUNNING_ON_VALGRIND ? 900 : 90' \ + --replace-fail 'const int timeout = 10' 'const int timeout = 90' + substituteInPlace CMakeLists.txt \ --replace-fail "\''${CMAKE_INSTALL_FULL_LIBDIR}/qt5/qml" "\''${CMAKE_INSTALL_PREFIX}/${qtbase.qtQmlPrefix}" \ --replace-fail "\''${CMAKE_INSTALL_FULL_LIBDIR}/qt5/plugins/platforms" "\''${CMAKE_INSTALL_PREFIX}/${qtbase.qtPluginPrefix}/platforms" \