Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 246251

Summary: app-emulation/vmware-workstation-6.5.0.118166 incomplete install when using screen or parallel build
Product: Gentoo Linux Reporter: peteru <bugs.gentoo.org>
Component: Current packagesAssignee: Gentoo VMWare Bug Squashers [disabled] <vmware+disabled>
Status: RESOLVED FIXED    
Severity: normal CC: helman, simon.gerber
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 233296    
Bug Blocks:    

Description peteru 2008-11-10 06:21:10 UTC
If app-emulation/vmware-workstation-6.5.0.118166 is emerged with the following options in /etc/make.conf, the installation is incomplete.

EMERGE_DEFAULT_OPTS="--jobs 3 --keep-going --load-average 8"
MAKEOPTS="--jobs --load-average=8"

Only the following is installed:
# equery f vmware-workstation
[ Searching for packages matching vmware-workstation... ]
* Contents of app-emulation/vmware-workstation-6.5.0.118166:
/etc
/etc/env.d
/etc/env.d/90vmware-workstation
/etc/init.d
/etc/init.d/vmware
/etc/vmware
/etc/vmware/init.d
/etc/vmware/networking
/usr
/usr/share
/usr/share/mime

I suspect that this is caused by the interactive installer step that requires the user to agree to a license.


Reproducible: Always

Steps to Reproduce:
Comment 1 inode77 2008-11-10 07:48:21 UTC
I confirm, have the same problem after updating to vmware-workstaton-6.5.

WARNING: repository at /usr/local/portage is missing a repo_name entry
Portage 2.2_rc13 (default/linux/x86/2008.0/desktop, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.27-gentoo-r2 i686)
=================================================================
System uname: Linux-2.6.27-gentoo-r2-i686-Genuine_Intel-R-_CPU_T2600_@_2.16GHz-with-glibc2.0
Timestamp of tree: Mon, 10 Nov 2008 06:45:02 +0000
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r8
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.4.6-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.3.0-r1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
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.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs distlocks noinfo parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="en de"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="USB X aac acl acpi aio alsa apache2 bash-completion berkdb bluetooth branding bzip2 cairo ccache cdr cjk cli cracklib crypt cscope cups curl dbus dri dvd dvdr dvdread encode evo exif expat fam ffmpeg gdbm gif gnutls gpm gstreamer gtk hal iconv idn ipv6 java java5 java6 jpeg lcms ldap libnotify logrotate mad midi mikmod mmap mmx mmxext mp3 mp4 mpeg mudflap ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcmcia pcre pdf perl png ppds python qt3support qt4 quicktime readline reflection samba sdl session snmp spell spl sse sse2 ssl startup-notification svg sysfs tcpd theora threads tiff truetype unicode usb userlocales vim-syntax vorbis win32codecs wmf wxwindows x264 x86 xattr xml xorg xosd xprint xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="snd-hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse ps2mouse " KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" USERLAND="GNU" VIDEO_CARDS="fglrx vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Heiko Helmle 2008-11-10 08:39:33 UTC
try running the emerge in a plain xterm (and no "screen"ed xterm!)
Comment 3 inode77 2008-11-10 09:52:51 UTC
Thanks! Yep running in plain xterm remedies the emerge process.
Comment 4 Mike Auty (RETIRED) gentoo-dev 2008-11-10 11:01:23 UTC
Hiya Peteru,

As Heiko pointed out, this is most likely caused by attempting to install vmware in an unusual terminal such as screen.  I've now improved the check that was in the ebuild to die if it detects it's being run in screen, it also now should die if a rollback occurs and thus allow you to post the installer log (rather than installing just a few base files).

Please wait a couple of hours for the ebuilds to get pushed out, then do an emerge --sync and try again.  If you're still encountering failures, please re-post the error messages and I might ask you to include the vmware-installer.log file too.  Thanks...  5:)
Comment 5 peteru 2008-11-10 11:03:06 UTC
The terminal in use (Konsole) does not make a difference and I am not using
screen.

The issue seems to be caused by using the parallel build feature of portage.
This seems to make sense, since parallel builds do not have an interactive
terminal.

For what it's worth, having ebuilds that require user intervention is a "Bad
Idea"(tm)

Any chance that the EULA step can be skipped / auto-answered? The combination
of fetch restriction and the requirement to agree to the EULA as part of the
download process already covers the EULA acceptance by the user.
Comment 6 Mike Auty (RETIRED) gentoo-dev 2008-11-10 14:02:45 UTC
Peteru, if the merge had stopped on a EULA question, the installation wouldn't have completed (and you wouldn't have a small number of files present).  That means something was going wrong.  It's possible that portage's parallel build system effectively runs the install in a non-terminal and which therefore fails for the same reasons as screen.

You seem very sure it's a parallel build problem, but haven't mentioned the results you got when you turned parallel build off?  Did that work?

Also, as requested in comment 4, could you please re-sync with the main tree, and try another install (using parallel build) and see if it gives the same error, and if not, whether you can collect the vmware-installer.log from /var/tmp/portage/app-emulation/vmware-workstation/work/.  Thanks...
Comment 7 Ryan Veety 2008-11-10 21:43:31 UTC
I had the same problem with the EULA in Eterm.  I switched to another VC (Ctrl-Alt-F1) and emerged vmware-workstation.  It prompted me for the EULA and then installed fine.

Ryan
Comment 8 peteru 2008-11-11 00:20:58 UTC
> You seem very sure it's a parallel build problem, but haven't mentioned the results you got when you turned parallel build off?  Did that work?

Yes, I am sure it is a parallel build problem. I have confirmed this by trying with parallel build ON -> incomplete install and with parallel build OFF -> good install. My apologies if that was not clear in the original report and the original title of the bug (before it was changed to something else).

I will resync tree and retry, but you can also try this yourself by using:

emerge --jobs 3 app-emulation/vmware-workstation

Just for completeness, here is some more information from my system:

# emerge --info
Portage 2.2_rc13 (default-linux/x86/2007.0/desktop, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.27-gentoo i686)
=================================================================
System uname: Linux-2.6.27-gentoo-i686-Intel-R-_Xeon-TM-_CPU_3.20GHz-with-glibc2.0
Timestamp of tree: Mon, 10 Nov 2008 04:22:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.5.2-r8
dev-util/cmake:      2.6.2
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.3.0-r1
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -msse2 -O2 -fomit-frame-pointer -funit-at-a-time -pipe"
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/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=pentium4 -msse2 -O2 -fomit-frame-pointer -funit-at-a-time -pipe"
DISTDIR="/home/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs 3 --keep-going --load-average 8"
FEATURES="ccache distlocks parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.exetel.com.au/pub/gentoo http://ftp.swin.edu.au/gentoo http://mirror.usu.edu/mirrors/gentoo/ http://gentoo.mirrors.easynews.com/linux/gentoo/ http://gentoo.osuosl.org/ http://gentoo.mirrors.pair.com/"
LDFLAGS=""
LINGUAS="en en_AU en_GB en_US"
MAKEOPTS="--jobs --load-average=8"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="   "
SYNC="rsync://ftp.swin.edu.au/gentoo-portage"
USE="7zip X X509 Xaw3d a52 aac accessibility acl acpi aften alias alsa amarok amazon amrnb amrwb antlr apache2 ared aredmem arts asf audiofile automount autoreplace avahi bash-completion bcel berkdb bonobo boost branding bzip2 cairo cdaudio cdparanoia cdr cgi chm chroot cli connectionstatus cracklib crypt cscope css ctype cups curl cvs daap dba dbus dell dga disk-partition divx divx4linux djvu doc dri dts dv dvb dvd dvdr dvdread dynagraph edl emboss encode esd evo examples exif expat faac faad fam fame fat fax fbcon ffmpeg fftw flac ftp fusion gcj gd gdbm geoip ggi gif gimp gimpprint glib glitz glut gnome gnutls gphoto2 graphviz gstreamer gtk gtk2 gtkhtml hal highlight history htmlhandbook iconv icq id3 id3tag idn ieee1394 imagemagick imap imlib inotify ipod irc isdnlog jack java java5 java6 javadoc javamail jce jdepend jmx jp2 jpeg jpeg2k jsch json juju junit jython kde ladcca lame lcms libnotify libsamplerate live log4j lzo lzw lzw-tiff mad maildir matroska mbox md5sum mdnsresponder-compat messenger mhash midi mikmod mime mjpeg mmap mmx mng monkey mono motif mozcalendar mozdevelop mozdomi mozilla moznoirc mozp3p mozsvg mp2 mp3 mp4 mpeg mpeg4 mplayer mudflap multitarget musepack musicbrainz mysql ncurses network nfs nfsv4 nis nls nntp nptl nptlonly nsplugin ntfs ntlm nvidia odbc offensive ogg opengl openmp optional-tasks oro oscar oss pam pcap pcre pdf pdo pear-db perl php pic pie plotutils png posix ppds pppd python qt3 qt3support qt4 quicktime quotas rar readline reflection regexp reiserfs rhino rtc ruby samba sametime sdl session shorten slang smp smtp sndfile snmp soap sockets source speex spell spl sql sqlite sqlite3 sse sse2 ssl startup-notification statistics stream struts subversion svg swat sysfs syslog sysvipc tcl tcpd teletext tga theora threads threadsafe tidy tiff tokenizer transcode translator truetype unicode usb uudeview v4l v4l2 vcd vim-syntax vim-with-x vlm vnc vorbis wavpack webdav win32codecs wmf wxwin wxwindows x264 x86 xalan xattr xcb xchatdccserver xcomposite xerces xext xforms xft xine xinerama xml xml2 xmlreader xmlrpc xmlwriter xorg xosd xsl xulrunner xv xvid xvmc yahoo yv12 zip zlib zvbi" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1        emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m       maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias  auth_basic auth_digest  authn_anon authn_dbd authn_dbm authn_default authn_file  authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user  autoindex  cache  dav dav_fs dav_lock dbd deflate dir disk_cache  env expires ext_filter  file_cache filter headers  ident imagemap include info  log_config logio  mem_cache mime mime_magic  negotiation  proxy proxy_ajp proxy_balancer proxy_connect proxy_http  rewrite  setenvif so speling status  unique_id userdir usertrack  vhost_alias" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_AU en_GB en_US" USERLAND="GNU" VIDEO_CARDS="nvidia vesa"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 9 David D. Huff Jr. 2008-11-11 03:26:16 UTC
For me the VMware emerge failed in screen but worked fine in naked Eterm.
Comment 10 Mike Auty (RETIRED) gentoo-dev 2008-11-11 08:15:50 UTC
Hiya peteru, sorry, it wasn't clear, and we often get people coming up with their own ideas of what's wrong and then sticking to them without actually running tests that would decide if they were right or not.

I'm still surprised that parallel builds are able to bypass interactive steps (you really should have to type yes to finish the ebuild), but I'll look into it later today when I have time.

As to removing the EULA step, I'm afraid I can't answer yes for people since otherwise either Gentoo or myself would be liable if they broke it.  There are a few other ebuilds that are interactive (including those installed from CD), so it's not completely new.  I'll take a look and see if there's some way of indicating that it's interactive and needs special treatment...
Comment 11 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-11-11 18:55:28 UTC
(In reply to comment #10)

> As to removing the EULA step, I'm afraid I can't answer yes for people since
> otherwise either Gentoo or myself would be liable if they broke it.  There are
> a few other ebuilds that are interactive (including those installed from CD),
> so it's not completely new.  I'll take a look and see if there's some way of
> indicating that it's interactive and needs special treatment...
> 

Mike, I admit I didn't read this bug in its entirety, but you want PROPERTIES=interactive in your ebuild here. See bug 233296 for more info and feel free to ping me in irc if you would like.

(and the end user has to use portage-2.2_rc13)
Comment 12 Mike Auty (RETIRED) gentoo-dev 2008-11-11 20:58:06 UTC
Ok, this should now have been fixed in the main tree.  Please feel free to reopen this if there are still problems...  5:)