Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 120471 - app-admin/zope-config , ncurses fail to found tty
Summary: app-admin/zope-config , ncurses fail to found tty
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: net-zope (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-26 14:47 UTC by Francesco R. (RETIRED)
Modified: 2008-11-16 16:05 UTC (History)
1 user (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 Francesco R. (RETIRED) gentoo-dev 2006-01-26 14:47:17 UTC
Under certain circumstances, mine where ssh + chroot, if that mean something.

"dialog" program, widely used inside the script, return an error "cannot open tty-output", like it was a terminal-less connection, the solution for me was to change all the occurencies where dialog is called in a subshell from:

--- from ---
USER=$(dialog --stdout \
    --backtitle "Please choose a username and password for the initial user." \
    --inputbox "Username:" 0 0 "admin")
RESULT=$?
--- from ---

to 

--- to ---
dialog --output-fd 3 \
    --backtitle "Please choose a username and password for the initial user." \
    --inputbox "Username:" 0 0 "admin" \
    3> "/tmp/${tmpfile}"
RESULT=$?
USER=$(< "/tmp/${tmpfile}" )
--- to ---

may be other are affected, or is this one a misconfiguration issue of this particular box ?
Comment 1 Radoslaw Stachowiak (RETIRED) gentoo-dev 2006-05-28 10:16:09 UTC
I was unable to reproduce this. Can You provide me more information, for example if it happened more than once?
Comment 2 Francesco R. (RETIRED) gentoo-dev 2006-05-29 10:36:11 UTC
it's a "corner case" it happen if "dialog" cannot find/use /dev/tty* feel free to fix as wontfix
Comment 3 Tupone Alfredo gentoo-dev 2008-11-16 16:05:35 UTC
Fixed in app-admin/zope-config-0.6.
Thanks