1 |
On Sun, 5 Aug 2018 22:32:34 -0700 |
2 |
Zac Medico <zmedico@g.o> wrote: |
3 |
|
4 |
> Update all relevant references in docs, messages, and comments |
5 |
> to refer to /var/db/repos/gentoo instead of /usr/portage. Also |
6 |
> update DISTDIR and PKGDIR references to refer to the new |
7 |
> /var/cache/{distfiles,binpkgs} locations. |
8 |
> |
9 |
> Bug: https://bugs.gentoo.org/378603 |
10 |
> --- |
11 |
> [PATCH 2/2 v2] fixes DISTDIR and PKGDIR references to rever to the |
12 |
> new /var/cache/{distfiles,binpkgs} locations |
13 |
> |
14 |
> cnf/make.conf.example | 12 +++++------ |
15 |
> lib/portage/__init__.py | 2 +- |
16 |
> lib/portage/cache/flat_hash.py | 2 +- |
17 |
> lib/portage/tests/news/test_NewsItem.py | 2 +- |
18 |
> lib/portage/tests/resolver/ResolverPlayground.py | 2 +- |
19 |
> lib/portage/xml/metadata.py | 4 ++-- |
20 |
> man/ebuild.5 | 4 ++-- |
21 |
> man/emerge.1 | 6 +++--- |
22 |
> man/make.conf.5 | 20 |
23 |
> +++++++++--------- man/portage.5 | |
24 |
> 26 ++++++++++++------------ |
25 |
> man/quickpkg.1 | 2 +- |
26 |
> repoman/lib/repoman/__init__.py | 2 +- |
27 |
> repoman/lib/repoman/checks/herds/herdbase.py | 2 +- 13 files |
28 |
> changed, 43 insertions(+), 43 deletions(-) |
29 |
> |
30 |
> diff --git a/cnf/make.conf.example b/cnf/make.conf.example |
31 |
> index 04f3a0274..c16f2afbd 100644 |
32 |
> --- a/cnf/make.conf.example |
33 |
> +++ b/cnf/make.conf.example |
34 |
> @@ -14,7 +14,7 @@ |
35 |
> # https://wiki.gentoo.org/wiki/Handbook:X86/Working/USE |
36 |
> # |
37 |
> # The available list of use flags with descriptions is in your |
38 |
> portage tree. -# Use 'less' to view them: --> |
39 |
> less /usr/portage/profiles/use.desc <-- +# Use 'less' to view them: |
40 |
> --> less /var/db/repos/gentoo/profiles/use.desc <-- # |
41 |
> # 'ufed' is an ncurses/dialog interface available in portage to make |
42 |
> handling # useflags for you. 'emerge app-portage/ufed' |
43 |
> @@ -111,7 +111,7 @@ |
44 |
> # will protect the default locations of DISTDIR and PKGDIR, but |
45 |
> users are # warned that any other locations inside PORTDIR are |
46 |
> not necessarily safe # for data storage. |
47 |
> -#PORTDIR=/usr/portage |
48 |
> +#PORTDIR=/var/db/repos/gentoo |
49 |
> # |
50 |
> # DISTDIR is where all of the source code tarballs will be placed for |
51 |
> # emerges. After packages are built, it is safe to remove any and |
52 |
> @@ -119,16 +119,16 @@ |
53 |
> # fetched on demand for a given build. If you would like to |
54 |
> # selectively prune obsolete files from this directory, see |
55 |
> # eclean from the gentoolkit package. Note that locations under |
56 |
> -# /usr/portage are not necessarily safe for data storage. See the |
57 |
> +# /var/db/repos/gentoo are not necessarily safe for data |
58 |
> storage. See the # PORTDIR documentation for more information. |
59 |
> -#DISTDIR=/usr/portage/distfiles |
60 |
> +#DISTDIR=/var/cache/distfiles |
61 |
> # |
62 |
> # PKGDIR is the location of binary packages that you can have created |
63 |
> # with '--buildpkg' or '-b' while emerging a package. This can |
64 |
> get # up to several hundred megs, or even a few gigs. Note that |
65 |
> -# locations under /usr/portage are not necessarily safe for data |
66 |
> +# locations under /var/db/repos/gentoo are not necessarily safe |
67 |
> for data # storage. See the PORTDIR documentation for more |
68 |
> information. -#PKGDIR=/usr/portage/packages |
69 |
> +#PKGDIR=/var/cache/binpkgs |
70 |
> # |
71 |
> # PORT_LOGDIR is the location where portage will store all the logs |
72 |
> it # creates from each individual merge. They are stored as |
73 |
> diff --git a/lib/portage/__init__.py b/lib/portage/__init__.py |
74 |
> index 166bfc700..61a240100 100644 |
75 |
> --- a/lib/portage/__init__.py |
76 |
> +++ b/lib/portage/__init__.py |
77 |
> @@ -133,7 +133,7 @@ except ImportError as e: |
78 |
> sys.stderr.write("!!! Failed to complete portage imports. |
79 |
> There are internal modules for\n") sys.stderr.write("!!! portage and |
80 |
> failure here indicates that you have a problem with your\n") |
81 |
> sys.stderr.write("!!! installation of portage. Please try a rescue |
82 |
> portage located in the\n") |
83 |
> - sys.stderr.write("!!! portage tree under '/usr/portage/sys-apps/portage/files/' (default).\n") |
84 |
> + sys.stderr.write("!!! portage tree under '/var/db/repos/gentoo/sys-apps/portage/files/' (default).\n") |
85 |
|
86 |
|
87 |
This should also get updated replacing "portage tree" with "gentoo |
88 |
tree" |
89 |
|
90 |
|
91 |
... |
92 |
|
93 |
> The packages, after being created, will be placed in \fBPKGDIR\fR. |
94 |
> This variable is defined in \fBmake.conf\fR(5) and defaults to |
95 |
> -/usr/portage/packages. |
96 |
> +/var/cache/binpkgs. |
97 |
> .SH OPTIONS |
98 |
> .TP |
99 |
> .B <list of packages or package\-sets> |
100 |
> diff --git a/repoman/lib/repoman/__init__.py |
101 |
> b/repoman/lib/repoman/__init__.py index 89779b95c..d1312a267 100644 |
102 |
> --- a/repoman/lib/repoman/__init__.py |
103 |
> +++ b/repoman/lib/repoman/__init__.py |
104 |
> @@ -14,7 +14,7 @@ except ImportError as e: |
105 |
> sys.stderr.write("!!! Failed to complete portage imports. |
106 |
> There are internal modules for\n") sys.stderr.write("!!! portage and |
107 |
> failure here indicates that you have a problem with your\n") |
108 |
> sys.stderr.write("!!! installation of portage. Please try a rescue |
109 |
> portage located in the\n") |
110 |
> - sys.stderr.write("!!! portage tree under '/usr/portage/sys-apps/portage/files/' (default).\n") |
111 |
> + sys.stderr.write("!!! portage tree under '/var/db/repos/gentoo/sys-apps/portage/files/' (default).\n") |
112 |
|
113 |
same again here replace "portage tree" with "gentoo tree" |
114 |
|
115 |
|
116 |
> sys.stderr.write("!!! There is a README.RESCUE file that details the |
117 |
> steps required to perform\n") sys.stderr.write("!!! a recovery of |
118 |
> portage.\n") sys.stderr.write(" "+str(e)+"\n\n") diff --git |
119 |
> a/repoman/lib/repoman/checks/herds/herdbase.py |
120 |
> b/repoman/lib/repoman/checks/herds/herdbase.py index |
121 |
> ebe6a19b4..1e7c0b27c 100644 --- |
122 |
> a/repoman/lib/repoman/checks/herds/herdbase.py +++ |
123 |
> b/repoman/lib/repoman/checks/herds/herdbase.py @@ -119,7 +119,7 @@ |
124 |
> def get_herd_base(repoman_settings): |
125 |
> if __name__ == '__main__': |
126 |
> - h = make_herd_base('/usr/portage/metadata/herds.xml') |
127 |
> + h = make_herd_base('/var/db/repos/gentoo/metadata/herds.xml') |
128 |
> |
129 |
> assert(h.known_herd('sound')) |
130 |
> assert(not h.known_herd('media-sound')) |
131 |
|
132 |
Has it been long enough since herds are removed from gentoo that we |
133 |
can drop the herds code completey? but otherwise the change itself is |
134 |
fine. |