Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 803551 - bootstrap-prefix.sh has an obsolete -cxx in package.use
Summary: bootstrap-prefix.sh has an obsolete -cxx in package.use
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-23 18:50 UTC by Sam James
Modified: 2024-08-20 18:57 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-07-23 18:50:06 UTC
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?
Comment 1 Fabian Groffen gentoo-dev 2021-08-27 15:32:13 UTC
we still do have provisions to build without c++, but perhaps we should jsut drop it and see what breaks
Comment 2 David Seifert gentoo-dev 2021-08-27 15:33:33 UTC
(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?
Comment 3 Fabian Groffen gentoo-dev 2021-08-27 15:36:45 UTC
the Prefix overlay has versions of gcc from 4.1.2 up to 11
Comment 4 Larry the Git Cow gentoo-dev 2024-08-20 18:57:02 UTC
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(-)