mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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:
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user