commit:     ca5614fdc2d69955610fbd92cc0945461328bd27
Author:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 16 11:56:52 2025 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Mon Jun 16 12:00:00 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ca5614fd

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 <chewi <AT> gentoo.org>

 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(-)

diff --git a/app-crypt/efitools/efitools-1.9.2-r1.ebuild 
b/app-crypt/efitools/efitools-1.9.2-r1.ebuild
index 0deba136bb4c..19832a9ca84a 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 000000000000..def6bb59cb51
--- /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 <stdio.h>
+ #include <stdlib.h>
+ #include <stdarg.h>
++#include <stdbool.h>
+ #include <sys/stat.h>
+ #include <sys/types.h>
+ #include <unistd.h>
+@@ -52,7 +53,6 @@
+ 
+ #endif
+ 
+-typedef unsigned char bool;
+ typedef unsigned int u_int;
+ 
+ #define DBG1(s...)

Reply via email to