Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 860170 Details for
Bug 904242
bootstrap-prefix.sh in stage 1 should use tools from prefix as much as possible
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to run part of interactive before every bootstrap_*
bootstrap_patch (text/plain), 2.38 KB, created by
Andrey Aleksandrov
on 2023-04-15 19:37:32 UTC
(
hide
)
Description:
Patch to run part of interactive before every bootstrap_*
Filename:
MIME Type:
Creator:
Andrey Aleksandrov
Created:
2023-04-15 19:37:32 UTC
Size:
2.38 KB
patch
obsolete
>diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh >index c032f7424a..0ecaafc019 100755 >--- a/scripts/bootstrap-prefix.sh >+++ b/scripts/bootstrap-prefix.sh >@@ -2945,7 +2945,8 @@ EOF > done > export PATH="$EPREFIX/usr/bin:$EPREFIX/bin:$EPREFIX/tmp/usr/bin:$EPREFIX/tmp/bin:$EPREFIX/tmp/usr/local/bin:${PATH}" > >- cat << EOF >+ if [[ -z ${PARTIAL_BOOTSTRAP} ]]; then >+ cat << EOF > > OK! I'm going to give it a try, this is what I have collected sofar: > EPREFIX=${EPREFIX} >@@ -2959,14 +2960,15 @@ Prefix. In short, I'm going to run stage1, stage2, stage3, followed by > emerge -e system. If any of these stages fail, both you and me are in > deep trouble. So let's hope that doesn't happen. > EOF >- echo >- [[ ${TODO} == 'noninteractive' ]] && ans="" || >- read -p "Type here what you want to wish me [luck] " ans >- if [[ -n ${ans} && ${ans} != "luck" ]] ; then >- echo "Huh? You're not serious, are you?" >- sleep 3 >- fi >- echo >+ echo >+ [[ ${TODO} == 'noninteractive' ]] && ans="" || >+ read -p "Type here what you want to wish me [luck] " ans >+ if [[ -n ${ans} && ${ans} != "luck" ]] ; then >+ echo "Huh? You're not serious, are you?" >+ sleep 3 >+ fi >+ echo >+ fi > > if [[ -d ${HOST_GENTOO_EROOT} ]]; then > if ! [[ -x ${EPREFIX}/tmp/usr/lib/portage/bin/emerge ]] && ! ${BASH} ${BASH_SOURCE[0]} "${EPREFIX}" stage_host_gentoo ; then >@@ -2990,6 +2992,19 @@ EOF > ROOT="${EPREFIX}" > set_helper_vars > >+ if [[ -n ${PARTIAL_BOOTSTRAP} ]]; then >+ cat << EOF >+ >+OK! All necessary tools and ENV variables were installed: >+ EPREFIX=${EPREFIX} >+ CHOST=${CHOST} >+ PATH=${PATH} >+ MAKEOPTS=${MAKEOPTS} >+Now I'm going to run an <action> you asked me to. >+EOF >+ return 0; >+ fi >+ > if ! [[ -e ${EPREFIX}/.stage1-finished ]] && ! bootstrap_stage1_log ; then > # stage 1 fail > cat << EOF >@@ -3367,6 +3382,17 @@ if [[ -n ${PKG_CONFIG_PATH} ]] ; then > fi > > einfo "ready to bootstrap ${TODO}" >+ >+# part of bootstrap_interactive should be executed before any bootstrap_${TODO} >+# to properly setup environment variables and guarantee that bootstrap_${TODO} >+# executes inside a prefix >+if [[ ${TODO} != "noninteractive" && $(type -t bootstrap_${TODO} == "function") ]]; then >+ PARTIAL_BOOTSTRAP=true >+ TODO='noninteractive' bootstrap_interactive || exit 1 >+ bootstrap_${TODO} || exit 1 >+ exit 0 >+fi >+ > # bootstrap_interactive proceeds with guessed defaults when TODO=noninteractive > bootstrap_${TODO#non} || exit 1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 904242
:
859978
|
859979
|
859980
| 860170