Gentoo Archives: gentoo-user

From: Kent Fredric <kentnl@g.o>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] preparing for profile switch -- major problem
Date: Sun, 10 Dec 2017 12:36:52
Message-Id: 20171211013619.1fba2e7b@katipo2.lan
In Reply to: Re: [gentoo-user] preparing for profile switch -- major problem by John Covici
1 On Sun, 10 Dec 2017 02:17:09 -0500
2 John Covici <covici@××××××××××.com> wrote:
3
4 > OK, thanks, I think I will try that.
5
6 The problem you're facing is that you masked dev-lang/perl, but not any
7 virtual/perl-* or perl-core/-* to compensate.
8
9 These 3 components work in concert like a single component, as a sort
10 of bodge to compensate for the fact portage has no working "provides" feature,
11 and to compensate for the dependency-system missmatch between how
12 Gentoo works and how CPAN works.
13
14 Theres' no easy way of fixing this atm, but the short of it is if you're using
15 an ~arch dev-lang/perl, you should be using an ~arch virtual/perl-*,
16 and if you're using an "arch" dev-lang/perl, you should be using only
17 "arch" versions of virtual/perl-*
18
19 Once you do this, portage may still scream at you, because portage is
20 very much optimised for upgrading, and it tends to think downgrading is
21 an error.
22
23 So once you get all your masks/keyword changes in place, you should do:
24
25 emerge -C virtual/perl-*
26 emerge -C perl-core/*
27
28 (or something to that effect)
29
30 This looks scary, but generally isn't, because you're not actually removing
31 anything with this, just juggling a few balls and making only older
32 versions of certain things available ( as they're alls shipped in
33 dev-lang/perl )
34
35 And then after you do this, portage is more likely to be persuadable
36 into doing the right thing.
37
38 You can additionally abuse my tool, gentoo-perl-helpers for doing some of this,
39 and some of the steps I've described are automated because they're just
40 that safe and useful.
41
42 https://wiki.gentoo.org/wiki/Perl#app-admin.2Fgentoo-perl-helpers
43
44
45 After putting the right masks in place, do:
46
47 gentoo-perl gen-upgrade-sets 5.26 5.24
48
49 And if you're really lucky, the sets it generates will work the first time :)
50
51 ( I actually tested this scenario when developing it, but its still an
52 undocumented use on purpose )
53
54 GLHF.

Replies

Subject Author
Re: [gentoo-user] preparing for profile switch -- major problem John Covici <covici@××××××××××.com>
Re: [gentoo-user] preparing for profile switch -- major problem John Covici <covici@××××××××××.com>
Re: [gentoo-user] preparing for profile switch -- major problem Marc Joliet <marcec@×××.de>