Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Going through these one by one.
Date: Mon, 25 Jan 2021 19:01:50
Message-Id: 20210125190136.190329a2@digimed.co.uk
In Reply to: Re: [gentoo-user] Going through these one by one. by Steven Lembark
1 On Mon, 25 Jan 2021 13:04:26 -0500, Steven Lembark wrote:
2
3 > 20 years I've been using Gentoo, I'm about to remove it because I
4 > have not been able to maintain it since the whole python 2.7
5 > deprecation process started.
6 >
7 > Given my /usr/portage/package.accept_keywords is down to a
8 > single line:
9 >
10 > */* ~amd64
11
12 So you're basically running an ~arch system, why not set in in make.conf?
13
14 > At this point pretty much anything I try to update bumps into:
15
16 Bumps into what?
17
18 > I have tried various combinations in package.use/local (i.e.,
19 > separate from zz_autoconfig) of:
20 >
21 > nada.
22 >
23 > */* PYTHON_TARGETS="-python2_7"
24 > */* PYTHON_SINGLE_TARGET="python3_6"
25 >
26 > */* PYTHON_TARGETS="-python2_7 python3_6"
27 > */* PYTHON_SINGLE_TARGET="python3_6"
28 >
29 > followed by a combinatorial product of -python2_7 python3_{456789}
30 > for the PYTHON_TARGETS and each of the alternatives as
31 > PYTHON_SINGLE_TARGET.
32 >
33 > I've tried setting these in /etc/portage/make.conf also.
34
35 I have found that setting PYTHON*_TARGET manually is something to be
36 avoided unless absolutely necessary. I would remove all of these settings
37 and let portage manage it. Then run emerge -uavDN @world. You may need to
38 *temporarily* set PYTHON_TARGETS to get through this.
39
40 Most importantly, carefully go through any emerge errors, and the recent
41 discussions on this list, to find out the cause of any clashes. In most
42 cases, it is usually older versions of software having dependencies
43 involving python2.7 that is at the root.
44
45 > One oddity I notice is that emerge and eselect seem out of sync on
46 > the version of python installed:
47
48 Get these in line by running:
49
50 eselect python update
51 eselect python cleanup
52
53
54 > Q: If you have a working Gentoo system, what version of python do
55 > you have installed?
56
57 dev-lang/python-3.9.1-r1
58 dev-lang/python-3.8.7-r1
59 dev-lang/python-2.7.18-r6
60
61 > What does eselect show you?
62
63 Available Python interpreters, in order of preference:
64 [1] python3.8
65 [2] python2.7
66 [3] python3.9 (fallback)
67
68 > What are you
69 > using for PYTHON_TARGETS & PYTHON_TARGETS?
70
71 Portage defaults, nothing in /etc/portage
72
73 PYTHON_SINGLE_TARGET="python3_8"
74 PYTHON_TARGETS="python2_7 python3_8"
75
76
77 --
78 Neil Bothwick
79
80 Stop tagline theft! Copyright your tagline (c)

Replies

Subject Author
Re: [gentoo-user] Going through these one by one. Steven Lembark <lembark@×××××××.com>