commit:     b7fa38898fcb43f810130bc5a3001fe8091168bf
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Oct  8 01:55:33 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Oct  8 01:55:33 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b7fa3889

app-emulation/libguestfs: needs bison+flex

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

 app-emulation/libguestfs/libguestfs-1.48.6.ebuild | 17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)

diff --git a/app-emulation/libguestfs/libguestfs-1.48.6.ebuild 
b/app-emulation/libguestfs/libguestfs-1.48.6.ebuild
index 11b39fa23a18..f6b4f9fd63e2 100644
--- a/app-emulation/libguestfs/libguestfs-1.48.6.ebuild
+++ b/app-emulation/libguestfs/libguestfs-1.48.6.ebuild
@@ -6,7 +6,7 @@ EAPI=8
 # Bump with app-emulation/guestfs-tools and app-emulation/libguestfs-appliance 
(if any new release there)
 
 LUA_COMPAT=( lua5-1 )
-PYTHON_COMPAT=( python3_{9..11} )
+PYTHON_COMPAT=( python3_{10..11} )
 
 inherit autotools flag-o-matic linux-info lua-single perl-functions 
python-single-r1 strip-linguas toolchain-funcs
 
@@ -24,8 +24,10 @@ KEYWORDS="amd64 ~x86"
 IUSE="doc erlang +fuse gtk inspect-icons introspection libvirt lua +ocaml 
+perl python ruby selinux static-libs systemtap test"
 RESTRICT="!test? ( test )"
 
-REQUIRED_USE="lua? ( ${LUA_REQUIRED_USE} )
-       python? ( ${PYTHON_REQUIRED_USE} )"
+REQUIRED_USE="
+       lua? ( ${LUA_REQUIRED_USE} )
+       python? ( ${PYTHON_REQUIRED_USE} )
+"
 
 # Failures - doc
 COMMON_DEPEND="
@@ -92,7 +94,8 @@ COMMON_DEPEND="
 "
 # Some OCaml is always required
 # bug #729674
-DEPEND="${COMMON_DEPEND}
+DEPEND="
+       ${COMMON_DEPEND}
        >=dev-lang/ocaml-4.03:=[ocamlopt]
        dev-util/gperf
        dev-ml/findlib[ocamlopt]
@@ -107,7 +110,8 @@ DEPEND="${COMMON_DEPEND}
        ruby? ( dev-lang/ruby virtual/rubygems dev-ruby/rake )
        test? ( introspection? ( dev-libs/gjs ) )
 "
-RDEPEND="${COMMON_DEPEND}
+RDEPEND="
+       ${COMMON_DEPEND}
        app-emulation/libguestfs-appliance
        acct-group/kvm
 "
@@ -144,6 +148,9 @@ src_configure() {
        # bug #794877
        tc-export AR
 
+       # Needs both bison+flex (bug #915339, see configure too)
+       unset LEX YACC
+
        # Skip Bash test
        # (See 13-test-suite.log in linked bug)
        # bug #794874

Reply via email to