Gentoo Archives: gentoo-portage-dev

From: Andrew Gaffney <agaffney@×××××××××××.com>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] /etc/make.profile/use.defaults
Date: Wed, 12 May 2004 15:49:28
Message-Id: 40A24674.2080308@skylineaero.com
In Reply to: Re: [gentoo-portage-dev] /etc/make.profile/use.defaults by Pieter Van den Abeele
1 Pieter Van den Abeele wrote:
2 >
3 > On 12 May 2004, at 17:19, Andrew Gaffney wrote:
4 >
5 >>> I've come across another issue. 'emerge -epvt xfree' shows that
6 >>> python wants to install tcl and tk because of the 'tcltk' USE flag
7 >>> where my program doesn't. That USE flag is not defined in my
8 >>> /etc/make.profile/make.defaults or /etc/make.conf. 'ufed' shows that
9 >>> it is defined in /etc/make.profile/use.defaults. I've never come
10 >>> across this file before. What does it do?
11 >>
12 >>
13 >> Nevermind. From 'man portage':
14 >>
15 >> use.defaults
16 >> Here we DO NOT define the default USE flags, but the so-called
17 >> auto-USE flags. This rather unknown portage feature activates a USE
18 >> flag if a specific package is installed and the flag was not
19 >> explicitly
20 >> deactivated. This file contains the associations between USE
21 >> flags and
22 >> packages that trigger the auto-USE feature.
23 >>
24 >> In other words, if we never put "sdl" or "-sdl" into our USE, but
25 >> we have
26 >> media-libs/libsdl emerged, then portage automagically sticks "sdl"
27 >> into our
28 >> USE for us.
29 >>
30 >> Format:
31 >> - comments begin with #
32 >> - one USE flag per line with a list of DEPEND atom bases
33 >>
34 >> Example:
35 >> # media-libs/libsdl will activate "sdl"
36 >> sdl media-libs/libsdl
37 >> # activate tcltk only if we have both
38 >> # dev-lang/tcl and dev-lang/tk
39 >> tcltk dev-lang/tcl dev-lang/tk
40 >>
41 >> That makes sense, but shouldn't Portage not use these when operating
42 >> with the '--emptytree' flag since it pretends that nothing is installed?
43 >
44 > I think that with 'installed' in this case they also include 'scheduled
45 > for installation' (although I'm not 100% sure). For instance If portage
46 > schedules tcl and tk in an emptytree, then the tcltk useflag will be
47 > enabled for packages having IUSE="tcltk" that are added to the schedule
48 > afterwards.
49
50 But they are only 'scheduled for installation' if the USE flag is activated. The
51 '--emptytree' flag gets emerge in some weird 'chicken and egg' situation. With
52 '--emptytree' set, emerge should assume nothing is installed. If nothing is
53 installed, then tcl and tk aren't installed and the 'tcltk' USE flag shouldn't
54 be auto-activated.
55
56 --
57 Andrew Gaffney
58 Network Administrator
59 Skyline Aeronautics, LLC.
60 636-357-1548
61
62
63 --
64 gentoo-portage-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-portage-dev] /etc/make.profile/use.defaults Pieter Van den Abeele <pvdabeel@g.o>