From 48753b589a0b5355fe0e883d4de076f4d258e4c1 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Mon, 3 Apr 2023 19:24:33 +0200 Subject: [PATCH] fprintd: Stop tests from crashing with GLib 2.76 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GLib 2.76 started raising critical warnings for unhandled GTasks. Since tests are failing on criticals to detect issues, they started to fail. https://gitlab.freedesktop.org/libfprint/fprintd/-/issues/151 Let’s disable fatal-criticals until the issue is resolved. --- pkgs/tools/security/fprintd/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/tools/security/fprintd/default.nix b/pkgs/tools/security/fprintd/default.nix index 76b71e24aca6..472334f4a6ff 100644 --- a/pkgs/tools/security/fprintd/default.nix +++ b/pkgs/tools/security/fprintd/default.nix @@ -98,6 +98,13 @@ stdenv.mkDerivation rec { patchShebangs \ po/check-translations.sh \ tests/unittest_inspector.py + + # Stop tests from failing due to unhandled GTasks uncovered by GLib 2.76 bump. + # https://gitlab.freedesktop.org/libfprint/fprintd/-/issues/151 + substituteInPlace tests/fprintd.py \ + --replace "env['G_DEBUG'] = 'fatal-criticals'" "" + substituteInPlace tests/meson.build \ + --replace "'G_DEBUG=fatal-criticals'," "" ''; meta = with lib; {