commit: a27c3eccc447347e96c31fd03795f3ee354c2f65 Author: Viorel Munteanu <ceamac <AT> gentoo <DOT> org> AuthorDate: Fri Aug 2 04:49:29 2024 +0000 Commit: Viorel Munteanu <ceamac <AT> gentoo <DOT> org> CommitDate: Fri Aug 2 04:53:06 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a27c3ecc
sys-boot/gnu-efi: fix building efi apps Remove an include directory missing on most systems. Closes: https://bugs.gentoo.org/888829 Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org> .../files/gnu-efi-3.0.18-remove-linux-headers.patch | 14 ++++++++++++++ sys-boot/gnu-efi/gnu-efi-3.0.18-r3.ebuild | 1 + 2 files changed, 15 insertions(+) diff --git a/sys-boot/gnu-efi/files/gnu-efi-3.0.18-remove-linux-headers.patch b/sys-boot/gnu-efi/files/gnu-efi-3.0.18-remove-linux-headers.patch new file mode 100644 index 000000000000..e997aae58836 --- /dev/null +++ b/sys-boot/gnu-efi/files/gnu-efi-3.0.18-remove-linux-headers.patch @@ -0,0 +1,14 @@ +https://bugs.gentoo.org/888829 + +--- a/apps/Makefile ++++ b/apps/Makefile +@@ -41,9 +41,7 @@ + + include $(SRCDIR)/../Make.defaults + +-LINUX_HEADERS = /usr/src/sys/build + APPSDIR = $(LIBDIR)/gnuefi/apps +-CPPFLAGS += -D__KERNEL__ -I$(LINUX_HEADERS)/include + CRTOBJS = $(TOPDIR)/$(ARCH)/gnuefi/crt0-efi-$(ARCH).o + + LDSCRIPT = $(TOPDIR)/gnuefi/elf_$(ARCH)_efi.lds diff --git a/sys-boot/gnu-efi/gnu-efi-3.0.18-r3.ebuild b/sys-boot/gnu-efi/gnu-efi-3.0.18-r3.ebuild index 3db0d1f5144e..5e1f208f9dba 100644 --- a/sys-boot/gnu-efi/gnu-efi-3.0.18-r3.ebuild +++ b/sys-boot/gnu-efi/gnu-efi-3.0.18-r3.ebuild @@ -33,6 +33,7 @@ RESTRICT="strip" PATCHES=( "${FILESDIR}"/${P}-clang.patch + "${FILESDIR}"/${PN}-3.0.18-remove-linux-headers.patch ) check_and_set_objcopy() {
