sys-libs/readline: avoid reliance on obscure "STAGE" variable

For Prefix bootstrap, pkg-config may be missing, which apparently at
some point we detected by the presence of the STAGE variable, which was
used internally by bootstrap-prefix.sh.  This got recently replaced by
BOOTSTRAP_STAGE instead, but avoid checking that, and just see if
pkg-config is around instead.

Signed-off-by: Fabian Groffen <grobian@gentoo.org>
This commit is contained in:
Fabian Groffen
2026-09-08 21:54:17 +02:00
parent 7dcda73743
commit 6bc7f72617
4 changed files with 4 additions and 4 deletions

View File

@@ -126,7 +126,7 @@ src_prepare() {
is_release || eautoreconf
if use prefix && [[ -n ${STAGE} ]] ; then
if use prefix && ! type -P $(tc-getPKG_CONFIG) > /dev/null ; then
# If we're bootstrapping, make a guess. We don't have pkg-config
# around yet. bug #818103.
# Incorrectly populating this leads to underlinked libreadline.

View File

@@ -126,7 +126,7 @@ src_prepare() {
#(( PLEVEL < 0 )) && eautoreconf
if use prefix && [[ -n ${STAGE} ]] ; then
if use prefix && ! type -P $(tc-getPKG_CONFIG) > /dev/null ; then
# If we're bootstrapping, make a guess. We don't have pkg-config
# around yet. bug #818103.
# Incorrectly populating this leads to underlinked libreadline.

View File

@@ -126,7 +126,7 @@ src_prepare() {
#(( PLEVEL < 0 )) && eautoreconf
if use prefix && [[ -n ${STAGE} ]] ; then
if use prefix && ! type -P $(tc-getPKG_CONFIG) > /dev/null ; then
# If we're bootstrapping, make a guess. We don't have pkg-config
# around yet. bug #818103.
# Incorrectly populating this leads to underlinked libreadline.

View File

@@ -126,7 +126,7 @@ src_prepare() {
#(( PLEVEL < 0 )) && eautoreconf
if use prefix && [[ -n ${STAGE} ]] ; then
if use prefix && ! type -P $(tc-getPKG_CONFIG) > /dev/null ; then
# If we're bootstrapping, make a guess. We don't have pkg-config
# around yet. bug #818103.
# Incorrectly populating this leads to underlinked libreadline.