Merge pull request #287220 from trofi/gmni-disable-fortify3

gmni: disable `fortify3` to fix `gcc-13` build
This commit is contained in:
Mario Rodas 2024-03-01 23:25:25 -05:00 committed by GitHub
commit 42307e30a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,6 +14,14 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ scdoc ];
buildInputs = [ bearssl ];
# Fix build on `gcc-13`:
# inlined from 'xt_end_chain' at src/tofu.c:82:3,
# ...-glibc-2.38-27-dev/include/bits/stdio2.h:54:10: error: '__builtin___snprintf_chk' specified bound 4 exceeds destination size 3 [-Werror=stringop-overflow]
#
# The overflow will not happen in practice, but `snprintf()` gets
# passed one more byte than available.
hardeningDisable = [ "fortify3" ];
meta = with lib; {
description = "A Gemini client";
homepage = "https://git.sr.ht/~sircmpwn/gmni";