Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] advice on transitioning from package.use file to package.use directory
Date: Tue, 01 Sep 2015 10:50:38
Message-Id: 55E582E9.3030106@gmail.com
In Reply to: Re: [gentoo-user] advice on transitioning from package.use file to package.use directory by Bill Kenworthy
1 On 01/09/2015 12:21, Bill Kenworthy wrote:
2 > On 01/09/15 16:10, Emanuele Rusconi wrote:
3 >> On 1 September 2015 at 10:02, Walter Dnes <waltdnes@××××××××.org> wrote:
4 >>> How many heads will explode? I have /etc/portage/package.use/package.use
5 >>> file (YES!) The only reason I made a package.use directory was because I
6 >>> set up a cross-build environment, so that my ancient 32-bit Atom netbook
7 >>> wouldn't have to spend 14 hours building Seamonkey. The cross-compiler
8 >>> *DEMANDS* a package.use directory.
9 >>>
10 >>> [d531][waltdnes][~] ll /etc/portage/package.use/
11 >>> total 24
12 >>> drwxr-xr-x 2 root root 4096 Jul 30 17:05 .
13 >>> drwxr-xr-x 13 root root 4096 Jul 30 17:03 ..
14 >>> -rw-r--r-- 1 root root 41 Mar 25 00:04 cross---help
15 >>> -rw-r--r-- 1 root root 37 Mar 25 00:01 cross--p
16 >>> -rw-r--r-- 1 root root 274 May 4 12:07 cross-i686-pc-linux-gnu
17 >>> -rw-r--r-- 1 root root 585 Jul 30 17:05 package.use
18 >>>
19 >>> --
20 >>> Walter Dnes <waltdnes@××××××××.org>
21 >>> I don't run "desktop environments"; I run useful applications
22 >>>
23 >>
24 >> Yeah, crazy, right? I mean, a configuration file WITHIN a directory!!
25 >> Woah, it's mind-boggling, dude!!
26 >>
27 >> -- Emanuele Rusconi
28 >>
29 >
30 > Hey! - I am not the only one doing this then :)
31 >
32 > And it was also because of a cross-compiler. When I looked at how much
33 > extra work this type fragmentation causes, and how little (or any!)
34 > advantage it gives makes one wonder about the designers sanity ...
35
36 Switching from a single file to a directory of files is a needless PITA,
37 because the file and the directory *have*the*same*name* <doh>
38
39 So you must first move the file out of the way or rename it, then move
40 it into the newly created directory.
41
42 What ought to have happened, and the convention had long existed when
43 this scheme for portage was thought up, is to call the directory
44
45 /etc/portage/package.mask.d/
46
47 then you could easily have a main file and as many subsidiary files as
48 you need/want. Just like how every other package seems to do it.
49
50 --
51 Alan McKinnon
52 alan.mckinnon@×××××.com

Replies

Subject Author
[gentoo-user] Re: advice on transitioning from package.use file to package.use directory James <wireless@×××××××××××.com>