Bug 120471 - app-admin/zope-config , ncurses fail to found tty
Bug#: 120471 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: net-zope@gentoo.org Reported By: vivo@gentoo.org
Component: Applications
URL: 
Summary: app-admin/zope-config , ncurses fail to found tty
Keywords:  
Status Whiteboard: 
Opened: 2006-01-26 14:47 0000
Description:   Opened: 2006-01-26 14:47 0000
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 From Radoslaw Stachowiak 2006-05-28 10:16:09 0000 -------
I was unable to reproduce this. Can You provide me more information, for
example if it happened more than once?

------- Comment #2 From Francesco R. (RETIRED) 2006-05-29 10:36:11 0000 -------
it's a "corner case" it happen if "dialog" cannot find/use /dev/tty* feel free
to fix as wontfix

------- Comment #3 From Tupone Alfredo 2008-11-16 16:05:35 0000 -------
Fixed in app-admin/zope-config-0.6.
Thanks