tboot: fix build for gcc 14

This commit is contained in:
Sigmanificient
2025-03-10 01:14:00 +01:00
parent 2ffb1163b2
commit e55fda1ae7
+7
View File
@@ -34,6 +34,13 @@ stdenv.mkDerivation rec {
substituteInPlace docs/Makefile --replace /usr/share /share
'';
postPatch = ''
# compute the allocated size from the pointed type, to avoid the warning
substituteInPlace lcptools-v2/pconf_legacy.c \
--replace-fail "digest = malloc(SHA1_DIGEST_SIZE);" \
"digest = malloc(sizeof *digest);"
'';
installFlags = [ "DESTDIR=$(out)" ];
meta = with lib; {