Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 914114 - current bootstrap-prefix.sh failure
Summary: current bootstrap-prefix.sh failure
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-13 16:36 UTC by hsk17
Modified: 2023-09-14 07:17 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to bootstrap-prefix.sh wrt. compiler_stage1 variable (bootstrap-prefix.sh.patch,1.08 KB, patch)
2023-09-13 16:49 UTC, hsk17
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description hsk17 2023-09-13 16:36:29 UTC
tried to run bootstrap-prefix.sh on top of opensuse leap, but failed,
trying prefix-guest as well as RAP.

in a recent change to bootstrap-prefix.sh, some guards wrt gcc-4.x
were cleaned, and, at begin of configure_toolchain(), the case....esac
statement, which added to-be-emerged packages to compiler_stage1 variable,
was removed.  but this results, for linux at least, in no compiler
at all being emerged during bootstrao_stage2().
for me, bootstrap_stage3() then fails with error messages that no
appropriate compiler is available (though gcc and g++ are installed on
host system).
keeping that case....esac statement, replacing it's "eval $(....)" lines
with
  compiler_stage1+=" sys-devel/gcc"
worked for me, i.e., bootstrap-prefix.sh succeeded.
solaris might be affected as well, but i cannot tell, as i have no longer
access to such a machine.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-09-13 16:37:37 UTC
Can you give a patch?
Comment 2 hsk17 2023-09-13 16:49:43 UTC
Created attachment 870490 [details, diff]
patch to bootstrap-prefix.sh wrt. compiler_stage1 variable
Comment 3 Fabian Groffen gentoo-dev 2023-09-14 07:17:06 UTC
I went a slightly different route, thanks for your patch!
Comment 4 Larry the Git Cow gentoo-dev 2023-09-14 07:17:14 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=ac4c67f00fd053c8556580d3101066c99b6d1051

commit ac4c67f00fd053c8556580d3101066c99b6d1051
Author:     Fabian Groffen <grobian@gentoo.org>
AuthorDate: 2023-09-14 07:15:03 +0000
Commit:     Fabian Groffen <grobian@gentoo.org>
CommitDate: 2023-09-14 07:15:03 +0000

    scripts/bootstrap-prefix: fix Linux compiler_stage1 setup
    
    Broken by cleanup in 580a9d39d536e6740450bed591a326980e24ffdb, ensure
    Linux and Solaris targets get compiler_stage1 set in
    configure_toolchain.
    
    Thanks hsk17 for pointing it out.
    
    Closes: https://bugs.gentoo.org/914114
    Signed-off-by: Fabian Groffen <grobian@gentoo.org>

 scripts/bootstrap-prefix.sh | 38 +++++++++++++-------------------------
 1 file changed, 13 insertions(+), 25 deletions(-)