commit: aec74c528693921ea039e38e58d23b050ae67ecd Author: Viorel Munteanu <ceamac <AT> gentoo <DOT> org> AuthorDate: Sat Feb 14 08:14:34 2026 +0000 Commit: Viorel Munteanu <ceamac <AT> gentoo <DOT> org> CommitDate: Sat Feb 14 09:04:49 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aec74c52
sys-boot/refind: fix build with binutils 2.46 The patch is trivial, apply direct to stable. Closes: https://bugs.gentoo.org/970041 Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org> .../refind/files/refind-0.14.2-fix-binutils-2.46.patch | 17 +++++++++++++++++ sys-boot/refind/refind-0.14.2-r4.ebuild | 1 + 2 files changed, 18 insertions(+) diff --git a/sys-boot/refind/files/refind-0.14.2-fix-binutils-2.46.patch b/sys-boot/refind/files/refind-0.14.2-fix-binutils-2.46.patch new file mode 100644 index 000000000000..78d4b97f3b7f --- /dev/null +++ b/sys-boot/refind/files/refind-0.14.2-fix-binutils-2.46.patch @@ -0,0 +1,17 @@ +https://bugs.gentoo.org/970041 + +In binutils 2.46, objcopy became more strict with what it accepts as target. + +--- a/Make.common ++++ b/Make.common +@@ -121,8 +121,8 @@ + # objcopy flags for GNU-EFI + # + +-FORMAT = --target=efi-app-$(ARCH) +-FORMAT_DRIVER = --target=efi-bsdrv-$(ARCH) ++FORMAT = --output-target=efi-app-$(ARCH) ++FORMAT_DRIVER = --output-target=efi-bsdrv-$(ARCH) + + # + # Modifications on a per-architecture basis.... diff --git a/sys-boot/refind/refind-0.14.2-r4.ebuild b/sys-boot/refind/refind-0.14.2-r4.ebuild index 09418fe9b98d..987d5575ea29 100644 --- a/sys-boot/refind/refind-0.14.2-r4.ebuild +++ b/sys-boot/refind/refind-0.14.2-r4.ebuild @@ -28,6 +28,7 @@ PATCHES=( "${FILESDIR}"/${P}-fix-freestanding-on-musl.patch "${FILESDIR}"/${P}-fix-btrfs-on-musl.patch "${FILESDIR}"/${P}-fix-shim-name.patch + "${FILESDIR}"/${P}-fix-binutils-2.46.patch ) checktools() {
