Mailing List Archive

Determine why Python 2.7 is still installed?
On one of my Gentoo machines Python 2.7 has not been removed by
deplcean as it has on others, and I've been unable to determine
why. It's not in the world file, and 'equery d python' doesn't show
anything depending on 2.7. I have no python targets specified in
make.conf nor in any package use flag settings.

How do you determine why portage thinks a certain slot of a package
is required? None of the documentation I an find on portage discusses
finding packages dependent on particular slots.

--
Grant
Re: Determine why Python 2.7 is still installed? [ In reply to ]
Am 27.02.2021 um 14:08 schrieb Grant Edwards:
> On one of my Gentoo machines Python 2.7 has not been removed by
> deplcean as it has on others, and I've been unable to determine
> why. It's not in the world file, and 'equery d python' doesn't show
> anything depending on 2.7. I have no python targets specified in
> make.conf nor in any package use flag settings.
>
> How do you determine why portage thinks a certain slot of a package
> is required? None of the documentation I an find on portage discusses
> finding packages dependent on particular slots.


Have you tried #emerge -av --depclean =<atom> ?
Re: Determine why Python 2.7 is still installed? [ In reply to ]
On Sat, 27 Feb 2021 13:08:59 -0000 (UTC), Grant Edwards wrote:

> On one of my Gentoo machines Python 2.7 has not been removed by
> deplcean as it has on others, and I've been unable to determine
> why. It's not in the world file, and 'equery d python' doesn't show
> anything depending on 2.7. I have no python targets specified in
> make.conf nor in any package use flag settings.

emerge -cpv python:2.7


--
Neil Bothwick

I have seen the truth, and it makes no sense.
Re: Determine why Python 2.7 is still installed? [ In reply to ]
On 2021-02-27, hitachi303 <gentoo-user@konstantinhansen.de> wrote:
> Am 27.02.2021 um 14:08 schrieb Grant Edwards:
>
>> How do you determine why portage thinks a certain slot of a package
>> is required? None of the documentation I an find on portage discusses
>> finding packages dependent on particular slots.
>
> Have you tried #emerge -av --depclean =<atom> ?

Thanks!

That does it:

# emerge -av --depclean =dev-lang/python-2.7.18-r6

Calculating dependencies... done!
dev-lang/python-2.7.18-r6 pulled in by:
www-client/chromium-88.0.4324.182 requires >=dev-lang/python-2.7.5-r2:2.7[xml]

I'm a bit surprised that 'equery d' is unable to figure that out.

The other option I found is to uninstall python:2.7, then do emerge
-auvNDt, and see why it's being re-installed, but that's a bit
drastic.

And now that I know the answer it makes sense: the machines where
python 2.7 was removed by depclean don't have Chromium installed.

--
Grant
Re: Determine why Python 2.7 is still installed? [ In reply to ]
On 2021-02-27, Neil Bothwick <neil@digimed.co.uk> wrote:
> On Sat, 27 Feb 2021 13:08:59 -0000 (UTC), Grant Edwards wrote:
>
>> On one of my Gentoo machines Python 2.7 has not been removed by
>> deplcean as it has on others, and I've been unable to determine
>> why. It's not in the world file, and 'equery d python' doesn't show
>> anything depending on 2.7. I have no python targets specified in
>> make.conf nor in any package use flag settings.
>
> emerge -cpv python:2.7

Yep, I can't believe I didn't know that...