When I tried to create a prefix the script just keeps executing itself Reproducible: Always Steps to Reproduce: 1. Download the script (reproduced in commit ac4c67f00fd053c8556580d3101066c99b6d1051) and make it executable 2. Run the script using the defaults, but using the shortcut Actual Results: I't just keeps executing itself Expected Results: I should've create a prefix
Created attachment 870673 [details] the script output
Created attachment 870674 [details] output of 'ps faux'
what is "the shortcut" in this case?
(In reply to Fabian Groffen from comment #3) > what is "the shortcut" in this case? > Do you want me to take the shortcut? [yN] Good!
Ok, so that should be No. But I doubt it has anything to do with this. Thanks.
this looks like a PARTIAL_BOOTSTRAP loop to me, because there's quite a typo/thinko in the block that tries to do the interactive part for each stage...
On IRC, they indicated they'd said yes, but maybe I misunderstood. But AFAICT, it's the only way you'd get stage_host_gentoo set (per ps faux)?
oops, collided.. (hadn't seen your comment)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=d2ade9a39e38c2e62117794b46b90a7c14237ce1 commit d2ade9a39e38c2e62117794b46b90a7c14237ce1 Author: Fabian Groffen <grobian@gentoo.org> AuthorDate: 2023-09-16 13:35:35 +0000 Commit: Fabian Groffen <grobian@gentoo.org> CommitDate: 2023-09-16 13:35:35 +0000 scripts/bootstrap-prefix: fix endless loop with Gentoo bootstrap When we try to use turbo-boost bootstrap, we end up in an endless loop. Reason is the code that was added to ensure individual stage calls would have a properly inited environment. However that contained not just a bug, but also would cause stage_host_gentoo to be called over and over again. Now just exit from bootstrap_interactive once we set all the vars we need. Ensure we don't run any bootstrapping code before that point. Thanks Leonardo Hernández Hernández for pointing this out. Closes: https://bugs.gentoo.org/914261 Signed-off-by: Fabian Groffen <grobian@gentoo.org> scripts/bootstrap-prefix.sh | 68 +++++++++++++++++++-------------------------- 1 file changed, 29 insertions(+), 39 deletions(-)