Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 173773 - app-shells/tcsh ebuild stalls if not run in a tty
Summary: app-shells/tcsh ebuild stalls if not run in a tty
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Fabian Groffen
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-08 16:26 UTC by Mathieu Seigneurin
Modified: 2007-04-10 18:38 UTC (History)
0 users

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 Mathieu Seigneurin 2007-04-08 16:26:33 UTC
There seems to be a bug in the tcsh.man2html perl script in tcsh-6.14-r3 at least that makes it misbehave if it is called without parameters and its STDIN is not a tty => it will wait on input from STDIN wich:
1. will be EOF if emerge is run </dev/null => generated docs are empty
2. will never come (hang) if emerge is run </dev/zero or some other non-readready fh.

Easy solution: change the line
perl tcsh.man2html || die
to
perl tcsh.man2html tcsh.man || die

This bug is triggered while installing through kuroo, but maybe other such utilities or for some people who do updates via cron or whatever.


Reproducible: Always

Steps to Reproduce:
1. emerge tcsh < /dev/zero


Actual Results:  
Emerge stalls.


Only tested tcsh-6.14-r3.ebuild
Comment 1 Fabian Groffen gentoo-dev 2007-04-10 18:38:36 UTC
I fixed this in CVS as you suggested, thanks!