From ca5614fdc2d69955610fbd92cc0945461328bd27 Mon Sep 17 00:00:00 2001 From: James Le Cuirot Date: Mon, 16 Jun 2025 12:56:52 +0100 Subject: [PATCH] app-crypt/efitools: Fix building with GCC 15 by including stdbool.h I'm not sure whether this is the best approach. I tried adding various -std flags, but this broke more than it fixed. With upstream being dead, this should possibly be last-rited in favour of virt-firmware, which is a better replacement for most of the functionality here. Closes: https://bugs.gentoo.org/955698 Signed-off-by: James Le Cuirot --- app-crypt/efitools/efitools-1.9.2-r1.ebuild | 3 ++- app-crypt/efitools/files/1.9.2-gcc15.patch | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 app-crypt/efitools/files/1.9.2-gcc15.patch diff --git a/app-crypt/efitools/efitools-1.9.2-r1.ebuild b/app-crypt/efitools/efitools-1.9.2-r1.ebuild index 0deba136bb4c9..19832a9ca84ad 100644 --- a/app-crypt/efitools/efitools-1.9.2-r1.ebuild +++ b/app-crypt/efitools/efitools-1.9.2-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -31,6 +31,7 @@ BDEPEND=" PATCHES=( "${FILESDIR}"/1.9.2-clang16.patch "${FILESDIR}"/1.9.2-Makefile.patch + "${FILESDIR}"/1.9.2-gcc15.patch ) src_prepare() { diff --git a/app-crypt/efitools/files/1.9.2-gcc15.patch b/app-crypt/efitools/files/1.9.2-gcc15.patch new file mode 100644 index 0000000000000..def6bb59cb51f --- /dev/null +++ b/app-crypt/efitools/files/1.9.2-gcc15.patch @@ -0,0 +1,20 @@ +https://bugs.gentoo.org/955698 + +--- a/lib/asn1/typedefs.h ++++ b/lib/asn1/typedefs.h +@@ -34,6 +34,7 @@ + #include + #include + #include ++#include + #include + #include + #include +@@ -52,7 +53,6 @@ + + #endif + +-typedef unsigned char bool; + typedef unsigned int u_int; + + #define DBG1(s...)