Summary: | >=x11-terms/xterm hangs during install if PAGER != less | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Damien Szczyt <damien> |
Component: | Current packages | Assignee: | Gentoo X packagers <x11> |
Status: | RESOLVED FIXED | ||
Severity: | minor | CC: | dickey, gentoo, scen |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 194017 |
Description
Damien Szczyt
2007-08-06 12:46:02 UTC
I've been observing the same problem with xterm-228 and xterm-229. Hangs at "/var/tmp/portage/x11-terms/xterm-228/image//usr/share/man/man1/`echo xterm| sed 's,x,x,'`.1 /usr/share/X11/app-defaults" Same issue on xterm-227 Maybe i've found the source of the problem (please check it on your system): the process hangs during the execution of minstall.sh (i had changed between 255 and 227 releases), on the line X_MANSECT=`man X 2>&1 | tr '\012' '\020' | sed -e 's/^[^0123456789]*\([^) ][^) ]*\).*/\1/'` In my system i've set MANPAGER=/usr/bin/vimmanpager, to view coloured man pages. If i force MANPAGER to default /usr/bin/less, installation works fine. So the problem could be in "man X" visualization. I suggest to tweak minstall.sh (provided by xterm tarball), changing the line X_MANSECT=`man X 2>&1 | tr '\012' '\020' | sed -e 's/^[^0123456789]*\([^) ][^) ]*\).*/\1/'` to X_MANSECT=`man -P $(which less) X 2>&1 | tr '\012' '\020' | sed -e 's/^[^0123456789]*\([^) ][^) ]*\).*/\1/'` (or something similar) I can confirm the solution (followed by another user), just see this topic: http://forums.gentoo.org/viewtopic-p-4190688.html#4190688 I fixed this in #229 by overriding the locale settings. with PAGER="vimmanpager" xterm-229 still fails - hanging at line: /bin/sh ./minstall.sh "/usr/bin/install -c -m 644" ./xterm.man /var/tmp/portage/x11-terms/xterm-229/image//usr/share/man/man1/`echo xterm| sed 's,x,x,'`.1 /usr/share/X11/app-defaults using PAGER="less" and it installs fine portage should sanitize its environment to get rid of similar cruft... (In reply to comment #5) > with PAGER="vimmanpager" xterm-229 still fails - hanging at line: > > /bin/sh ./minstall.sh "/usr/bin/install -c -m 644" ./xterm.man > /var/tmp/portage/x11-terms/xterm-229/image//usr/share/man/man1/`echo xterm| > sed 's,x,x,'`.1 /usr/share/X11/app-defaults > > using PAGER="less" and it installs fine > Hello I can confirm that. MANPAGER=/usr/bin/less emerge xterm and runs smoothly. Same bug in x11-terms/xterm-232 There's a different issue (with less) that appears when the alternate screen-switching is enabled. Looks like 'less' is sending some escape sequence that's causing xterm to respond (it's been a nuisance for a while). I'll investigate and (if it's really 'less' at fault), document it in my faq. Thomas.. Is this fixed in #243? I'm reading.. set MANPAGER and PAGER explicitly to /bin/cat in minstall.sh to work around /etc/man.conf's with those variables already set (report by Марьясин Семён). Please verify.. yes - I'd fixed it earlier (by unsetting the offending variables in minstall.sh). This fix is for a different case, where someone modified the config-file, which meant that an explicit assignment to the environment variable was needed (to override the config-file). (In reply to comment #11) > yes - I'd fixed it earlier (by unsetting the offending > variables in minstall.sh). This fix is for a different > case, where someone modified the config-file, which meant > that an explicit assignment to the environment variable > was needed (to override the config-file). > Thanks, closing then :-) |