Gentoo Archives: gentoo-dev

From: NP-Hardass <NP-Hardass@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] News item review: python-exec 2.3 reclaims python* symlinks
Date: Sat, 21 Jan 2017 18:01:10
Message-Id: 2eb69805-9825-a77c-2df6-7f6cf9ffb92c@gentoo.org
In Reply to: [gentoo-dev] News item review: python-exec 2.3 reclaims python* symlinks by "Michał Górny"
1 On 01/21/2017 04:49 AM, Michał Górny wrote:
2 > Please review the following news item. It was requested by users.
3 > Preferably I'd like to commit it today.
4 >
5 > --
6 >
7 > Title: python-exec 2.3 reclaims python* symlinks
8 > Author: Michał Górny <mgorny@g.o>
9 > Content-Type: text/plain
10 > Posted: 2017-01-21
11 > Revision: 1
12 > News-Item-Format: 1.0
13 > Display-If-Installed: <app-eselect/eselect-python-20160206
14 > Display-If-Installed: <dev-lang/python-exec-2.3
15 >
16 > The new versions of python-exec (2.3 and newer) are reclaiming multiple
17 > Python-related symlinks in /usr/bin, most notably /usr/bin/python*. This
18 > may result in your package manager reporting file collisions.
19 >
20 > The respective symlinks were previously either unowned and created
21 > dynamically by app-eselect/eselect-python, or installed by it. From now
22 > on, all Python-related symlinks are installed and handled
23 > by python-exec. This ensures that they respect the python-exec
24 > configuration files and variables consistently with regular Python
25 > packages, and improves their reliability.
26 >
27 > If you are using FEATURES=collision-protect, Portage will reject
28 > the upgrade. If this is the case, please temporarily switch to
29 > FEATURES=protect-owned for the upgrade.
30 >
31 > If you are using FEATURES=protect-owned, Portage will verbosely warn
32 > about the file collisions but will proceed with the upgrade once
33 > determining no replaced files are owned. Please disregard the warning.
34 >
35 > The potentially colliding files are:
36 >
37 > * /usr/bin/2to3
38 > * /usr/bin/pydoc
39 > * /usr/bin/python
40 > * /usr/bin/python2
41 > * /usr/bin/python3
42 > * /usr/bin/python-config
43 >
44 > For more information on python-exec, please see:
45 > https://wiki.gentoo.org/wiki/Project:Python/python-exec
46 >
47 >
48
49
50 Personally, I'd like to see an explicit, one liner on how to remediate
51 in the case of collision-protect since I think it is default for several
52 profiles. Additionally, it'd be unwise to disable collision-protect for
53 more than just the affected packages. Something like
54
55 If you are using FEATURES=collision-protect, Portage will reject the
56 upgrade. If this is the case, please temporarily switch to
57 FEATURES=protect-owned for the upgrade, like with:
58 FEATURES=protect-owned emerge -1 '=python-exec-2.3'
59
60 Or similar. this way, the user is only going to be disabling
61 collision-protect for this one package, lest it cause issues like if the
62 user edits their make.conf and them emerges @world
63
64 --
65 NP-Hardass

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies