aboutsummaryrefslogtreecommitdiff
blob: 77e719025e3b5458e32a35e9b8db8087f63074aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?xml version="1.0" encoding="UTF-8"?>
<guide self="general-concepts/overlay/">
<chapter>
<title>Overlay</title>

<body>
<p>
Portage can look in multiple places for packages by using an overlay. The
locations of overlays are controlled by the <c>location</c> variable
in one or more repos.conf files.
</p>

<p>
The overlay should contain the same directory structure as the Gentoo
repository (although only the necessary directories need be included).
For example, a simple overlay might have a directory structure like:
</p>

<pre>
overlay
|-- dev-util
    `-- gengetopt
        |-- Manifest
        |-- files
        |   `-- gengetopt-2.13-foobar.patch
        `-- gengetopt-2.13.ebuild
</pre>

<p>
An overlay can be used to 'add' items to the tree (although you must ensure that
<c>/etc/portage/categories</c> is used if any new categories are added) or to
override existing entries.
</p>
</body>

<section>
<title>Overlay and eclasses</title>

<body>
<p>
Be very careful when using eclasses in an overlay. Portage will not do cache
updates when an overlay eclass is changed, nor will it do cache updates when a
main Gentoo repository eclass which is used by an overlay ebuild changes. You may
also encounter bogus 'illegal inherit' notices when working with eclasses in
an overlay (see
<uri link="::appendices/common-problems/#QA Notice: ECLASS foo inherited illegally"/>).
To be safe, manually <c>touch</c> all relevant overlay files after updating overlay
eclasses.
</p>
</body>
</section>

</chapter>
</guide>