commit:     0f90fb0a98d5ac1d87bb836a42abaec55015c9a5
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Oct  8 01:53:56 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Oct  8 01:53:56 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f90fb0a

app-emulation/guestfs-tools: needs bison+flex

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

 app-emulation/guestfs-tools/guestfs-tools-1.48.2.ebuild | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/app-emulation/guestfs-tools/guestfs-tools-1.48.2.ebuild 
b/app-emulation/guestfs-tools/guestfs-tools-1.48.2.ebuild
index 6fe7b676fdfc..8521e3d06afd 100644
--- a/app-emulation/guestfs-tools/guestfs-tools-1.48.2.ebuild
+++ b/app-emulation/guestfs-tools/guestfs-tools-1.48.2.ebuild
@@ -55,7 +55,8 @@ COMMON_DEPEND="
 "
 # Some OCaml is always required
 # bug #729674
-DEPEND="${COMMON_DEPEND}
+DEPEND="
+       ${COMMON_DEPEND}
        >=dev-lang/ocaml-4.03:=[ocamlopt]
        dev-ml/findlib[ocamlopt]
        doc? ( app-text/po4a )
@@ -67,8 +68,13 @@ DEPEND="${COMMON_DEPEND}
                )
        )
 "
-BDEPEND="virtual/pkgconfig"
-RDEPEND="${COMMON_DEPEND}
+BDEPEND="
+       sys-devel/bison
+       sys-devel/flex
+       virtual/pkgconfig
+"
+RDEPEND="
+       ${COMMON_DEPEND}
        app-emulation/libguestfs-appliance
 "
 
@@ -87,6 +93,9 @@ src_configure() {
        # bug #794877
        tc-export AR
 
+       # Needs both bison+flex (bug #915339, see configure too)
+       unset YACC LEX
+
        if use test ; then
                # Skip Bash test
                # (See 13-test-suite.log in linked bug)

Reply via email to