bootstrap-prefix.sh contains: > # Use package.use to disable in the portage tree to be shared between > # stage2 and stage3. The hack will be undone during tree sync in stage3. > cat >> "${ROOT}"/etc/portage/make.profile/package.use <<-EOF > [...] > # Most binary Linux distributions seem to fancy toolchains that > # do not do c++ support (need to install a separate package). > sys-libs/ncurses -cxx > sys-devel/binutils -cxx Is it possible to drop this latter part? We'd like to drop almost all - or all - instances of IUSE="cxx" because of how inconsistently it's applied across the tree. It looks like binutils already lacks USE=cxx nowadays and GCC itself requires a C++ compiler to bootstrap since 4.8.0. Are there platforms where we struggle to get a C++ compiler from the host?
we still do have provisions to build without c++, but perhaps we should jsut drop it and see what breaks
(In reply to Fabian Groffen from comment #1) > we still do have provisions to build without c++, but perhaps we should jsut > drop it and see what breaks How do you build any in tree sys-devel/gcc or sys-devel/clang without C++ support?
the Prefix overlay has versions of gcc from 4.1.2 up to 11
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=085211fe4673f6b04893ea82c2d75b82ce37e39c commit 085211fe4673f6b04893ea82c2d75b82ce37e39c Author: Fabian Groffen <grobian@gentoo.org> AuthorDate: 2024-08-20 18:53:28 +0000 Commit: Fabian Groffen <grobian@gentoo.org> CommitDate: 2024-08-20 18:53:28 +0000 scripts/bootstrap-prefix: drop bits that assume we don't have a C++ compiler The situation where we bootstrap with a non-C++ compiler is long gone. Closes: https://bugs.gentoo.org/803551 Signed-off-by: Fabian Groffen <grobian@gentoo.org> scripts/bootstrap-prefix.sh | 17 ----------------- 1 file changed, 17 deletions(-)