Gentoo Archives: gentoo-dev

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Moving our/portage stuff to var
Date: Thu, 20 Dec 2012 11:41:14
Message-Id: 20121220133627.49101bd3@khamul.example.com
In Reply to: Re: [gentoo-dev] Moving our/portage stuff to var by Zac Medico
1 On Wed, 19 Dec 2012 14:19:52 -0800
2 Zac Medico <zmedico@g.o> wrote:
3
4 > On 12/19/2012 02:01 PM, Alan McKinnon wrote:
5 > > On Wed, 19 Dec 2012 14:56:44 +0100
6 > > Diego Elio Pettenò <flameeyes@×××××××××.eu> wrote:
7 > >
8 > >> Just mv /usr/portage /var/portage ? FFS no. Among other things, as
9 > >> many said before, we should really take distfiles out of the tree
10 > >> itself, and packages the same. And I don't want /var/packages
11 > >> or /var/distfiles at all.
12 > >
13 > > If we are going to move distfiles out of the tree into, what are the
14 > > odds of getting /some/path/portage/local to move somewhere else too?
15 >
16 > What program uses this "local" directory? It's not used directly by
17 > portage itself, though portage has an exclude for it in the default
18 > PORTAGE_RSYNC_OPTS setting
19 > (in /usr/share/portage/config/make.globals).
20
21 It goes back a long time, and is basically a poor man's local overlay
22 without having to use layman. As I understand it, portage will treat
23 the directory like any other when looking for ebuilds and resolving
24 deps, but exclude it from a sync.
25
26 >
27 > > That one has irked me for ages, its the one thing left on my systems
28 > > that stops the local tree dir being an exact replica of the upstream
29 > > master.
30 >
31 > For portage's defaults, I won't settle for anything less than having
32 > them all refer to separate directories which are *not* nested within
33 > one other. These are the current default settings which violate my
34 > requirements:
35 >
36 > PORTDIR=/usr/portage
37 > DISTDIR=${PORTDIR}/distfiles
38 > PKGDIR=${PORTDIR}/packages
39 > RPMDIR=${PORTDIR}/rpm
40
41 /usr/portage/local has the taste feel and smell of a hacky workaround:
42 shove a directory in the tree and exclude it from sync.
43
44 I suspect the best solution all round is to move all support for local
45 overlays into layman. I'd be happy with that. Probably make the portage
46 code cleaner too.
47
48
49
50 --
51 Alan McKinnon
52 alan.mckinnon@×××××.com

Replies

Subject Author
Re: [gentoo-dev] Moving our/portage stuff to var George Shapovalov <george@g.o>
Re: [gentoo-dev] Moving our/portage stuff to var Zac Medico <zmedico@g.o>