Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 892331 - toolchain-funcs.eclass: add function for default C and C++ standards
Summary: toolchain-funcs.eclass: add function for default C and C++ standards
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-28 06:08 UTC by Sam James
Modified: 2024-05-02 11:37 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 2023-01-28 06:08:09 UTC
When new GCC versions change the default C or C++ standard, we often end up having various packages break because they're old and sometimes the patches needed to fix them are pretty huge, so we do append-flags -std=gnu89 or whatever and move on when appropriate.

However, when something starts using *new* features and e.g. doesn't use pkg-config correctly to force that in reverse dependencies, we need to do something like append-flags -std=c++17 in ebuilds until the compilers catch up.

Once the compilers do catch up, we don't want to keep setting it, as it regresses from whatever the default is (goes backwards).

We should have:
1. default-c-std
2. default-cxx-std
or similar