Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 182571 - Emerge fails from within kuroo.
Summary: Emerge fails from within kuroo.
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Third-Party Tools (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS, REGRESSION
Depends on:
Blocks: 181949
  Show dependency tree
 
Reported: 2007-06-19 11:54 UTC by brian
Modified: 2007-06-23 05:30 UTC (History)
0 users

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


Attachments
handle curses.error if it's thrown inside get_term_size() (curses.patch,494 bytes, patch)
2007-06-19 20:03 UTC, Zac Medico
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description brian 2007-06-19 11:54:22 UTC
All 2.1.3 versions I have tried fail when run within kuroo
with :

Traceback (most recent call last):
  File "/usr/bin/emerge", line 5575, in ?
    retval = emerge_main()
  File "/usr/bin/emerge", line 5570, in emerge_main
    myopts, myaction, myfiles, spinner)
  File "/usr/bin/emerge", line 4999, in action_build
    retval = mergetask.merge(
  File "/usr/bin/emerge", line 2987, in merge
    if not portage.digestcheck([], quiet_config, strict=True):
  File "/usr/lib/portage/pym/portage.py", line 2919, in digestcheck
    eout = output.EOutput()
  File "/usr/lib/portage/pym/output.py", line 302, in __init__
    lines, columns = get_term_size()
  File "/usr/lib/portage/pym/output.py", line 261, in get_term_size
    curses.setupterm()
_curses.error: setupterm: could not find terminfo database

Presumably, it shouldn't be seeking a terminal device.
This does not happen <=2.1.2.9


Reproducible: Always
Comment 1 Zac Medico gentoo-dev 2007-06-19 20:03:20 UTC
Created attachment 122551 [details, diff]
handle curses.error if it's thrown inside get_term_size()

This should solve it.  If the patch is saved as /tmp/curses.patch then it can be applied as follows:

patch /usr/lib/portage/pym/output.py < /tmp/curses.patch
Comment 2 brian 2007-06-19 20:46:11 UTC
(In reply to comment #0)
> All 2.1.3 versions I have tried fail when run within kuroo
> with :
> 
> Traceback (most recent call last):
>   File "/usr/bin/emerge", line 5575, in ?
>     retval = emerge_main()
>   File "/usr/bin/emerge", line 5570, in emerge_main
>     myopts, myaction, myfiles, spinner)
>   File "/usr/bin/emerge", line 4999, in action_build
>     retval = mergetask.merge(
>   File "/usr/bin/emerge", line 2987, in merge
>     if not portage.digestcheck([], quiet_config, strict=True):
>   File "/usr/lib/portage/pym/portage.py", line 2919, in digestcheck
>     eout = output.EOutput()
>   File "/usr/lib/portage/pym/output.py", line 302, in __init__
>     lines, columns = get_term_size()
>   File "/usr/lib/portage/pym/output.py", line 261, in get_term_size
>     curses.setupterm()
> _curses.error: setupterm: could not find terminfo database
> 
> Presumably, it shouldn't be seeking a terminal device.
> This does not happen <=2.1.2.9
> 
> 
> Reproducible: Always
> 

(In reply to comment #1)
> Created an attachment (id=122551) [edit]
> handle curses.error if it's thrown inside get_term_size()
> 
> This should solve it.  If the patch is saved as /tmp/curses.patch then it can
> be applied as follows:
> 
> patch /usr/lib/portage/pym/output.py < /tmp/curses.patch
> 

Works for me now - Thanks Zac 
Comment 3 Zac Medico gentoo-dev 2007-06-23 05:30:01 UTC
This has been released in 2.1.3_rc5.