Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] e17 overlay bug
Date: Tue, 04 Nov 2008 15:57:51
Message-Id: 200811041757.41872.alan.mckinnon@gmail.com
In Reply to: Re: [gentoo-user] e17 overlay bug by Hazen Valliant-Saunders
1 On Tuesday 04 November 2008 15:42:21 Hazen Valliant-Saunders wrote:
2 > Good Day all;
3 >
4 > Sorry to sound like a luddite;
5 >
6 > Where would I create my own user overlay? (so I may go about fiddling with
7 > the settings?)
8
9 It's in the handbook somewhere :-) But I can't be bothered finding it, so I'll
10 type it.
11
12 All it really is, is a directory somewhere and you tell portage where it is.
13 In that directory you have a sub-directory structure that looks the same as
14 the portage tree, but with just the categories you have ebuilds for.
15
16 I have my portage tree at /var/portage (yes, I'm a stickler for detail and the
17 tree is a database so it should not go into /usr/ per LFS and in case I
18 mount /usr/ read-only....). The normal place for overlays is
19 thus /var/portage/local:
20
21 $ ls -l /var/portage/local/
22 total 3
23 drwxrwsr-x 15 root portage 1024 Oct 28 10:31 alan
24 drwxr-sr-x 8 alan portage 1024 Sep 25 10:28 e17
25 drwxrwsr-x 5 root portage 1024 Oct 12 18:27 layman
26
27 Ignore layman, that's a gentoo tool to make it easy to use gentoo dev's own
28 overlays that they publish. My private overlays are alan and e17. Inside alan
29 I have:
30
31 $ ls -l /var/portage/local/alan/
32 total 23
33 -rw-rw-r-- 1 root portage 1161 Jun 6 17:51 TODO
34 drwxr-sr-x 3 root portage 1024 Oct 28 10:31 app-doc
35 drwxrwsr-x 3 root portage 1024 Jun 4 10:49 app-misc
36 drwxrwsr-x 2 root portage 1024 Mar 16 2008 app-text
37 drwxrwsr-x 3 root portage 1024 Jan 3 2008 dev-util
38 drwxrwsr-x 2 root portage 1024 Aug 29 14:58 eclass
39 -rw-rw-r-- 1 alan portage 0 Feb 27 2008 manifest1_obsolete
40 drwxr-sr-x 4 root portage 1024 Sep 15 16:36 net-libs
41 drwxrwsr-x 3 root portage 1024 May 3 2008 net-mail
42 drwxr-sr-x 5 root portage 1024 Sep 15 21:16 net-misc
43 drwxrwsr-x 2 root portage 1024 Jun 26 13:13 profiles
44 drwxrwsr-x 2 alan portage 1024 Sep 9 14:24 x11-libs
45 drwxrwsr-x 3 alan portage 1024 Apr 27 2008 x11-misc
46 drwxrwsr-x 8 root portage 1024 Sep 15 16:37 x11-plugins
47 drwxrwsr-x 146 root portage 9216 Nov 2 18:38 x11-themes
48
49 It looks just like a piece of a portage tree. Tell portage where the overlay
50 is with an edit to make.conf:
51
52 $ grep -i overlay /etc/make.conf
53 PORTDIR_OVERLAY="$PORTDIR_OVERLAY /var/portage/local/e17 /var/portage/local/alan"
54
55 and you are all set. Put ebuilds in the obvious place in the directory. The
56 only extra step before you can use them is to build a manifest for each
57 package with an ebuild:
58
59 ebuild /path/to/your/ebuild/<package>-<version>.ebuild manifest
60
61 Do this once per package (it manifests all files in the directory, not just
62 that one ebuild) and emerge.
63
64
65 --
66 alan dot mckinnon at gmail dot com