The example commands could be: $ gcc-config latest $ gcc-config ${CTARGET}-latest It should also be useful in cases like https://gitweb.gentoo.org/repo/gentoo.git/tree/eclass/toolchain.eclass#n2173: ``` else # The curent target is invalid. Attempt to switch to a valid one. # Blindly pick the latest version. #529608 # TODO: Should update gcc-config to accept `-l ${CTARGET}` rather than # doing a partial grep like this. target=$(gcc-config -l 2>/dev/null | grep " ${CTARGET}-[0-9]" | tail -1 | awk '{print $2}') fi ```
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/gcc-config.git/commit/?id=3efd8ef43c07a53663d8a1f53f1c13ffb0447b87 commit 3efd8ef43c07a53663d8a1f53f1c13ffb0447b87 Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2021-02-26 09:34:52 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2021-02-26 09:34:52 +0000 gcc-config: add support for special 'latest' version for profile switch To ease switching to latest version add special 'latest' verison. Works for both "latest" and "<CTARGET>-latest" forms. Bug: https://bugs.gentoo.org/765664 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> gcc-config | 10 ++++++++++ 1 file changed, 10 insertions(+)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/binutils-config.git/commit/?id=c68523143e0a69b2a8d409cb679ca96aa4370a9b commit c68523143e0a69b2a8d409cb679ca96aa4370a9b Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2021-02-28 09:38:55 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2021-02-28 09:38:55 +0000 binutils-config: add support for special 'latest' version for profile switch To ease switching to latest version add special 'latest' verison. Works for both "latest" and "<CTARGET>-latest" forms. Bug: https://bugs.gentoo.org/765664 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> src/binutils-config | 46 +++++++++++++++++++++++++++++++++++++++------- 1 file changed, 39 insertions(+), 7 deletions(-)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23d59d9cd434205f4ba2ba08981392bcb80a2acc commit 23d59d9cd434205f4ba2ba08981392bcb80a2acc Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2021-02-28 09:48:51 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2021-02-28 09:50:11 +0000 sys-devel/binutils-config: bump up to 5.4 One user visible change: - binutils-config: add support for special 'latest' version for profile switch Closes: https://bugs.gentoo.org/765664 Package-Manager: Portage-3.0.16, Repoman-3.0.2 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> sys-devel/binutils-config/Manifest | 1 + .../binutils-config/binutils-config-5.4.ebuild | 43 ++++++++++++++++++++++ 2 files changed, 44 insertions(+) Additionally, it has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=88d3cf89b62f5b2ef7813aaf21a49ba94102cd44 commit 88d3cf89b62f5b2ef7813aaf21a49ba94102cd44 Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2021-02-28 09:46:48 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2021-02-28 09:50:11 +0000 sys-devel/gcc-config: bump up to 2.4 One user visible change: - gcc-config: add support for special 'latest' version for profile switch Bug: https://bugs.gentoo.org/765664 Package-Manager: Portage-3.0.16, Repoman-3.0.2 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> sys-devel/gcc-config/Manifest | 1 + sys-devel/gcc-config/gcc-config-2.4.ebuild | 53 ++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+)