commit:     395166713e5f118988b25b9476e36cddb6fb0fbb
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Dec  2 01:37:49 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Dec  2 01:38:36 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=39516671

toolchain.eclass: rename libdiagnostics -> libgdiagnostics

This was only added last week so no transition/compatibility stuff here.

It was renamed upstream because Debian reported a library called libdiagnostics
already existed.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 eclass/toolchain.eclass    | 8 ++++----
 sys-devel/gcc/metadata.xml | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 114a008b700f..be8bfcddfafd 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -338,7 +338,7 @@ if [[ ${PN} != kgcc64 && ${PN} != gcc-* ]] ; then
        # it was disabled in 13.
        tc_version_is_at_least 14.0.0_pre20230423 ${PV} && IUSE+=" rust" 
TC_FEATURES+=( rust )
        tc_version_is_at_least 14.2.1_p20241026 ${PV} && IUSE+=" time64"
-       tc_version_is_at_least 15.0.0_pre20241124 ${PV} && IUSE+=" 
libdiagnostics"
+       tc_version_is_at_least 15.0.0_pre20241124 ${PV} && IUSE+=" 
libgdiagnostics"
 fi
 
 if tc_version_is_at_least 10; then
@@ -1836,8 +1836,8 @@ toolchain_src_configure() {
                gcc_shell="${BROOT}"/bin/sh
        fi
 
-       if is_jit || _tc_use_if_iuse libdiagnostics ; then
-               einfo "Configuring shared gcc for JIT/libdiagnostics"
+       if is_jit || _tc_use_if_iuse libgdiagnostics ; then
+               einfo "Configuring shared gcc for JIT/libgdiagnostics"
 
                local confgcc_jit=(
                        "${confgcc[@]}"
@@ -1874,7 +1874,7 @@ toolchain_src_configure() {
                )
 
                if tc_version_is_at_least 15.0.0_pre20241124 ${PV} ; then
-                       confgcc_jit+=( $(use_enable libdiagnostics) )
+                       confgcc_jit+=( $(use_enable libgdiagnostics) )
                fi
 
                if tc_version_is_at_least 13.1 ; then

diff --git a/sys-devel/gcc/metadata.xml b/sys-devel/gcc/metadata.xml
index eeb3aa4d7aa0..9b51b891ae5e 100644
--- a/sys-devel/gcc/metadata.xml
+++ b/sys-devel/gcc/metadata.xml
@@ -77,7 +77,7 @@
                <flag name="graphite">Add support for the framework for loop 
optimizations based on a polyhedral intermediate representation</flag>
                <flag name="ieee-long-double">Use accelerated 128-bit IEEE long 
double ABI (ppc64le only)</flag>
                <flag name="jit">Enable libgccjit so other applications can 
embed gcc for Just-In-Time compilation.</flag>
-               <flag name="libdiagnostics">Provide libdiagnostics 
(https://gcc.gnu.org/wiki/libdiagnostics). This also installs the 
'sarif-replay' tool.</flag>
+               <flag name="libgdiagnostics">Provide libgdiagnostics 
(https://gcc.gnu.org/wiki/libgdiagnostics). This also installs the 
'sarif-replay' tool.</flag>
                <flag name="libssp">Build SSP support into a dedicated library 
rather than use the code in the C library (DO NOT ENABLE THIS IF YOU DON'T KNOW 
WHAT IT DOES)</flag>
                <flag name="lto">
                        Build using Link Time Optimizations (LTO).

Reply via email to