Thread View: linux.gentoo.dev
2 messages
2 total messages
Started by Mike Pagano
Fri, 06 Nov 2026 16:30
[gentoo-dev] [PATCH] Remove binutils-lib dependency for kernels >= 7.3
Author: Mike Pagano
Date: Fri, 06 Nov 2026 16:30
Date: Fri, 06 Nov 2026 16:30
42 lines
2166 bytes
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
Re: [gentoo-dev] [PATCH] Remove binutils-lib dependency for kernels >= 7.3
Author: Sam James
Date: Fri, 06 Nov 2026 18:30
Date: Fri, 06 Nov 2026 18:30
64 lines
3013 bytes
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-----
--=-=-=--
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads