Gentoo Archives: gentoo-user

From: Harry Putnam <reader@×××××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: Advantages or disadvantages of use package.use as directory
Date: Sun, 30 Aug 2015 17:25:19
Message-Id: 877foc1yg0.fsf@reader.local.lan
In Reply to: Re: [gentoo-user] Advantages or disadvantages of use package.use as directory by Alan McKinnon
1 Alan McKinnon <alan.mckinnon@×××××.com> writes:
2
3 [...]
4
5 >> I tried the later like so:
6 >> /etc/portage/package.use/app-editors/emacs-vcs
7 >> where emacs-vcs contains:
8 >>
9 >> emacs-vcs Xaw3d athena gnutls imagemagick toolkit-scroll-bars
10 >>
11 >> and this way:
12 >>
13 >> >=app-editors/emacs-vcs-25.0.50_pre20150731 Xaw3d athena gnutls imagemagick toolkit-scroll-bars
14 >>
15 >> But when I attempt emerging... the USE flags do not reflect those
16 >> choices and shows and error:
17 >>
18 >> --- Invalid atom in /etc/portage/package.use/app-editors/emacs-vcs:
19 >> >=app-editors/emacs-vcs
20 >>
21 >> So what is the correct format?
22 >
23 >
24 > Both your above are completely wrong. The docs clearly and unambiguously
25 > say the exact format inside the file is identical whether you use a
26 > package.use file, or any old arb filename you want inside a package.use/
27 > directory
28 >
29 > You have not done this, you have let your confused brain override what
30 > your eyes can clearly see, and have invented something new to do that is
31 > not in the docs. Tut, tut.
32
33 > Read the docs again and do what they say.
34
35 Yes indeed... thanks
36
37
38 wraeth <wraeth@×××××××××.au> writes:
39
40 > I'd already typed up this response when I saw the one from Alan come
41 > in; figured I'd send it anyway - two responses that essentially agree
42 > are better than one, right?
43
44 [...]
45
46 > Create a file within the package.use directory, named whatever seems
47 > reasonable to you, and put the contents:
48 >
49 > app-editors/emacs-vcs Xaw3d athena gnutls imagemagick toolkit-scroll-bars
50 >
51 > Enter a single package atom followed by any use flag changes - flag
52 > name to enable, minus flag name to disable. In case the above example
53 > wrapped, keep the package atom and the flags on a single line.
54 >
55 > As far as I'm aware, you can't nest files within subdirectories of
56 > package.use, and the man page doesn't mention version ranges - it's
57 > example is an exact atom (=) and wildcards (see portage(5) man page).
58
59 Very helpful... thank you. I've got it going now.