Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] transplant /usr/portage [Was: Backup] [Was: Old Firefox ebuild?]
Date: Wed, 26 Oct 2016 20:39:47
Message-Id: 20161026213937.3d399f06@digimed.co.uk
In Reply to: [gentoo-user] transplant /usr/portage [Was: Backup] [Was: Old Firefox ebuild?] by Ian Zimmerman
1 On Wed, 26 Oct 2016 11:40:59 -0700, Ian Zimmerman wrote:
2
3 > > All you are doing is moving the portage tree to a filesystem that you
4 > > backup and telling portage abut it. There's nothing dangerous about it
5 > > and you won't stop your system working even if you get it wrong. I do
6 > > that on all my Gentoo boxes as I don't want dynamic data in /usr.
7 >
8 > So I have done this, but now every portage operation gives me:
9 >
10 > !!! Section 'x-portage' in repos.conf has location attribute
11 > set to nonexistent directory: '/usr/portage'
12 >
13 > There is no [x-portage] section in /etc/portage/repos.conf/gentoo.conf,
14 > the file I modified to point to the new location. My modification was:
15 >
16 > < location = /usr/portage
17 > > location = /var/lib/portage/ports
18 >
19 > and this was in the [gentoo] section.
20 >
21 > Apart from that file, there is also
22 > /usr/share/portage/config/repos.conf, but I thought this was just a
23 > template for the one in /etc. The original contents were the same,
24 > ie. location = /usr/portage, and _no_ [x-portage] section.
25 >
26 > I am confused, just as I feared would happen :-(
27
28 I never saw anything like this when making the change. Try
29
30 $ grep -r x-portage /etc/portage /var/lib/portage /usr/share/portage
31
32 to see if you can find any mention of x-portage. Also try
33
34 $ grep -r usr/portage /etc/portage /var/lib/portage /usr/share/portage
35
36 but that will get some hits from /usr/share/portage.
37 AIUI /usr/share/portage/repos.conf sets the defaults, which are
38 overridden by the file in /etc. That's how it happens here.
39
40
41 --
42 Neil Bothwick
43
44 Drop your carrier .. we have you surrounded

Replies

Subject Author
[gentoo-user] Re: transplant /usr/portage [Was: Backup] [Was: Old Firefox ebuild?] Ian Zimmerman <itz@×××××××.net>