commit:     e7dab8d85ca21044bd8c3021bff684bfe2bc2109
Author:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 14 08:51:19 2026 +0000
Commit:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Sat Feb 14 09:04:50 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e7dab8d8

app-crypt/efitools: fix building with binutils 2.46

The patch is trivial, apply direct to stable.

Closes: https://bugs.gentoo.org/970039
Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org>

 app-crypt/efitools/efitools-1.9.2-r1.ebuild            |  3 ++-
 app-crypt/efitools/files/1.9.2-fix-binutils-2.46.patch | 13 +++++++++++++
 2 files changed, 15 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 dfc140075e16..e3de1ea7a1a7 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-2025 Gentoo Authors
+# Copyright 1999-2026 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -33,6 +33,7 @@ PATCHES=(
        "${FILESDIR}"/1.9.2-clang16.patch
        "${FILESDIR}"/1.9.2-Makefile.patch
        "${FILESDIR}"/1.9.2-gcc15.patch
+       "${FILESDIR}"/1.9.2-fix-binutils-2.46.patch
 )
 
 check_and_set_objcopy() {

diff --git a/app-crypt/efitools/files/1.9.2-fix-binutils-2.46.patch 
b/app-crypt/efitools/files/1.9.2-fix-binutils-2.46.patch
new file mode 100644
index 000000000000..4bd174214b66
--- /dev/null
+++ b/app-crypt/efitools/files/1.9.2-fix-binutils-2.46.patch
@@ -0,0 +1,13 @@
+https://bugs.gentoo.org/970040
+
+--- a/Make.rules
++++ b/Make.rules
+@@ -25,7 +25,7 @@
+ LDSCRIPT      = elf_$(ARCH)_efi.lds
+ LIBS          += -nostdlib -shared -Bsymbolic $(CRTOBJS) -L $(CRTPATH) -T 
$(LDSCRIPT)
+ LOADLIBES     = -lefi -lgnuefi $(shell $(CC) $(ARCH3264) 
-print-libgcc-file-name)
+-FORMAT                = --target=efi-app-$(ARCH)
++FORMAT                = --output-target=efi-app-$(ARCH)
+ MYGUID                = 11111111-2222-3333-4444-123456789abc
+ INSTALL               = install
+ BINDIR                = $(DESTDIR)/usr/bin

Reply via email to