Gentoo Archives: gentoo-dev

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

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] Re: useflag policies Sergey Popov <pinkbyte@g.o>
Re: [gentoo-dev] Re: useflag policies Alexandre Rostovtsev <tetromino@g.o>
[gentoo-dev] Re: useflag policies Michael Palimaka <kensington@g.o>
Re: [gentoo-dev] Re: useflag policies Ian Stakenvicius <axs@g.o>
Re: [gentoo-dev] Re: useflag policies Peter Stuge <peter@×××××.se>