Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 187910 - >=x11-terms/xterm hangs during install if PAGER != less
Summary: >=x11-terms/xterm hangs during install if PAGER != less
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 194017
  Show dependency tree
 
Reported: 2007-08-06 12:46 UTC by Damien Szczyt
Modified: 2009-05-05 19:44 UTC (History)
3 users (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 Damien Szczyt 2007-08-06 12:46:02 UTC
xterm compiles fine, but installation is blocked :
...
>>> Source compiled.
>>> Test phase [not enabled]: x11-terms/xterm-228

>>> Install xterm-228 into /var/tmp/portage/x11-terms/xterm-228/image/ category x11-terms
/bin/sh ./mkdirs.sh /var/tmp/portage/x11-terms/xterm-228/image//usr/bin
mkdir /var/tmp/portage/x11-terms/xterm-228/image/usr
mkdir /var/tmp/portage/x11-terms/xterm-228/image/usr/bin
/usr/bin/install -c xterm /var/tmp/portage/x11-terms/xterm-228/image//usr/bin/`echo xterm|    sed 's,x,x,'`
/usr/bin/install -c -m  755 resize /var/tmp/portage/x11-terms/xterm-228/image//usr/bin/`echo resize|   sed 's,x,x,'`
... installing /var/tmp/portage/x11-terms/xterm-228/image//usr/bin/uxterm
/bin/sh ./mkdirs.sh /var/tmp/portage/x11-terms/xterm-228/image//usr/share/man/man1
mkdir /var/tmp/portage/x11-terms/xterm-228/image/usr/share
mkdir /var/tmp/portage/x11-terms/xterm-228/image/usr/share/man
mkdir /var/tmp/portage/x11-terms/xterm-228/image/usr/share/man/man1
/bin/sh ./minstall.sh "/usr/bin/install -c -m 644" ./xterm.man    /var/tmp/portage/x11-terms/xterm-228/image//usr/share/man/man1/`echo xterm|    sed 's,x,x,'`.1  /usr/share/X11/app-defaults

(CTRL+C after a long long time...)
Exiting on signal 2


Reproducible: Always

Steps to Reproduce:
1.emerge xterm
2.wait
3.wait again for a long time...




Portage 2.1.3.3 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6-r0, 2.6.22-suspend2-r1 i686)
=================================================================
System uname: 2.6.22-suspend2-r1 i686 Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz
Gentoo Base System release 1.12.10
Timestamp of tree: Mon, 06 Aug 2007 08:30:10 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=prescott -mtune=prescott -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-Os -march=prescott -mtune=prescott -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache confcache cvs distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="ftp://212.219.56.138/sites/www.ibiblio.org/gentoo/ ftp://212.219.56.139/sites/www.ibiblio.org/gentoo/ ftp://ftp.vein.hu/pub/linux/distributions/gentoo/"
LANG="fr_FR@euro"
LC_ALL="fr_FR@euro"
LINGUAS="fr"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/nouveau /usr/portage/local/layman/emacs /usr/portage/local/layman/pythonhead /usr/portage/local/layman/xeffects /usr/portage/local/layman/sunrise /usr/portage/local/layman/voip /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="7zip S3TC X Xaw3d a52 aac aalib acl acpi addbookmarks administrator aiglx aim aimextras akode alias alsa amarok animgif aoss apache2 apm arts artswrappersuid artworkextra asf audiofile autoreplace autostart bash-completion berkdb binary-drivers bind-mysql binfilter bitmap-fonts bjam blender-game bluetooth boost branding bzip2 cairo cdda cddb cdparanoia cdr cdrom cdsound cgi charconv checkpath cli cluster colordiff connectionstatus contactnotes cpudetection cpufreq cracklib crciprec crypt cscope css ctype cups cursors custom-cflags cvs daap dbus dell depth32 devhelp device-mapper dga dia disk-partition divx dmi dmx dri dvb dvd dvdnav dvdr dvdread emacs emovix enca encode enscript esd exif expat extensions fam fame fastbuild fastcgi fat fbsplash fdftk ffmpeg filter firefox flac flash flashsupport fltk fontconfig foomaticdb fping fpx freebox ftp fuse gd gdbm gdm gif gimp gimpprint glib glibc-omitfp glitz glsa glut gmail gmedia gnokii gocr gphoto2 gpm gps grammar graphviz groupwise gs gstreamer gtk gzip gzip-el hal hash hddtemp hdhomerun hesiod hfs highlight history hpn httpd hybrid ical icons iconv icq id3 idea idl ilbc imagemagick imap imlib inherit-graph inifile inkjar innodb insecure-savers iptv ipw3945 irc irda jabber java javascript joystick jpeg jpeg2k json kde kdehiddenvisibility kdepim kdgraphics kdm kexi kipi kjs kqemu lame latex latin1 lcms libcaca libdsk libg++ libnotify libsamplerate libsexy libwww live lm_sensors logitech-mouse logrotate lzw management md5sum mdnsresponder-compat mhash midi mime mjpeg mmap mmx mmxext mng mod mod_python mode-force mode-owner mode-paranoid modplug motif moznoxft mp2 mp3 mpeg mplayer msn msnextras mudflap mule multiprocess multiuser nat ncurses netboot netmeeting network network-cron new-login nls nowlistening nptl nptlonly nsplugin ntfs ntp nvidia oav obex ogg openal opengl openmp openssh openssl opensslcrypt opera oscar oss ots overlays overload pam pango pcre pdf perl plugin pmount pmu png pnm pop pop3d postgres postscript pppd prediction prelude preview-latex profile python qt3 qt3support qt4 query-browser quicktime radio radius rar rc5 rdesktop readline real realmedia reflection reiserfs replytolist rtc rtsp ruby samba sametime sasl scanner sdl sdl-image sdl-sound sdlaudio sensord serial session sftplogging sharedmem shorten shout simplexml skins slang smp sms sound soundex speex spell spl sql sqlite sqlite3 srt sse sse2 ssl statistics stream subtitles subversion svg svga sysfs syslog szip tcl tcpd tetex texteffect tga themes theora thesaurus tidy tiff tivo tk tokenizer toolbar toolkit-scroll-bars transcode translator transparency truetype truetype-fonts twolame type1-fonts unicode upnp urandom usb userlocales v4l v4l2 valgrind vcd vdr vhosts vidix vim vim-pager vim-syntax vim-with-x visualization vlm vnc vncviewer vorbis vpopmail webinstall webpresence wifi win32codecs winpopup wireshark wmf wmp wordperfect wxwindows x86 xanim xattr xcb xcf xcomposite xext xforms xft xine xinerama xorg xosd xpm xprint xrandr xscreensaver xv xvid xvmc xvnc yahoo yv12 zip zlib zoran zrtp" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" CAMERAS="ptp2" ELIBC="glibc" INPUT_DEVICES="evdev mouse wacom synaptics keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


I also tried :
MAKEOPTS="-j1" emerge xterm

same thing...
Comment 1 Wolfgang Frisch 2007-08-13 11:37:53 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"
Comment 2 Davide Cendron (RETIRED) gentoo-dev 2007-08-22 15:38:01 UTC
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)
Comment 3 Davide Cendron (RETIRED) gentoo-dev 2007-08-22 15:53:54 UTC
I can confirm the solution (followed by another user), just see this topic:

http://forums.gentoo.org/viewtopic-p-4190688.html#4190688
Comment 4 Thomas Dickey 2007-08-25 16:02:09 UTC
I fixed this in #229 by overriding the locale settings.
Comment 5 René 'Necoro' Neumann 2007-09-14 06:53:10 UTC
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
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2007-12-26 11:10:56 UTC
portage should sanitize its environment to get rid of similar cruft...
Comment 7 Wolf Canis 2008-02-13 22:28:19 UTC
(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.
Comment 8 sf 2008-03-07 10:43:51 UTC
Same bug in x11-terms/xterm-232
Comment 9 Thomas Dickey 2008-08-25 11:12:03 UTC
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.
Comment 10 Samuli Suominen (RETIRED) gentoo-dev 2009-05-05 16:31:11 UTC
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..
Comment 11 Thomas Dickey 2009-05-05 17:00:04 UTC
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).
Comment 12 Samuli Suominen (RETIRED) gentoo-dev 2009-05-05 19:44:06 UTC
(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 :-)