Gentoo Archives: gentoo-dev

From: Paul de Vrieze <pauldv@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] /usr/portage --> /var/portage
Date: Mon, 19 Jan 2004 09:16:28
Message-Id: 52806.134.188.150.80.1074503784.squirrel@callisto.cs.kun.nl
In Reply to: Re: [gentoo-dev] /usr/portage --> /var/portage by Drake Wyrm
1 > On Thu, Jan 15, 2004 at 04:54:24PM -0500, in <874quwyj1r.fsf@××××××××.cx>,
2
3 > '/usr/portage' is the wrong place for the Portage tree. The data is
4 > certainly sharable, but certainly *not* static. Furthermore, FHS states
5 > "Large software packages must not use a direct subdirectory under the
6 > /usr hierarchy." The Portage tree should be moved, for FHS compliance,
7 > for the reasons listed in the FHS rationale, and for the reasons discussed
8 > elsewhere in this thread.
9 >
10 > But to where?
11 >
12 > The catch is this: if the machine in question is running on a network that
13 > actually *shares* its sharable data (e.g. the /usr hierarchy), it makes
14 > sense to put the the Portage tree somewhere under /usr. Except during sync
15 > operations (which would be performed by the host serving the /usr tree),
16 > the Portage tree remains generally unmodified, so it fits the requirement
17 > of "...read-only data ... must not be written to." Even though many
18 > files in the Portage tree are architecture-specific, _the_tree_itself_
19 > is architecture- and host-independent.
20 >
21 > Unfortunately, a Gentoo machine is a very dynamic environment. The Portage
22 > tree changes drastically and often. On a machine which maintains its own
23 > Portage tree, '/var' is absolutely the right place to look. FHS provides
24 > two likely options: '/var/cache' (application cache data) and '/var/lib'
25 > (variable state data). The DISTDIR, on the other hand, is much less
26 > dynamic and could still find a home under '/usr'.
27
28 I would like to add that actually not all of the data in /usr/portage is
29 dispensible. If the profile directory is removed, emerge will not work (we
30 might be able to fix this). Further in the /var/cache/edb dir there are
31 files that are not caches in that sense of the word. They are also not
32 replaceable. So I think if we want to have this discussion we need to look
33 at all files that are involved in portage.
34
35 Paul
36
37
38 --
39 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] /usr/portage --> /var/portage Jeremy Maitin-Shepard <jbms@g.o>
Re: [gentoo-dev] /usr/portage --> /var/portage Drake Wyrm <wyrm@×××××.com>