Sam James 6302dd47e2 toolchain.eclass: fix should_we_gcc_config for major-version slotting
Reported by the-horo on IRC.

For example, with slot as major version:
```
$ gcc-config -c x86_64-pc-linux-gnu
x86_64-pc-linux-gnu-13
$ gcc-config -S x86_64-pc-linux-gnu-13
x86_64-pc-linux-gnu 13
```
so we're indeed comparing 13 with 13.2 and hence we decide to run gcc-config
unnecessarily because we think it's a major version change.

Fix that by taking into account tc_use_major_version_only and comparing
based on GCCMAJOR for that case.

Bug: https://bugs.gentoo.org/865835
Bug: https://bugs.gentoo.org/873505
Reported-by: the-horo
Closes: https://github.com/gentoo/gentoo/pull/33042
Signed-off-by: Sam James <sam@gentoo.org>
2023-09-25 03:06:51 +01:00
2023-09-18 10:48:53 +01:00
2023-09-18 10:48:57 +01:00
2023-09-24 05:43:42 +01:00
2023-09-19 13:52:22 +01:00
2023-09-11 01:53:40 +01:00
2023-09-22 16:09:45 +02:00
2023-08-26 18:33:54 +02:00
2023-09-06 05:20:19 +00:00
2023-09-17 23:40:48 +02:00
2023-09-23 07:47:23 -04:00
2023-09-25 03:00:13 +01:00
2023-09-23 19:40:35 +03:00
2023-09-20 23:10:40 +02:00
2023-09-22 09:58:41 +02:00
2023-09-16 10:10:08 -04:00
2023-08-15 15:27:22 +03:00
2023-09-23 10:36:26 +01:00
2023-09-16 09:31:29 +02:00
2023-09-22 11:31:02 +03:00
2023-09-24 23:29:14 +01:00
2023-09-23 02:52:41 +02:00
2023-09-24 15:08:37 +02:00
2023-09-24 10:27:01 -04:00
2023-09-19 17:09:28 -04:00
2023-09-22 16:15:51 -05:00
2023-09-19 09:26:25 +02:00
2023-09-24 17:01:49 +08:00
S
Description
No description provided
9.8 GiB
Languages
Shell 97.9%
Roff 1.4%
Emacs Lisp 0.2%
C 0.1%