1 |
11.08.2015 16:04, Sergey Popov пишет: |
2 |
> 11.08.2015 15:32, Michael Palimaka пишет: |
3 |
>> On 11/08/15 20:17, Sergey Popov wrote: |
4 |
>>> 09.08.2015 23:28, Ulrich Mueller пишет: |
5 |
>>>> I disagree with this. Really, REQUIRED_USE should be used sparingly, |
6 |
>>>> and IMHO the above is not a legitimate usage case for it. |
7 |
>>> |
8 |
>>> So, you prefer to make ugly mess of deps here like i posted before or |
9 |
>>> introduce some really unneded USE-flag like 'gui', 'qt', etc. to make |
10 |
>>> users even more confused? |
11 |
>>> |
12 |
>>> Really, look at man-db ebuild. Especially on berkdb and gdbm USE flags. |
13 |
>>> And dependency string like this: |
14 |
>>> |
15 |
>>> !berkdb? ( !gdbm? ( sys-libs/gdbm ) ) |
16 |
>>> |
17 |
>>> One sentence: "WHAT THE HELL?" |
18 |
>>> |
19 |
>>> Imagine that it would be dozen of flags. Is it fun to mess with deps |
20 |
>>> like this for you? |
21 |
>> |
22 |
>> Shall we ban this too? |
23 |
>> |
24 |
>> ffmpeg? ( |
25 |
>> libav? ( media-video/libav:= ) |
26 |
>> !libav? ( media-video/ffmpeg:0= ) |
27 |
>> ) |
28 |
>> |
29 |
>> |
30 |
>> |
31 |
>> |
32 |
> |
33 |
> No, because ffmpeg here is a feature AND name of concrete realization. |
34 |
> Not ideal case as i would said, but it is acceptable. |
35 |
> |
36 |
> You want to migrate to such decision? Like: |
37 |
> |
38 |
> qt? ( |
39 |
> qt5? ( dev-lang/qtcore:5 ) |
40 |
> !qt5? ( dev-lang/qtcore:4 ) |
41 |
> ) |
42 |
> |
43 |
> Fine by me, if you would ask. |
44 |
> |
45 |
> As i said one message earlier: Something like $(qt_use_default qtgui 5) |
46 |
> |
47 |
> which will generate something like this: |
48 |
> |
49 |
> qt4? ( |
50 |
> qt5? ( dev-lang/qtcore:5 ) |
51 |
> !qt5? ( dev-lang/qtcore:4 ) |
52 |
> ) |
53 |
> !qt5? ( !qt4? ( dev-lang/qtcore:5 ) ) |
54 |
> |
55 |
> would help too. |
56 |
> |
57 |
> If you are doing complicated things(and please, do not tell me that |
58 |
> provided dependency string is simple and understandable by every |
59 |
> developer in just a second without wanting to "improve" or "simplify" |
60 |
> it) - do it through eclass. And provide nice API. |
61 |
> |
62 |
> Thanks for listening and sorry if i was too harsh |
63 |
> |
64 |
|
65 |
Oops, sorry dev-qt/qtgui inside the brackets, of course. |
66 |
|
67 |
-- |
68 |
Best regards, Sergey Popov |
69 |
Gentoo developer |
70 |
Gentoo Desktop Effects project lead |
71 |
Gentoo Quality Assurance project lead |
72 |
Gentoo Proxy maintainers project lead |