commit:     5f3f5035fe716de45c0e0c42e26e2df5528a5b05
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Feb  1 23:49:50 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Feb  1 23:52:31 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f3f5035

kernel-build.eclass: require real bison & flex

This reverts commit 486f12612d840bf4efbd324afdab59a98dd27fce. Note that
it appears to have been wrong for yacc for quite a while, as we previously
depended on virtual/yacc, even though the kernel looks for bison...

GNU Bison is at least needed, unclear about flex vs reflex, but let's
say flex for now as the kernel docs say it (most of the time, reflex does
work in place of flex, but not checked so let's be safe).

Closes: https://bugs.gentoo.org/922823
Signed-off-by: Sam James <sam <AT> gentoo.org>

 eclass/kernel-build.eclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/eclass/kernel-build.eclass b/eclass/kernel-build.eclass
index 841981a6ad45..14a6002ea5b5 100644
--- a/eclass/kernel-build.eclass
+++ b/eclass/kernel-build.eclass
@@ -39,9 +39,9 @@ BDEPEND="
        ${PYTHON_DEPS}
        app-alternatives/cpio
        app-alternatives/bc
-       app-alternatives/lex
+       sys-devel/bison
+       sys-devel/flex
        virtual/libelf
-       app-alternatives/yacc
        arm? ( sys-apps/dtc )
        arm64? ( sys-apps/dtc )
        riscv? ( sys-apps/dtc )

Reply via email to