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.
This commit is contained in:
Sergei Trofimovich 2023-05-29 22:29:13 +01:00
parent 8d7893bf22
commit 9ff76a51e9

View file

@ -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"