Chromium's build system explicitly looks for
`libprofiler_builtins-*.rlib` when using a prebuilt / system Rust.
While we could patch this out so that users don't _need_
USE=profiler if not doing PGO, the Rust upstream default is to ship
the profiler; conditionally changing the Chromium build logic to
account for an untested and unsupported build is not desirable.
Instead we will rely on existing dependency checks
(which ensure that a Rust slot with the profiler is installed)
and do a sanity check on the selected Rust implementation before
unpacking Chromium's enormous tarball so that we can fail early and
prompt the user to `eselect` the correct version / slot.
Closes: https://bugs.gentoo.org/937161
Signed-off-by: Matt Jolly <kangie@gentoo.org>
Without this, we can end up with something like:
```
[ebuild NS ] sys-devel/gcc-11.5.0:11::gentoo [13.3.1_p20240614:13::gentoo] USE="(ada*) cet (cxx) (d*) [...]"
[ebuild R ] sys-devel/gcc-13.3.1_p20240614:13::gentoo USE="(ada*) cet (cxx) (d*) [...]"
Total: 2 packages (1 in new slot, 1 reinstall), Size of downloads: 0 KiB
* Error: circular dependencies:
(sys-devel/gcc-13.3.1_p20240614:13/13::gentoo, ebuild scheduled for merge) depends on
(sys-devel/gcc-11.5.0:11/11::gentoo, ebuild scheduled for merge) (buildtime)
(sys-devel/gcc-13.3.1_p20240614:13/13::gentoo, ebuild scheduled for merge) (buildtime)
```
Portage sees sys-devel/gcc[ada] is queued and tries to use it to satisfy
the dep for 11, which pulls in 13, which pulls in 11 for D.
We can workaround this by depending on older GCC for whatever slot we're
in. This matches upstream documentation and also reality as you usually
need an older version anyway.
See also 370253f008a8922c9aebe8099ab9c34bd6947f66 in binhost.git.
Bug: https://bugs.gentoo.org/880825
Signed-off-by: Sam James <sam@gentoo.org>
Clang 19 deprecates the GCC_INSTALL_PREFIX CMake option.
We now handle this via config files installed by gcc-config. If there's
any remaining issues for Prefix, it should be handled over there
or in sys-devel/clang-common.
Closes: https://bugs.gentoo.org/939816
Signed-off-by: Sam James <sam@gentoo.org>
toolchain.eclass hasn't supported versions of GCC that included GCJ
for a while (see ::toolchain and toolchain-legacy.eclass if interested
in that), so drop an obsolete Java workaround we forgot to remove
when cleaning up the rest.
Bug: https://bugs.gentoo.org/384291
Signed-off-by: Sam James <sam@gentoo.org>
gnat-gpl only exists for (bootstrapping) Ada. Until bug #940471 is handled,
force Ada on. Once it is split/moved/gutted, this won't be necessary
as it'll always build Ada.
Bug: https://bugs.gentoo.org/940471
Signed-off-by: Sam James <sam@gentoo.org>
type -P is used in ebuild context, not in the script itself (it is expanded
in the heredoc), so we can use POSIX shell. It might make things slightly
faster given these tools get invoked a lot during the build.
Signed-off-by: Sam James <sam@gentoo.org>