Merge #287266: OVMF: fix buils against openssl-3.0.13

...into staging-next
This commit is contained in:
Vladimír Čunát 2024-02-09 09:33:14 +01:00
commit f732e146f8
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -59,6 +59,11 @@ edk2 = stdenv.mkDerivation rec {
mkdir -p $out/CryptoPkg/Library/OpensslLib/openssl
tar --strip-components=1 -xf ${buildPackages.openssl.src} -C $out/CryptoPkg/Library/OpensslLib/openssl
chmod -R +w $out/
# Fix missing INT64_MAX include that edk2 explicitly does not provide
# via it's own <stdint.h>. Let's pull in openssl's definition instead:
sed -i $out/CryptoPkg/Library/OpensslLib/openssl/crypto/property/property_parse.c \
-e '1i #include "internal/numbers.h"'
'';
nativeBuildInputs = [ pythonEnv ];