1 |
Hi, |
2 |
|
3 |
On Fri, 14 Nov 2014 09:08:17 -0500 Michael Orlitzky wrote: |
4 |
> On 11/13/2014 10:17 AM, Ian Stakenvicius wrote: |
5 |
> |
6 |
> >> Isn't it possible to disable C++ in GCC with USE="-cxx"? |
7 |
> > |
8 |
> > It is.. but unfortunately there's no way in DEPEND to ensure it's |
9 |
> > satisfied, as you can have a gcc installed with that flag enabled but |
10 |
> > have a second one (that's actually selected in gcc-config) with it |
11 |
> > disabled. A pkg_pretend check or a pkg_setup check (if you don't want |
12 |
> > it to just fail in src_configure) is probably the best way to enforce |
13 |
> > that one at this time. Unless there are other ways I'm not aware of?? |
14 |
> |
15 |
> Is this a case (as was recently suggested) where we're doing something |
16 |
> stupid rather than asking for help from the PMS? This problem shows up |
17 |
> in a few places -- off the top of my head: |
18 |
> |
19 |
> * GCC (see sys-apps/systemd-217.ebuild) |
20 |
> * PHP (see comment in app-text/XML-Schema-learner-1.0.0.ebuild) |
21 |
> * Python (all over the place) |
22 |
> * Ruby (all over the place) |
23 |
> |
24 |
> Since all of the above are slotted, we can DEPEND on them, but we can't |
25 |
> actually be sure that we're using the right slot at build time. The |
26 |
> package manager knows that the right version is there, but it's not at |
27 |
> the moment prepared to find and use it. |
28 |
> |
29 |
> Question 1: is it desirable to e.g. switch compilers, compile systemd, |
30 |
> and then switch back? |
31 |
|
32 |
This is definitely a good idea. Some packages are picky about gcc |
33 |
versions, e.g. dev-util/nvidia-cuda-toolkit usually lags behind the |
34 |
latest available gcc version by one. |
35 |
|
36 |
By the way we have another problem here: packages using cuda |
37 |
build-time must require the same version of compiler as |
38 |
nvidia-cuda-toolkit, or build will fail (app-crypt/johntheripper |
39 |
[cuda] is a good example). Probably cuda eclass should be updated |
40 |
to reflecth this change as well. |
41 |
|
42 |
ATM I workaround issue with switching compilers to and from during |
43 |
emerge run using app-portage/gcc-switcher from stuff overlay. |
44 |
|
45 |
Best regards, |
46 |
Andrew Savchenko |