🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.gentoo.dev
Article #128

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

#128
From: Sam James
Date: Fri, 06 Nov 2026 18:30
64 lines
3013 bytes
--=-=-=
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Mike Pagano <mpagano@gentoo.org> writes:

> 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(-)

LGTM.

>
> 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} =3D=3D sources ]]; then
>  		dev-build/make
>  		sys-devel/bison
>  		sys-devel/flex
> -		sys-libs/binutils-libs
>  		>=3Dsys-libs/ncurses-5.2
>  		virtual/libelf
>  		virtual/pkgconfig
>  	)"
>=20=20
> +	# 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+=3D"
> +			!build? ( sys-libs/binutils-libs )
> +		"
> +	fi
> +
>  	SLOT=3D${SLOT:=3D${PVR}}
>  	DESCRIPTION=3D"Sources based on the Linux Kernel"
>  	IUSE=3D"symlink build vanilla"

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEBBAEWCgCpFiEEJaa7iN2bdkxrVUHCc4QJ9SDfkZAFAmruGqcbFIAAAAAABAAO
bWFudTIsMi41KzEuMTIsMiwyXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25z
Lm9wZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQyNUE2QkI4OEREOUI3NjRDNkI1NTQx
QzI3Mzg0MDlGNTIwREY5MTkwDxxzYW1AZ2VudG9vLm9yZwAKCRBzhAn1IN+RkDju
AQCZehaLnrzqCyyn8/ZhX96FsMEbC66LVTIuTfYMSSOIyQEA2UTKZqaumD4wG37h
nMdK8ZIEm/WCthFOWD9fBkdFXQc=
=6h5O
-----END PGP SIGNATURE-----
--=-=-=--
Technical Details
Message-ID: <NWwRj-af1t-13@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod
References: <NWuZb-adYv-7@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod
From: Sam James <sam@gentoo.org>
Newsgroups: linux.gentoo.dev
Subject: Re: [gentoo-dev] [PATCH] Remove binutils-lib dependency for kernels  >= 7.3
Date: Fri, 06 Nov 2026 19:30:01 +0100
Message-ID: <NWwRj-af1t-13@gated-at.bofh.it>
References: <NWuZb-adYv-7@gated-at.bofh.it>
Organization: Gentoo
User-Agent: mu4e 1.14.4; emacs 31.1
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-Type: multipart/signed; boundary="=-=-=";
	micalg=pgp-sha512; protocol="application/pgp-signature"
Approved: robomod@news.nic.it
Lines: 64
Sender: robomod@news.nic.it
X-Original-Cc: mpagano@gentoo.org
X-Original-Date: Fri, 06 Nov 2026 18:21:27 +0000
X-Original-Message-ID: <874idtvn14.fsf@gentoo.org>
X-Original-References: <20261106162512.429621-1-mpagano@gentoo.org>