2 Commits

3 changed files with 23 additions and 0 deletions

17
efitools-c23.patch Normal file
View File

@@ -0,0 +1,17 @@
- C23 has "bool" as a keyword
- gcc-15 compiles w/ -std=gnu23 by default
- the code in lib/asn1 dates from before 2012, it defines and uses
it's own "bool", so compile the code there w/ -std=gnu11
--- a/lib/asn1/Makefile 2019-01-08 23:13:13.000000000 +0100
+++ b/lib/asn1/Makefile 2025-04-13 09:21:22.870024546 +0200
@@ -4,6 +4,8 @@
include ../../Make.rules
+CFLAGS += -std=gnu11
+
libasn1.a: $(LIBFILES)
libasn1-efi.a: $(EFILIBFILES)

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Apr 13 07:17:01 UTC 2025 - Friedrich Haubensak <hsk17@mail.de>
- Add efitools-c23.patch to fix gcc-15 compile time errors
-------------------------------------------------------------------
Fri Mar 8 03:40:04 UTC 2024 - Gary Ching-Pang Lin <glin@suse.com>

View File

@@ -25,6 +25,7 @@ URL: https://git.kernel.org/pub/scm/linux/kernel/git/jejb/efitools.gi
Source: https://git.kernel.org/pub/scm/linux/kernel/git/jejb/efitools.git/snapshot/%{name}-%{version}.tar.gz
Patch1: efitools-disable-efisigned.patch
Patch2: efitools-bsc1220470-fix-gcc14-errors.patch
Patch3: efitools-c23.patch
BuildRequires: gnu-efi
BuildRequires: help2man
BuildRequires: openssl-devel