🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.gentoo.dev
Article #119

[gentoo-dev] [PATCH] Remove binutils-lib dependency for kernels >= 7.3

#119
From: Mike Pagano
Date: Fri, 06 Nov 2026 16:30
42 lines
2166 bytes
The binutil-lib dependency was added for missing bfd.h
for objtool / libbfd on kernels < 7.3.
Upstream commit (7e61560628d1) removes the need for this
dependency.

Bug: https://bugs.gentoo.org/984648

Thanks to eanthann at gmail.com for reporting.

Signed-off-by: Mike Pagano <mpagano@gentoo.org>
---
 eclass/kernel-2.eclass | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass
index aa855f37384e6..4fbd1b7393f9f 100644
--- a/eclass/kernel-2.eclass
+++ b/eclass/kernel-2.eclass
@@ -668,12 +668,20 @@ if [[ ${ETYPE} == sources ]]; then
 		dev-build/make
 		sys-devel/bison
 		sys-devel/flex
-		sys-libs/binutils-libs
 		>=sys-libs/ncurses-5.2
 		virtual/libelf
 		virtual/pkgconfig
 	)"
 
+	# Required for objtool / libbfd on kernels < 7.3
+	# Upstream commit (7e61560628d1) removes need for dependency
+	# See Bug 984648
+	if kernel_is lt 7 3; then
+		RDEPEND+="
+			!build? ( sys-libs/binutils-libs )
+		"
+	fi
+
 	SLOT=${SLOT:=${PVR}}
 	DESCRIPTION="Sources based on the Linux Kernel"
 	IUSE="symlink build vanilla"
-- 
2.56.0
Technical Details
Message-ID: <NWuZb-adYv-7@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!srl.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!srl.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomod
From: Mike Pagano <mpagano@gentoo.org>
Newsgroups: linux.gentoo.dev
Subject: [gentoo-dev] [PATCH] Remove binutils-lib dependency for kernels >= 7.3
Date: Fri, 06 Nov 2026 17:30:01 +0100
Message-ID: <NWuZb-adYv-7@gated-at.bofh.it>
X-Original-To: gentoo-dev@lists.gentoo.org
X-Mailer: git-send-email 2.56.0
List-ID: Gentoo Linux mail <gentoo-dev.gentoo.org>
Reply-To: gentoo-dev@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Approved: robomod@news.nic.it
Lines: 42
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Cc: mpagano@gentoo.org
X-Original-Date: Fri,  6 Nov 2026 11:25:07 -0500
X-Original-Message-ID: <20261106162512.429621-1-mpagano@gentoo.org>