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:24:29
Message-Id: 40A2409A.5000000@skylineaero.com
In Reply to: [gentoo-portage-dev] /etc/make.profile/use.defaults (was: building dependency tree) by Andrew Gaffney
1 Andrew Gaffney wrote:
2 > Pieter Van den Abeele wrote:
3 >
4 >>
5 >> On 12 May 2004, at 16:43, Andrew Gaffney wrote:
6 >>
7 >>> Pieter Van den Abeele wrote:
8 >>>
9 >>>> On 12 May 2004, at 08:42, Andrew Gaffney wrote:
10 >>>>
11 >>>>> agaffney@kagome dev $ ./portage.pl x11-base/xfree | sort -u
12 >>>>> x11-base/xfree-4.3.0-r5
13 >>>>> x11-misc/ttmkfdir-3.0.9-r1
14 >>>>
15 >>>>
16 >>>> ttmkfdir is an xfree compile time dependency, so it has to be
17 >>>> installed before xfree and not after :-)
18 >>>
19 >>>
20 >>>
21 >>> I know. Like I said, my program currently only prints dependencies
22 >>> instead of tracking them in an array or hash, so it can't eliminate
23 >>> duplicates. Because of this, I ran the output through 'sort -u' which
24 >>> put them in alphabetical order instead of dependency order.
25 >>
26 >>
27 >>
28 >> ok, that's what happens when you write email late in the morning :-)
29 >
30 >
31 > I've come across another issue. 'emerge -epvt xfree' shows that python
32 > wants to install tcl and tk because of the 'tcltk' USE flag where my
33 > program doesn't. That USE flag is not defined in my
34 > /etc/make.profile/make.defaults or /etc/make.conf. 'ufed' shows that it
35 > is defined in /etc/make.profile/use.defaults. I've never come across
36 > this file before. What does it do?
37
38 Nevermind. From 'man portage':
39
40 use.defaults
41 Here we DO NOT define the default USE flags, but the so-called
42 auto-USE flags. This rather unknown portage feature activates a USE
43 flag if a specific package is installed and the flag was not explicitly
44 deactivated. This file contains the associations between USE flags and
45 packages that trigger the auto-USE feature.
46
47 In other words, if we never put "sdl" or "-sdl" into our USE, but we have
48 media-libs/libsdl emerged, then portage automagically sticks "sdl" into our
49 USE for us.
50
51 Format:
52 - comments begin with #
53 - one USE flag per line with a list of DEPEND atom bases
54
55 Example:
56 # media-libs/libsdl will activate "sdl"
57 sdl media-libs/libsdl
58 # activate tcltk only if we have both
59 # dev-lang/tcl and dev-lang/tk
60 tcltk dev-lang/tcl dev-lang/tk
61
62 That makes sense, but shouldn't Portage not use these when operating with the
63 '--emptytree' flag since it pretends that nothing is installed?
64
65 --
66 Andrew Gaffney
67 Network Administrator
68 Skyline Aeronautics, LLC.
69 636-357-1548
70
71
72 --
73 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>