Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] portage getting mixed up with USE?
Date: Wed, 22 Jun 2011 09:52:41
Message-Id: 3623519.19NbE9HXb6@nazgul
In Reply to: Re: [gentoo-user] portage getting mixed up with USE? by Daniel Pielmeier
1 On Wednesday 22 June 2011 11:31:09 Daniel Pielmeier did opine thusly:
2 > 2011/6/22 Alan McKinnon <alan.mckinnon@×××××.com>:
3 > > On Wednesday 22 June 2011 10:49:04 Daniel Pielmeier did opine
4 thusly:
5 > >> I guess it displays the USE settings how they should be and
6 > >> afterwards prints the required changes. Or does it build fltk
7 > >> with USE="-cairo" if you just type emerge -av fltk?
8 > >
9 > > emerge -av fltk
10 > >
11 > > gives exactly the same output as above. The dillo ebuild doesn't
12 > > seem to be causing this change in behaviour:
13 > >
14 > > RDEPEND="x11-libs/fltk:2[-cairo,jpeg=,png=]
15 > >
16 > > What it looks like is portage is insisting the package.use
17 > > explicitly states the USE flags needed. This is wrong and I am
18 > > not about to bloat package.use to cater for every "built with
19 > > use" occurrence. Or perhaps it's now only looking at installed
20 > > deps and not it's own dep graph when emerge runs.
21 > >
22 > > Portage should only care about whether the package is already
23 > > built with use, or will be according to the dep graph
24 >
25 > So you get the same recommendation about the use flag change?
26
27 No, I meant the output was the same as:
28
29 [ebuild N ] x11-libs/fltk-2.0_pre6970-r1 USE="jpeg opengl png
30 xft xinerama zlib -cairo -debug -doc" 2,470 kB
31
32 I didn't run an emerge -p dillo to see what that would do, I did
33 meanwhile add an entry to package.use to make portage shut up and do
34 what I want (install claws)
35
36 > If you have USE="cairo" in make.conf or it is enabled via some
37 > profile (desktop?) you have to add >=x11-libs/fltk-2.0_pre6970-r1
38 > -cairo to package.use to override this on a per package basis. I
39 > think there is no way around this.
40
41 I have only the defaults:
42
43 # grep -r cairo /etc/portage/*
44 /etc/portage/package.use/package.use:x11-libs/cairo cleartype
45 lcdfilter -qt4
46 /etc/portage/package.use/package.use:>=x11-libs/fltk-2.0_pre6970-r1 -
47 cairo
48
49 /etc/make.profile ->
50 ../var/portage/profiles/default/linux/amd64/10.0/desktop
51
52 # emerge --info | grep cairo
53 USE=" ... cairo ... "
54
55 The package.use entry is new.
56
57 I still don't understand why portage is making this fuss. It is saying
58 that fltk needs to have a package.use entry for -cairo, but that's not
59 what it needs. It needs fltk *built* that way, becuase dillo requires
60 it and claws-mail depends on dillo.
61
62 Portage's own output immediately prior clearly says that it will build
63 fltk with USE=-cairo as part of the dependencies.
64
65 This crap about package.use is a red herring, a new behaviour and
66 rather unwanted actually. It's adding useless new stuff into the
67 process that doesn't belong.
68
69 --
70 alan dot mckinnon at gmail dot com