Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 204440 - app-office/ical-2.2.1 fails with FEATURES="test userpriv"
Summary: app-office/ical-2.2.1 fails with FEATURES="test userpriv"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
: 238916 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-01-05 15:36 UTC by Dan Wallis
Modified: 2010-01-15 17:40 UTC (History)
1 user (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 Dan Wallis 2008-01-05 15:36:11 UTC
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'.
Comment 1 Pariksheet Nanda 2008-01-17 14:53:48 UTC
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`
Comment 2 Dan Wallis 2008-01-17 15:29:51 UTC
(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.
Comment 3 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-07-06 19:51:40 UTC
(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.
Comment 4 Dan Wallis 2008-07-06 20:13:36 UTC
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. :)
Comment 5 Dan Wallis 2008-09-28 02:22:51 UTC
For the record, I've identified the problem to be FEATURES=userpriv and have raised bug 238916 to get it sorted.
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2008-09-29 16:57:07 UTC
*** Bug 238916 has been marked as a duplicate of this bug. ***
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2008-09-29 16:57:24 UTC
.
Comment 8 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-09-29 17:01:31 UTC
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.
Comment 9 Doug Goldstein (RETIRED) gentoo-dev 2008-10-20 22:00:12 UTC
(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.
Comment 10 Doug Goldstein (RETIRED) gentoo-dev 2008-10-20 22:01:47 UTC
(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.
Comment 11 Samuli Suominen (RETIRED) gentoo-dev 2010-01-15 17:40:50 UTC
2.2.1 removed from portage, current is 3.0, closing this old bug, reopen if still problem with 3.0