On Sun, Dec 15, 2024 at 10:22:06AM +0200, Mickaël Bucas wrote:
Le sam. 14 déc. 2024, 00:32, Andreas Sturmlechner <[email protected]> a écrit :
Every once in a while, a package requires a really up to date active compiler
in order to build successfully. ecm.eclass had inherited such a mechanism, albeit GCC specific, from older kde* eclasses. I don't think that is a good place for it so I suggest to add a more universal function to toolchain-funcs.eclass.
Similar to tc-check-openmp.
Hi
I was wondering: how is this check different from a version dependency in
any *DEPEND variable?
Different compilers and multiple versions of them can be installed at
same time, and the user can pick them by setting e.g. CC=clang-18,
using gcc-config/eselect, PATH, and such.
A dependency check would only ensure that the compiler is installed,
not that it's the one that's being used, what version of it, or even
what USE is enabled for the used slot/compiler (openmp case). This
would only work if the ebuild is enforcing a specific compiler while
ignoring the user's choice.
--
ionen
-----BEGIN PGP SIGNATURE-----
iQEzBAABCAAdFiEEx3SLh1HBoPy/yLVYskQGsLCsQzQFAmdemWsACgkQskQGsLCs QzTmJQf/WzsmsO/GLTONux5pMAYhB6+PZbIR58uKlV9d7bL6JPfkb+yB7Lt/SXCZ MBaK5+GdPy8V4H7FsvmpPfiFWzsYq6KCw/xaB/ivCL6VYalArPd3n61D19sK62zy U6/FMq2CPPfxi1D7AhcYeQfKLHIbMYcxbhuVYLMGVgfyEgxIz9288V74S4fVSwil gTBhsPr53d05N8nWahFBI3q/SktGCLMwSW65KoDoxon+S7Trf3wEO60VF2Ac08BZ aCnKRb8nM0P67WiOGiABd8seom0NCYttuNYFYSBLau5rAj3q1NS+D/H/szKuUjZN yyMvUsT4a10ZxwHPP+TZdnq6kw4rTg==
=xY4g
-----END PGP SIGNATURE-----
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)