sys-libs/readline: improve prefix bootstrapping check

We might have *just* installed pkg-config but not have ncurses available
in the stage3 build yet, so check if STAGE is set instead.

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James 2026-01-04 06:55:46 +00:00
parent 002e937092
commit 9e2ab4e98d
No known key found for this signature in database
GPG Key ID: 738409F520DF9190
5 changed files with 10 additions and 10 deletions

View File

@ -1,4 +1,4 @@
# Copyright 1999-2025 Gentoo Authors
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@ -126,7 +126,7 @@ src_prepare() {
is_release || eautoreconf
if use prefix && [[ ! -x "${BROOT}"/usr/bin/pkg-config ]] ; then
if use prefix && [[ -n ${STAGE} ]] ; 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

@ -1,4 +1,4 @@
# Copyright 1999-2025 Gentoo Authors
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@ -127,7 +127,7 @@ src_prepare() {
#(( PLEVEL < 0 )) && eautoreconf
if use prefix && [[ ! -x "${BROOT}"/usr/bin/pkg-config ]] ; then
if use prefix && [[ -n ${STAGE} ]] ; 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

@ -1,4 +1,4 @@
# Copyright 1999-2025 Gentoo Authors
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@ -126,7 +126,7 @@ src_prepare() {
#(( PLEVEL < 0 )) && eautoreconf
if use prefix && [[ ! -x "${BROOT}"/usr/bin/pkg-config ]] ; then
if use prefix && [[ -n ${STAGE} ]] ; 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

@ -1,4 +1,4 @@
# Copyright 1999-2025 Gentoo Authors
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@ -126,7 +126,7 @@ src_prepare() {
#(( PLEVEL < 0 )) && eautoreconf
if use prefix && [[ ! -x "${BROOT}"/usr/bin/pkg-config ]] ; then
if use prefix && [[ -n ${STAGE} ]] ; 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

@ -1,4 +1,4 @@
# Copyright 1999-2025 Gentoo Authors
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@ -126,7 +126,7 @@ src_prepare() {
#(( PLEVEL < 0 )) && eautoreconf
if use prefix && [[ ! -x "${BROOT}"/usr/bin/pkg-config ]] ; then
if use prefix && [[ -n ${STAGE} ]] ; 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.