Mike Pagano <mpag…@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 <mpag…@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} == 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"