diff options
| author | Sam James <sam@gentoo.org> | 2023-09-25 01:05:20 +0100 |
|---|---|---|
| committer | Sam James <sam@gentoo.org> | 2023-09-25 03:06:51 +0100 |
| commit | 6302dd47e23ee32cfcb446355704ba8bc61b668e (patch) | |
| tree | e807420d8144d3ba78d6b95b21bbb01de31aee39 /dev-python/python-utils | |
| parent | d25a5e2c34d651a9a7f56ca1f0c520a2b92a867b (diff) | |
| download | gentoo-6302dd47e23ee32cfcb446355704ba8bc61b668e.tar.gz gentoo-6302dd47e23ee32cfcb446355704ba8bc61b668e.tar.bz2 gentoo-6302dd47e23ee32cfcb446355704ba8bc61b668e.zip | |
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>
Diffstat (limited to 'dev-python/python-utils')
0 files changed, 0 insertions, 0 deletions
