>>> Source compiled. test .................................................. Gtk-WARNING **: Attempting to store changes into `/root/.recently-used.xbel', but failed: Failed to create file '/root/.recently-used.xbel.RA8PJU': Permission denied aborting... make: *** [check-local] Aborted * * ERROR: dev-python/pygtk-2.13.0 failed. * Call stack: * ebuild.sh, line 49: Called src_test * environment, line 2704: Called die * The specific snippet of code: * Xemake check-local || die "tests failed" * The die message: * tests failed Portage 2.2_rc12 (default/linux/x86/2008.0/developer, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.27-gentoo-r1 i686) ================================================================= System uname: Linux-2.6.27-gentoo-r1-i686-Intel-R-_Pentium-R-_M_processor_1.86GHz-with-glibc2.0 Timestamp of tree: Thu, 30 Oct 2008 14:45:01 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] app-shells/bash: 3.2_p39 dev-java/java-config: 1.3.7, 2.1.6-r1 dev-lang/python: 2.4.4-r4, 2.5.2-r8 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-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.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: 2.2.6a virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="x86 ~x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium-m -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config" 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/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -march=pentium-m -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--keep-going --load-average 3.5" FEATURES="ccache collision-protect cvs distlocks metadata-transfer multilib-strict parallel-fetch preserve-libs protect-owned sandbox sfperms sign splitdebug strict test unmerge-orphans userfetch usersandbox" GENTOO_MIRRORS=" http://mirror.ovh.net/gentoo-distfiles/" LANG="fr_FR.utf-8" LC_ALL="fr_FR.utf-8" LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed" LINGUAS="fr" MAKEOPTS="-j2" 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/overlays/proaudio/proaudio /usr/local/overlays/kde /usr/local/overlays/science/overlay /usr/local/overlays/local" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="3d X X509 Xaw3d a52 aac aalib acl acpi ada adns adplug afs aiglx aio akode alsa amr amrnb amrwb animation apache2 apm artswrappersuid asf atm audiofile avahi bash-completion bashlogger beagle bench berkdb bidi bindist bl bluetooth bonjour bootsplash border branding browserplugin bs bzip2 cairo caps cdda cddb cdio cdparanoia cdr cgi chardet chipcard chroot cjk cli compositor console copacity cpudetection cracklib crashhandler crypt ctype cups curl curlwrappers cvs cyrillic d daap dbus dc1394 dedicated dg dga dia dirac directfb disk-partition djvu dlloader dmi dmx dock dri dssi dts dv dvb dvd dvdnav dvdr dvdread dvi dynagraph edl elf emboss enca encode esd evo exif extra extra-algorithms extrafilters fam fame fbcon fbcondecor fbsplash ffmpeg fftw firefox flac flash float font-server fortran fpx ftp fuse gcj gcrypt gd gdbm ggi gif gimp git glib glitz glut gmp gnutls gphoto2 gpm graphics graphviz group gs gsm gstreamer gtk gtk2 hal hardened hash hbci howl-compat httpd hybrid i8x0 ical iconv idea idn ieee1394 imagemagick imlib immqt inkjar inquisitio iontruetype iproute2 ipv6 isdnlog jack jack-tmpfs java javascript jbig jingle jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility kerberos kig-scripting kpathsea l7filter ladcca ladspa lame laptop lash lcms ldap lesstif libcaca libgcrypt libnotify libsamplerate lilypond live lm_sensors logitech-mouse logrotate loop-aes lua lzma lzo mad mailwrapper matroska md5sum mdnsresponder-compat meanwhile midi mikmod miniwin mjpeg mktemp mmap mmx mmxext mng mod modplug mono motif mozilla mozsha1 mozsvg mp2 mp3 mp4 mpeg msn mtp mudflap multislot multitarget musepack music musicbrainz nas nat ncurses neXt neg nemesi netboot nethack netjack network network-cron nis nls nntp nptl nptlonly nsplugin ntp objc objc++ objc-gc ofx ogg oggvorbis omega openal openexr opengl openmp openntpd osc pam pam_chroot pam_timestamp pango parse-clocks pascal passwdqc pcap pccts pch pcmcia pcre pdf perforce perl perlsuid pertty php pic pkcs11 plotutils plugins png pnm portage portaudio postgres postscript povray ppds pppd profile pstricks publishers pulseaudio put pvr python qa qq qt qt3 qt3support qt4 quicktime quotes radio rar rc5 rdesktop readline real reflection regex rpm rtc rtsp ruby samba sasl scanner schroedinger science script sdl sdl-image sensord server session sftplogging shout showdesktop sidspoof-source silc skey slang smi sms smux sndfile snmp soap sox speex spell spl sql sqlite sqlite3 srt sse sse2 ssl startup-notification state stream subversion suhosin svg svga svnserve swat sysfs taglib tcltk tcpd teletext test tetex tex4ht tga theora threads threadsafe tidy tiff timidity toolbar tordns trailfocus truetype tta twolame ucs2 unicode upnp usb v4l v4l2 vcd vda vesa-tng vesafb-tng vga vhook vidix vim vim-pager vim-syntax vim-with-x visualization vlm vorbis vorbis-psy vst wallpaper wavpack webdav webkit widget wifi win32codecs wma wmf wmlreadere wxwindows x11 x264 x86 xanim xattr xcb xcomposite xetex xine xinerama xml xml2 xmlwriter xorg xosd xprint xsl xv xvid xvmc yv12 zeroconf zip zlib" ALSA_CARDS="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 authn_alias authn_anon 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 deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev mouse keyboard synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr" USERLAND="GNU" VIDEO_CARDS="v4l vga vesa radeon fbdev fglrx" Unset: CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
probably needs to reset HOME in the ebuild before running tests.
oops failed to assign :)
It does also failed with pygtk-2.14.0
2.14.1-r1 should pass its testsuite just fine now. Closing.
I have hit this bug with dev-python/pygtk-2.14.1-r1. Please reopen the bug. I will attach the build log. Also, emerge --info dev-python/pygtk gives Portage 2.1.6.13 (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.9_p20081201-r2, 2.6.29.6 i686) ================================================================= System Settings ================================================================= System uname: Linux-2.6.29.6-i686-AMD_Athlon-tm-_XP_2600+-with-glibc2.0 Timestamp of tree: Sun, 02 Aug 2009 20:20:01 +0000 app-shells/bash: 3.2_p39 dev-java/java-config: 2.1.8-r1 dev-lang/python: 2.5.4-r3 dev-util/cmake: 2.6.4 sys-apps/baselayout: 1.12.12 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.5, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-Os -march=athlon-xp -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/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-Os -march=athlon-xp -pipe -fomit-frame-pointer" DISTDIR="/usr/local/slowpart/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--nospinner" FEATURES="buildsyspkg collision-protect distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict test unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://ftp.las.ic.unicamp.br/pub/gentoo/ http://cudlug.cudenver.edu/gentoo http://mirrors.usu.edu/mirrors/gentoo/ http://gentoo.osuosl.org/ http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo/" LANG="pt_BR" LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu" LINGUAS="en" MAKEOPTS="-j2" PKGDIR="/usr/local/slowpart/usr/portage/packages" PORTAGE_CONFIGROOT="/" 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="/usr/local/slowpart/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/jorgeportage" SYNC="rsync://rsync.samerica.gentoo.org/gentoo-portage" USE="3dnow 3dnowext X aalib acpi alsa aotuv bash-completion berkdb bluetooth branding bzip2 cairo cdio cdr cli cracklib dbus dvd dvdr dvdread emboss encode evo exif fam ffmpeg firefox flac fortran gdbm gif glibc-omitfp gnuplot gnutls gpm gstreamer gzip-el hddtemp iconv imap isdnlog jpeg libcaca libsamplerate lzma mad matroska mikmod mmx mmxext mng moznopango mp3 mpeg mplayer mudflap ncurses network-cron nptl nptlonly offensive ogg opengl openmp pam pcre pdf png ppds pppd python qt3support quicktime readline reflection sdl session sox speex spell spl sse ssl svg symlink sysfs tcpd theora tiff truetype unicode usb v4l2 vorbis x264 x86 xml xorg xosd xulrunner xv zlib" ALSA_CARDS="cmipci" 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 authn_alias authn_anon 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 deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nv vesa" Unset: CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS ================================================================= Package Settings ================================================================= dev-python/pygtk-2.14.1-r1 was built with the following: USE="X -doc -examples" I have recently enable test in FEATURES, and have hit bugs with dev-python/pygtk and dev-python/twisted. I have worked around the bugs with dev-python/nose test dev-python/pygtk test in /etc/portage/profile/package.use.mask (Since dev-python/twisted was required only to test dev-python/nose, I decided to not test dev-python/nose) By the way, is it even a good idea for a humble user to use test in FEATURES?
Created attachment 199968 [details] dev-python/pygtk-2.14.1-r1 emerge failure with FEATURES=test
reopening per comment #5
Comment on attachment 199968 [details] dev-python/pygtk-2.14.1-r1 emerge failure with FEATURES=test please set proper mime-type next time.
The same with 2.16
Created attachment 227011 [details, diff] Debian patch to disable failing test mentioned in bug 312881#c2 >>> Source compiled. * Testing of dev-python/pygtk-2.16.0-r1 with CPython 2.6... make -j5 check-local ....................................................................... Gdk-CRITICAL **: _gdk_drawable_get_source_drawable: assertion `GDK_IS_DRAWABLE (drawable)' failed aborting... make: *** [check-local] Aborted * ERROR: dev-python/pygtk-2.16.0-r1 failed: * Testing failed with CPython 2.6 in testing() function See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=548211 Patch taken from http://debian.balt.net/debian/pool/main/p/pygtk/pygtk_2.16.0-2.diff.gz
*** Bug 317487 has been marked as a duplicate of this bug. ***
Original problem reported at this bug is different than bug 317487
(In reply to comment #1) > probably needs to reset HOME in the ebuild before running tests. > I have tried to export HOME and XDG_DATA_HOME in src_test phase without success, any more ideas :-( ?
ok, could you test with sandbox 2 ? It seems sandbox 2 has a default configuration file that leaves access to "${HOME}/.recently*" which explains why I never got to reproduce the problem.
*** Bug 344005 has been marked as a duplicate of this bug. ***
(In reply to comment #14) > ok, could you test with sandbox 2 ? It seems sandbox 2 has a default > configuration file that leaves access to "${HOME}/.recently*" which explains > why I never got to reproduce the problem. > Still fails with sandbox-2.3-r1, see duped bug 344005 for emerge --info if needed.
Maybe we could CC sandbox people as maybe they have a solution for this :-/
checking the source code of gtk+, setting HOME to ${T} for at least up to 2.20 and then XDG_DATA_HOME should make this work. See also bug #285687 for a similar issue in gtk+ ebuild. I'll commit an ebuild setting $HOME if nobody beats me to it.
+*pygtk-2.22.0 (19 Jan 2011) + + 19 Jan 2011; Pacho Ramos <pacho@gentoo.org> -pygtk-2.16.0-r1.ebuild, + -files/pygtk-2.16.0-gdkcolor-fix.patch, +pygtk-2.22.0.ebuild: + Version bump with lots of bugfixes and gtk+-2.22 compatible, skip broken test + (upstream bug #636589) and test wanting to write outside sandbox (bug + #245103). Remove old.
the test is still not fixed, I'd rather have it working properly rather than disabling it for a lack of understanding the behavior of the code. I'll commit adjustements to the ebuild soonish.
this should now be properly fixed in 2.17 and 2.22. Please reopen if it's not the case.
It still fails :-|
Created attachment 260360 [details] build.log build.log
Created attachment 260362 [details] build.log
Created attachment 260364 [details] environment
could you paste your env and emerge --info again. I have a really hard time figuring out what so particular about your setup now. Do you have anything in /etc/portage that could mess with the env ?
# env MANPATH=/etc/java-config-2/current-system-vm/man:/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.20.1/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.4.4/man:/etc/java-config/system-vm/man/ SHELL=/bin/bash TERM=xterm ANT_HOME=/usr/share/ant USER=root LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36: PRELINK_PATH_MASK=/usr/lib64/libfreebl3.so:/usr/lib64/libnssdbm3.so:/usr/lib64/libsoftokn3.so GUILE_LOAD_PATH=/usr/share/guile/1.8 GDK_USE_XFT=1 PAGER=/usr/bin/less CONFIG_PROTECT_MASK=/etc/sandbox.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/terminfo /etc/ca-certificates.conf /etc/texmf/web2c /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/revdep-rebuild XDG_CONFIG_DIRS=/etc/xdg PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.4.4 LC_COLLATE=C PWD=/root JAVA_HOME=/etc/java-config-2/current-system-vm JAVAC=/etc/java-config-2/current-system-vm/bin/javac EDITOR=/bin/nano LANG=es_ES.UTF-8 KDE_IS_PRELINKED=1 GSETTINGS_BACKEND=gconf JDK_HOME=/etc/java-config-2/current-system-vm SHLVL=1 HOME=/root JAVACC_HOME=/usr/share/javacc/ LESS=-R -M --shift 5 LOGNAME=root CVS_RSH=ssh XDG_DATA_DIRS=/usr/local/share:/usr/share:/usr/share/gdm LESSOPEN=|lesspipe.sh %s INFOPATH=/usr/share/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.20.1/info:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.4.4/info DISPLAY=:0.0 USB_DEVFS_PATH=/dev/bus/usb OPENGL_PROFILE=nvidia SANE_CONFIG_DIR=/etc/sane.d CONFIG_PROTECT=/var/lib/hsqldb /usr/share/config XAUTHORITY=/root/.xauthR3TJkP COLORTERM=gnome-terminal _=/usr/bin/env # emerge --info Portage 2.1.9.34 (default/linux/amd64/10.0/desktop/gnome, gcc-4.4.4, glibc-2.11.2-r3, 2.6.37-ck x86_64) ================================================================= System uname: Linux-2.6.37-ck-x86_64-AMD_Athlon-tm-_64_Processor_3200+-with-gentoo-1.12.14 Timestamp of tree: Thu, 20 Jan 2011 12:30:22 +0000 ccache version 2.4 [enabled] app-shells/bash: 4.1_p7 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.6.6-r1, 3.1.2-r4 dev-util/ccache: 2.4-r9 dev-util/cmake: 2.8.1-r2 sys-apps/baselayout: 1.12.14-r1 sys-apps/sandbox: 2.4 sys-devel/autoconf: 2.13, 2.65-r1 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.4.4-r2 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.10 sys-devel/make: 3.81-r2 virtual/os-headers: 2.6.30-r1 (sys-kernel/linux-headers) ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /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/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/usr/distfiles" FEATURES="assume-digests binpkg-logs ccache distlocks fixlafiles fixpackages multilib-strict news parallel-fetch protect-owned sandbox sfperms sign split-log strict test test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="" GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org http://ftp.ussg.iu.edu/linux/gentoo http://mirror.ovh.net/gentoo-distfiles/ http://ftp.heanet.ie/pub/gentoo/ http://gentoo-euetib.upc.es/mirror/gentoo/ http://ftp.udc.es/gentoo/ http://darkstar.ist.utl.pt/gentoo/" LANG="es_ES.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="es es_ES en_US" MAKEOPTS="-j2" PKGDIR="/usr/local/portage/packages" PORTAGE_CONFIGROOT="/" 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/portage/local/layman/sunrise /usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 applet avahi bash-completion berkdb branding bzip2 cairo cdda cddb cdinstall cdr cdrom cleartype cli consolekit cracklib crypt css cups cxx daap dbus djvu dri dts dvd dvdr dvi eds emboss encode evo exif fam fat ffmpeg firefox flac fortran fuse gdbm gdu gif git gnome gnome-keyring gpm gstreamer gtk hddtemp iconv java jpeg kpathsea latex lcdfilter lcms libnotify lm_sensors lyx lzma mad mikmod mmx mmxext mng modules mono mp3 mp4 mpeg mudflap multilib musicbrainz nautilus ncurses network network-cron nls nptl nptlonly ntfs nvidia ogg opengl openmp pam pango pch pcre pdf perl png policykit ppds pppd python qt3support qt4 readline reiserfs scanner sdl session spell sse sse2 sse3 ssl startup-notification subversion svg sysfs t1lib tcpd test threads tiff truetype udev unicode usb v4l2 vcd vorbis webkit x264 xattr xcb xml xmp xorg xpm xulrunner xv xvid zeroconf zlib" ALSA_CARDS="via82xx" 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 authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es es_ES en_US" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 260377 [details] portage.tar.bz2 These are the contents of my /etc/portage I have some files under /etc/portage/env but they only append CFLAGS="$CFLAGS -ggdb" and FEATURES="$FEATURES debug splitdebug" :-/ Thanks a lot
As a side note, when I was testing with gtk+ test failure (that looks similar to this one), I was also able to reproduce manually running tests inside sandbox as my user. In that case, test wanted to write in /home/pacho/.recently... even exporting different HOME and XDG_DATA_HOME
well, there is no code in pygtk for this, it's only bindings gtk+ code so fixing one should provide the solution for the other. However I don't understand how exporting HOME and XDG_CONFIG_HOME would not fix the problem. Anyway, I'll just a shot with your environment and see if I get the same.
*** Bug 353509 has been marked as a duplicate of this bug. ***
*** Bug 373761 has been marked as a duplicate of this bug. ***
I have just observed what I suspect is a related bug in 2.24.0-r1, as it is a case of the ebuild trying to write to $HOME: * Testing of dev-python/pygtk-2.24.0-r1 with CPython 2.7... make -j3 check-local ..............................................<GType GtkMessageDialog (24461808)> GtkMessageDialog F....................... Gtk-WARNING **: Attempting to store changes into `/var/tmp/portage/.local/share/recently-used.xbel', but failed: Failed to create file '/var/tmp/portage/.local/share/recently-used.xbel.6E9QYV': No such file or directory aborting... Cheers. Jeremy
Created attachment 287377 [details] build.log Portage 2.1.10.11 (default/linux/x86/10.0/developer, gcc-4.5.3, glibc-2.12.2-r0, 2.6.39-gentoo-r3 i686) ================================================================= System uname: Linux-2.6.39-gentoo-r3-i686-Intel-R-_Core-TM-2_Duo_CPU_P8700_@_2.53GHz-with-gentoo-2.0.3 Timestamp of tree: Tue, 20 Sep 2011 16:00:01 +0000 app-shells/bash: 4.1_p9 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.7.1-r1, 3.1.3-r1 dev-util/cmake: 2.8.4-r1 dev-util/pkgconfig: 0.26 sys-apps/baselayout: 2.0.3 sys-apps/openrc: 0.8.3-r1 sys-apps/sandbox: 2.4 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.4.5, 4.5.3-r1 sys-devel/gcc-config: 1.4.1-r1 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82-r1 sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers) sys-libs/glibc: 2.12.2 Repositories: gentoo x-portage ACCEPT_KEYWORDS="x86" ACCEPT_LICENSE="*" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=i686 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -march=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs collision-protect distlocks ebuild-locks fixlafiles fixpackages multilib-strict news parallel-fetch protect-owned sandbox sfperms sign splitdebug strict test test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox" FFLAGS="" GENTOO_MIRRORS="http://distfiles.gentoo.org" LDFLAGS="-Wl,--hash-style=gnu -Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" 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.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa berkdb bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus device-mapper dri dts dvd dvdr emacs emboss encode exif fam firefox flac fortran gdbm gdu gif git gnome-keyring gnutls gtk iconv icu jpeg lcms libnotify mad mbox mercurial mng modules mp3 mp4 mpeg mudflap ncurses nls nptl nptlonly nss ogg opengl openmp pam pango pcre pdf perl png policykit ppds pppd python qt3support readline sdl secure-delete session snmp spell sqlite ssl startup-notification subversion svg sysfs tcb tcpd threads tiff toolkit-scroll-bars truetype udev unicode usb vorbis x264 x86 xcb xft xinerama xml xorg xulrunner xv xvfb xvid zlib" ALSA_CARDS="ens1371" 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 authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev keyboard vmmouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vmware vesa vga" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
It's trying to write at /var/tmp/portage/.local/share/recently-used.xbel and it fails :S It's not honoring: export XDG_CONFIG_HOME="${T}/$(PYTHON --ABI)" in ebuild :(
That's because of the glib magic HOME finding functions. We must either apply debian patch or disable this test. I'd rather have the debian patch myself.
Looks like this was reported long time ago to upstream... but looks like they don't want to solve it :S. I guess we could carry debian patch as debian will update and maintain it ^^ https://bugzilla.gnome.org/show_bug.cgi?id=142568
The problem here is that even setting G_HOME test still fails :S >>> Source compiled. * Testing of dev-python/pygtk-2.24.0-r1 with CPython 2.7... make -j5 check-local ..............................................<GType GtkMessageDialog (17478704)> GtkMessageDialog F....................... Gtk-WARNING **: Attempting to store changes into `/var/tmp/portage/dev-python/pygtk-2.24.0-r1/temp/2.7/.local/share/recently-used.xbel', but failed: Falló al crear el archivo «/var/tmp/portage/dev-python/pygtk-2.24.0-r1/temp/2.7/.local/share/recently-used.xbel.KSQ52V»: No existe el fichero o el directorio (even don't dying :P) Looks like variable is being read as it now tries to create file in proper place... but, why is it still failing? This is the src_test phase I have tried: src_test() { unset DBUS_SESSION_BUS_ADDRESS testing() { cd tests mkdir -p "${T}/$(PYTHON --ABI)" export XDG_CONFIG_HOME="${T}/$(PYTHON --ABI)" export G_HOME="${T}/$(PYTHON --ABI)" Xemake check-local } python_execute_function -s testing }
(In reply to comment #38) > testing() { > cd tests > mkdir -p "${T}/$(PYTHON --ABI)" > export XDG_CONFIG_HOME="${T}/$(PYTHON --ABI)" > export G_HOME="${T}/$(PYTHON --ABI)" > Xemake check-local > } > python_execute_function -s testing You can use ${PYTHON_ABI} instead of $(PYTHON --ABI). $(PYTHON --ABI ${arguments}) is useful in situations absent in this ebuild.
maybe you shoud mkdir -p XDG_CONFIG_HOME as well
(In reply to comment #40) > maybe you shoud mkdir -p XDG_CONFIG_HOME as well Well, the same "mkdir -p" command I am already using should create the needed directory for both (as both are set to the same value)
+ 21 Nov 2011; Pacho Ramos <pacho@gentoo.org> + -files/pygtk-2.22.0-disable-broken-tests.patch, + -files/pygtk-2.22.0-wakeupfd-fix.patch, -pygtk-2.22.0-r1.ebuild, + -pygtk-2.23.2.ebuild, pygtk-2.24.0-r2.ebuild: + Call gnome2_environment_reset to let tests pass without permissions problems + (bug #245103), note that it will only work if you have, at least, + glib-2.30.1-r1. Drop old. +