dev-util/kbuild: use -b switch for has_version

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2021-10-20 03:03:52 +00:00
parent 62d163a741
commit e61b20e95b
2 changed files with 6 additions and 6 deletions

View File

@@ -69,11 +69,11 @@ src_compile() {
# If the user hasn't picked one, let's prefer byacc > yacc > old bison for now.
# See bug #734354 - bison doesn't work here.
# We can remove this once Bison works again!
if has_version "dev-util/byacc" ; then
if has_version -b "dev-util/byacc" ; then
export YACC=byacc
elif has_version "dev-util/yacc" ; then
elif has_version -b "dev-util/yacc" ; then
export YACC=yacc
elif has_version "<sys-devel/bison-3.7" ; then
elif has_version -b "<sys-devel/bison-3.7" ; then
export YACC=bison
else
die "This case shouldn't be possible; no suitable YACC impl installed."

View File

@@ -71,11 +71,11 @@ src_compile() {
# If the user hasn't picked one, let's prefer byacc > yacc > old bison for now.
# See bug #734354 - bison doesn't work here.
# We can remove this once Bison works again!
if has_version "dev-util/byacc" ; then
if has_version -b "dev-util/byacc" ; then
export YACC=byacc
elif has_version "dev-util/yacc" ; then
elif has_version -b "dev-util/yacc" ; then
export YACC=yacc
elif has_version "<sys-devel/bison-3.7" ; then
elif has_version -b "<sys-devel/bison-3.7" ; then
export YACC=bison
else
die "This case shouldn't be possible; no suitable YACC impl installed."