I'm trying to install app-office/ical-2.2.1 for the first time, but it fails its tests. As far as I can tell, it's trying to use an application that doesn't exist. What other information do I need to include? >>> Source compiled. >>> Test phase [check]: app-office/ical-2.2.1 Calendar Files ......... Calendar Options .... Dialogs . === failure === invalid command name "winfo" .This is a test . === failure === invalid command name "winfo" === failure === invalid command name "winfo" === failure === can't read "fname": no such variable . === failure === invalid command name "winfo" === failure === invalid command name "winfo" === failure === can't read "result": no such variable . === failure === invalid command name "winfo" === failure === invalid command name "winfo" === failure === can't read "result": no such variable . === failure === invalid command name "winfo" === failure === invalid command name "winfo" . === failure === invalid command name "winfo" === failure === invalid command name "winfo" === failure === invalid command name "winfo" invalid command name "toplevel" while executing "toplevel .foobar" (procedure "dialog_tests" line 18) invoked from within "dialog_tests" (file "./tests/x.tcl" line 6) make: *** [check_x] Error 1 * * ERROR: app-office/ical-2.2.1 failed. * Call stack: * ebuild.sh, line 1701: Called dyn_test * ebuild.sh, line 1102: Called qa_call 'src_test' * ebuild.sh, line 44: Called src_test * ebuild.sh, line 719: Called die * The specific snippet of code: * hasq test $FEATURES && die "Make check failed. See above for details." * The die message: * Make check failed. See above for details. * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/app-office/ical-2.2.1/temp/build.log'.
Looks like 'test' is among your /etc/make.conf FEATURES or USE flags. Remove it, re-emerge and let us know what happens. If you did not have 'test' enabled before, explicitly disable it by USE="-test" Please also post your `emerge --info`
(In reply to comment #1) > Looks like 'test' is among your /etc/make.conf FEATURES or USE flags. Yes, it is. It's in my FEATURES but not my USE as that's against Gentoo guidelines. (Portage adds it to USE automagically.) > Remove it, re-emerge and let us know what happens. The package installs without any issues. It also seems to work as expected. This doesn't solve the problem though, and ignoring it just doesn't seem right. > If you did not have 'test' enabled before, explicitly disable it by USE="-test" I think you mean FEATURES="-test", but I understand what you're trying to say. Surely if the ebuild fails its tests then they should be (preferably) fixed (or disabled (with RESTRICT=test)). > Please also post your `emerge --info` dan@tui ~ $ emerge --info Portage 2.1.3.19 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.5-r4, 2.6.17-gentoo-r8 i686) ================================================================= System uname: 2.6.17-gentoo-r8 i686 Intel(R) Pentium(R) M processor 1.60GHz Timestamp of tree: Thu, 17 Jan 2008 13:46:01 +0000 app-shells/bash: 3.2_p17-r1 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r6 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.10-r5 sys-apps/sandbox: 1.2.18.1-r2 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.4.0-r4 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=i686 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -march=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="ccache collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms strict test unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="http://gentoo.blueyonder.co.uk http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ " LANG="C" LINGUAS="en_GB" MAKEOPTS="-j2" 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" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X a52 aac aalib acl acpi alsa amr apache2 apm applet ares avahi bash-completion berkdb bitmap-fonts boo bzip2 cairo caps cdda cdr cli cpudetection cracklib crypt cups curl daap dbus divx doc domainkeys dri dvd dvdr dvdread eds emboss encode esd evo exif exiscan-acl fam ffmpeg filepicker firefox flac fortran ftp gdbm gedit gif gmail gnome gnutls gpm gstreamer gtk gtkhtml gtkspell hal iconv imap ipod ipv6 isdnlog java javascript jpeg jpeg2k kerberos keyring ldap libnotify libwww live logrotate mad mbox midi mikmod mms mmx mono mozbranding mozdevelop mozilla mp3 mpeg mudflap mysql nautilus ncurses njb nls nptl nptlonly nsplugin ogg opengl openmp oss pam pcre pdf perl pidgin pmu png pop posix pppd python qt3support quicktime readline real realmedia reflection rtc samba sdl session sftp smtp sound spell spf spl sqlite sse sse2 ssl startup-notification svg syslog tcl tcpd test theora tiff tk truetype truetype-fonts type1-fonts unicode usb vim-syntax vorbis win32codecs wmf wmp x86 xface xinerama xml xorg xscreensaver xv xvid zlib" 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB" LIRC_DEVICES="serial sir" USERLAND="GNU" VIDEO_CARDS="radeon" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY dan@tui ~ $ I did some investigation into this the other week, and was going to do some more before posting my results here, but haven't had time yet. Basically, the tests pass when run directly from the ebuild like so: dan@tui ~ $ cd /usr/portage/app-office/ical/ dan@tui /usr/portage/app-office/ical $ ebuild ical-2.2.1.ebuild test *snip* dan@tui /usr/portage/app-office/ical $ echo $? 0 dan@tui /usr/portage/app-office/ical $ When I run the tests from "ebuild", they show things on my display. When I run the tests from "emerge", the tests fail. I wasn't sure if this is because I have FEATURES=userpriv or FEATURES=usersandbox (or possibly FEATURES=sandbox) enabled and haven't had time to test with these off yet. It could also be the method I use to obtain root on my machines: via ssh. I've tried with X-forwarding (and Trusted-X-forwarding), but these don't seem to make any difference. I've tried switching user (using "su"), but that doesn't help either. Please let me know what you recommend to test/try.
(In reply to comment #2) > root on my machines: via ssh. I've tried with X-forwarding (and > Trusted-X-forwarding), but these don't seem to make any difference. I've tried > switching user (using "su"), but that doesn't help either. > > Please let me know what you recommend to test/try. > Can you forward X applications from the remote host? FEATURES=test emerge ical WORKSFORME. Resolving bug, feel free to re-open if problem persists but since the tests run in separate X windows on this package, I feel like this issue is related to your setup.
Actually, I could open X11 windows just fine. I'm now wondering if it was related to FEATURES=userpriv and the portage user not having an appropriate ~/.Xauthority file. It strikes me as odd that switching user (with "su"), didn't work either. Actually, thinking about it now makes FEATURES=userpriv sound like the likely culprit, as the tests worked fine when run as my user, or as root, but not via portage. Anyway, I'm not longer on an x86 machine, so can't test any further unfortuantely. Thus, I'll leave this bug as RESOLVED WORKSFORME, even though I suspect the problem still exists. If anyone wants to do some tests and verify, then feel free to do so. :)
For the record, I've identified the problem to be FEATURES=userpriv and have raised bug 238916 to get it sorted.
*** Bug 238916 has been marked as a duplicate of this bug. ***
.
Seems like userpriv is the problem here and I'm not sure how to fix and I don't use these packages. Dan, it may not be a bad idea to raise this issue to the gentoo-dev mailing list. Thanks for looking into it.
(In reply to comment #4) > Actually, I could open X11 windows just fine. I'm now wondering if it was > related to FEATURES=userpriv and the portage user not having an appropriate > ~/.Xauthority file. It strikes me as odd that switching user (with "su"), > didn't work either. Actually, thinking about it now makes FEATURES=userpriv > sound like the likely culprit, as the tests worked fine when run as my user, or > as root, but not via portage. The Xauthority is controlled by xhost. Only the user the X server is running as has permission to display windows or anything on the screen. Not even the root user has this ability unless the user that owns the X server gives permission via xhost.
(In reply to comment #8) > Seems like userpriv is the problem here and I'm not sure how to fix and I don't > use these packages. > > Dan, it may not be a bad idea to raise this issue to the gentoo-dev mailing > list. Thanks for looking into it. > You should be using the virtualx.eclass to run anything that requires an X server/session. Specially in this case you should be doing "Xemake test" for the test phase.
2.2.1 removed from portage, current is 3.0, closing this old bug, reopen if still problem with 3.0