Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 649442 - emerge's spinner freezes for long periods, making it rather useless
Summary: emerge's spinner freezes for long periods, making it rather useless
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-03 09:00 UTC by Duncan
Modified: 2018-03-06 15:08 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Duncan 2018-03-03 09:00:06 UTC
Of what use a spinner, when it freezes for longer than it runs, but the app eventually returns output after all, so the app itself is still working, which a spinner display is /supposed/ to demonstrate by continuing to spin?

This has been annoying me for quite some time, I'd guess for years by now, but it hasn't been fixed, probably because it's not quite irritating enough for anyone (including me) to have filed a bug... until now.

Emerge's dep-calculation spinner runs for awhile, then quits, often apparently (I've not measured the actual time, but it seems that way) for longer than it spun, before either spitting out the results (I use --ask by default) or going back to spinning, only to freeze again.

This is particularly obvious when using FEATURES=candy, but still occurs without it.

Presumably the problem is because emerge goes into some CPU-intensive routine that doesn't update the spinner until it is done.  Can some "spin the spinner" breaks be added so it's obvious it's still working?

FWIW, currently portage-2.3.24-r1, but as I said it has been that way for a long time now, I'd suppose since 2.2 timeframe if not earlier.

(And FWIW, bugzie's portage version selector needs upgraded or perhaps removed if it's no longer useful. 2.2 is the last it shows.  No 2.3 to select.)
Comment 1 Zac Medico gentoo-dev 2018-03-03 21:13:28 UTC
The depgraph _solve_non_slot_operator_slot_conflicts and _slot_operator_trigger_reinstalls methods both have loops where the spinner is not currently called.