Merge pull request #234886 from trofi/graphite2-gcc-13-fix

graphite2: disable broken 'nametabletest' (fails on gcc-13)
This commit is contained in:
7c6f434c 2023-06-07 17:27:00 +00:00 committed by GitHub
commit 13bf15c3b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,6 +23,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"