Gentoo Archives: gentoo-dev

From: Duncan <1i5t5.duncan@×××.net>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Re: imlib/imlib2 useflag inconsistency
Date: Thu, 14 Aug 2008 22:51:23
Message-Id: pan.2008.08.14.22.50.55@cox.net
In Reply to: [gentoo-dev] imlib/imlib2 useflag inconsistency by Benedikt Morbach
1 "Benedikt Morbach" <benedikt.morbach@××××××××××.com> posted
2 6faa67950808141256p32b8b6d0uaa59ebe7d2a2653@××××××××××.com, excerpted
3 below, on Thu, 14 Aug 2008 21:56:16 +0200:
4
5 > Possible solutions include: (sorted by necessary effort) 1. Leaving
6 > everything like it is (not a real solution) 2. Removing the imlib2
7 > useflag 3. Changing the 24 ebuilds depending on imlib2 to use the imlib2
8 > useflag (and possibly making it a global flag)
9 >
10 > In my opinion, making imlib2 a global useflag would be the best
11 > solution, as it gives users who do not want an ancient unmaintained
12 > library a fine grained control over their system.
13
14 Good catch/argument.
15
16 Based on what was done with qt and gtk, option 2 above, removing the
17 imlib2 USE flag and converting everything to use the imlib USE flag, is
18 the most likely solution. Check the archives on gtk/gtk2 if you'd like.
19
20 In the gtk/gtk2 case, where many packages could link against either, gtk
21 was used to toggle the gtk general preference, while gtk2 if enabled
22 indicated a preference for it over gtk(1). The solution was to deprecate
23 the gtk2 flag and in general prefer gtk2 to gtk(1), if both could be
24 linked. Individual package maintainers could of course decide to prefer
25 gtk(1) if there was an overriding reason to do so. (qt had somewhat
26 different details which I don't fully recall ATM, but I don't believe
27 it's quite as direct a parallel in any case.)
28
29 Since you mentioned that no imlib/imlib2 packages seem to use both flags,
30 that solution would seem even more applicable here. Just do away with
31 the imlib2 flag entirely, and prefer imlib2 in any cases where there is
32 now or may be later a choice unless there's an overriding reason not to.
33
34 But while I follow the discussion here regularly and have done so for
35 some time, I'm just a user. We'll see what the devs have to say.
36
37 --
38 Duncan - List replies preferred. No HTML msgs.
39 "Every nonfree program has a lord, a master --
40 and if you use the program, he is your master." Richard Stallman