From 9ff76a51e918788ecbc5df0189310352eb055c2d Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Mon, 29 May 2023 22:29:13 +0100 Subject: [PATCH] graphite2: disable broken 'nametabletest' (fails on gcc-13) Without the change the test fails on gcc-13 as: $ ./tests/nametabletest/nametabletest tests/nametabletest/nametabletest.cpp:142:79: runtime error: index 5 out of bounds for type 'NameRecord [5]' ... tests/nametabletest/nametabletest.cpp:142:79: runtime error: index 7 out of bounds for type 'NameRecord [7]' ... In https://github.com/silnrsi/graphite/pull/74 upstream agrees it's a problem in the test (and possibly the library). Let's disable the test itself until upstream fixes it completely. --- pkgs/development/libraries/silgraphite/graphite2.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/libraries/silgraphite/graphite2.nix b/pkgs/development/libraries/silgraphite/graphite2.nix index 41c0c3217a4..11b430a00e5 100644 --- a/pkgs/development/libraries/silgraphite/graphite2.nix +++ b/pkgs/development/libraries/silgraphite/graphite2.nix @@ -21,6 +21,12 @@ stdenv.mkDerivation rec { buildInputs = [ freetype ]; patches = lib.optionals stdenv.isDarwin [ ./macosx.patch ]; + postPatch = '' + # disable broken 'nametabletest' test, fails on gcc-13: + # https://github.com/silnrsi/graphite/pull/74 + substituteInPlace tests/CMakeLists.txt \ + --replace 'add_subdirectory(nametabletest)' '#add_subdirectory(nametabletest)' + ''; cmakeFlags = lib.optionals static [ "-DBUILD_SHARED_LIBS=OFF"