Gentoo Archives: gentoo-dev

From: Francesco Riosa <vivo75@×××××.com>
To: gentoo development <gentoo-dev@l.g.o>, "Michał Górny" <mgorny@g.o>
Subject: Re: [gentoo-dev] Looking for a solution to the distutils/setuptools .egg-info mess
Date: Mon, 10 Jan 2022 14:07:08
Message-Id: CAD6zcDzJaexu8XKnTuS=s45yvQsB=sb9KkMZUjjnrTqpmrbyuw@mail.gmail.com
In Reply to: [gentoo-dev] Looking for a solution to the distutils/setuptools .egg-info mess by "Michał Górny"
1 Il giorno lun 10 gen 2022 alle ore 06:39 Michał Górny <mgorny@g.o>
2 ha scritto:
3 [...]
4
5 >
6 > The big problem is that switching implies changing the format, so if you
7 > install foo-X, then switch, then reinstall the same version of foo,
8 > you're going to have the file replaced by a directory. This is not
9 > supported by the PMS, and Portage handles it somewhat suboptimally
10 > (renaming the old file and leaving it orphaned).
11 >
12 > Is it possible to force the package to own the file may be touching it in
13 src_install() ?
14
15 This way we have a dirty installation but no orphaned file and it would be
16 back to normal at next install