Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 273309 - app-portage/ufed-0.40-r10 doesn't work in an 80x24 terminal any more
Summary: app-portage/ufed-0.40-r10 doesn't work in an 80x24 terminal any more
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
: 274441 290880 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-06-09 10:55 UTC by Ulrich Müller
Modified: 2009-10-28 18:14 UTC (History)
2 users (show)

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


Attachments
ufed-0.40-minheight.patch (ufed-0.40-minheight.patch,1.46 KB, patch)
2009-06-10 19:05 UTC, Harald van Dijk (RETIRED)
Details | Diff
ufed-0.40-termsize-2.patch (ufed-0.40-termsize-2.patch,5.79 KB, patch)
2009-06-16 19:46 UTC, Harald van Dijk (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ulrich Müller gentoo-dev 2009-06-09 10:55:20 UTC
It displays the following error message and refuses to start:
Your screen is too small. Press Ctrl+C to exit.

Some tests in xterm show that the minimum number of lines required is 26.
It definitely worked with 24 lines a month ago.
Comment 1 Ulrich Müller gentoo-dev 2009-06-09 11:11:02 UTC
Looks like it tries to display all packages that share a local USE flag at once. The "server" flag breaks it because it is used by 18 packages now.
Comment 2 Harald van Dijk (RETIRED) gentoo-dev 2009-06-09 17:55:44 UTC
It's not that the server flag is used by 18 packages, it's that most of those 18 packages use different descriptions. When the descriptions are the same, it only takes up one line. You can see this with "Enable compilation of server (games-strategy/wesnoth, sci-misc/boinc)". What would be the right thing to do here? Are there any descriptions that can be changed to match others, or does ufed need to deal with it differently?
Comment 3 Ulrich Müller gentoo-dev 2009-06-10 13:31:10 UTC
(In reply to comment #2)
> What would be the right thing to do here? Are there any descriptions that can
> be changed to match others,

For most of the descriptions, I don't see how to unify them. The server flag really has different meanings for different packages (otherwise it would be a global flag). We can reduce the number of different descriptions by two or three, but it will only be a remedy for some time.

> or does ufed need to deal with it differently?

I would say yes. ufed should be able to run on an 80x24 screen, independent of the contents of the use.local.desc file.
Comment 4 Harald van Dijk (RETIRED) gentoo-dev 2009-06-10 19:05:10 UTC
Created attachment 194189 [details, diff]
ufed-0.40-minheight.patch

This patch allows ufed to mostly work in 80x24; it cuts off the bottom descriptions from USE=server. This is not a solution either, so I'm not adding this to the tree as is, but you can try it already if it'll make things easier for you.
Comment 5 Harald van Dijk (RETIRED) gentoo-dev 2009-06-16 19:46:02 UTC
Created attachment 194925 [details, diff]
ufed-0.40-termsize-2.patch

Could you please see if ufed behaves as you would like with this patch? You can use the arrow keys to scroll through the descriptions of the server flag, until you reach the last one, at which point you'll go to the next flag as you normally would.
Comment 6 Ulrich Müller gentoo-dev 2009-06-16 21:42:13 UTC
(In reply to comment #5)
> Created an attachment (id=194925) [edit]
> ufed-0.40-termsize-2.patch
> 
> Could you please see if ufed behaves as you would like with this patch?
> You can use the arrow keys to scroll through the descriptions of the server
> flag, until you reach the last one, at which point you'll go to the next flag
> as you normally would.

I'd like it better if it wouldn't scroll by one line only, but by the height of the window. But probably this is not worth the effort, as only one USE flag is affected.

So, good to go.
Comment 7 Harald van Dijk (RETIRED) gentoo-dev 2009-06-17 22:38:07 UTC
*** Bug 274441 has been marked as a duplicate of this bug. ***
Comment 8 Harald van Dijk (RETIRED) gentoo-dev 2009-06-18 17:19:43 UTC
Fixed in 0.40-r11.
Comment 9 Harald van Dijk (RETIRED) gentoo-dev 2009-10-28 18:14:08 UTC
*** Bug 290880 has been marked as a duplicate of this bug. ***