Emerging kmymoney with FEATURES="test" fails Reproducible: Always april ~ # emerge -pqv =app-office/kmymoney-3.96.1 && emerge --info =app-office/kmymoney-3.96.1 [ebuild R ] app-office/kmymoney-3.96.1 USE="calendar* handbook test* (-aqua) -debug -hbci (-kdeenablefinal) -ofx -quotes" LINGUAS="-bg -ca -ca@valencia -cs -da -de -el -en_GB -eo -es -et -fi -fr -ga -gl -it -lt -ms -nds -nl -pl -pt -pt_BR -ro -ru -sk -sv -tr -uk -zh_CN -zh_TW" Portage 2.1.7.16 (default/linux/amd64/10.0/desktop, gcc-4.3.4, glibc-2.10.1-r1, 2.6.33-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-2.6.33-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8400_@_3.00GHz-with-gentoo-1.12.13 Timestamp of tree: Mon, 01 Mar 2010 20:15:02 +0000 app-shells/bash: 4.0_p35 dev-java/java-config: 2.1.9-r2 dev-lang/python: 2.6.4 dev-python/pycrypto: 2.1.0_beta1 dev-util/cmake: 2.6.4-r3 sys-apps/baselayout: 1.12.13 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc: 4.3.4 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA skype-eula" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O1 -ggdb -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config" 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="-march=native -O1 -ggdb -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests collision-protect distlocks fixpackages multilib-strict news parallel-fetch protect-owned sandbox sfperms splitdebug strict test unmerge-logs unmerge-orphans userfetch userpriv" GENTOO_MIRRORS="http://mirror.mdfnet.se/mirror/gentoo ftp://mirror.mdfnet.se/gentoo http://ftp.ing.umu.se/linux/gentoo/ ftp://ftp.ing.umu.se/linux/gentoo/" LDFLAGS="-Wl,--as-needed" LINGUAS="se" 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" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="3dnow X a52 aac acl acpi alsa amd64 apm bash-completion branding bzip2 cairo cdr cli consolekit cracklib crypt cxx dbus dri dts dvd dvdr eds emboss encode evo fam firefox flac fortran gdbm gif gpm gstreamer hal iconv jpeg kde ldap libnotify mad mikmod mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl phonon png ppds pppd python qt3support qt4 quicktime readline reflection sdl semantic-desktop session spell spl sse sse2 ssl startup-notification svg symlink sysfs tcpd thunar tiff truetype unicode usb vorbis x264 xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 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="se" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY ================================================================= Package Settings ================================================================= app-office/kmymoney-3.96.1 was built with the following: USE="handbook (multilib) (-aqua) -calendar -debug -hbci (-kdeenablefinal) -ofx -quotes -test" LINGUAS="-bg -ca -ca@valencia -cs -da -de -el -en_GB -eo -es -et -fi -fr -ga -gl -it -lt -ms -nds -nl -pl -pt -pt_BR -ro -ru -sk -sv -tr -uk -zh_CN -zh_TW"
Created attachment 221755 [details] Complete build log
Fixed full package name in summary
Can't reproduce... 100% tests passed, 0 tests failed out of 337 Total Test time (real) = 63.49 sec
Created attachment 221905 [details, diff] Make tests more verbose To apply this, copy the patch to files directory and add: PATCHES=( "${FILESDIR}/${P}-verbose.patch" ) To the ebuild, and redigest it This should make the test suite more verbose by changing 'ctest' to 'ctest -VV' (Or just do it outside of Portage with ctest -VV from the source tree by hand.)
Reopen when you have the needed information (useful output from failing tests)
Created attachment 221907 [details] Build log Can reproduce the failure here... (all tests fail too)
Created attachment 221909 [details] Output of emerge --info
(In reply to comment #4) > Created an attachment (id=221905) [details] > Make tests more verbose > > To apply this, copy the patch to files directory and add: > > PATCHES=( "${FILESDIR}/${P}-verbose.patch" ) > > To the ebuild, and redigest it > > This should make the test suite more verbose by changing 'ctest' to 'ctest -VV' > > (Or just do it outside of Portage with ctest -VV from the source tree by hand.) > Can also change it to "ctest -VV --debug" to get ctest internals if -VV is not enough
Same result with gcc-4.4. Sorry, VERBOSE follows later...
I noticed that: On two x86 systems all works 100% On two amd64 systems all tests fail. Applying the patch...
ebuild /usr/portage/app-office/kmymoney/kmymoney-3.96.1.ebuild compile cd /var/tmp/portage/app-office/kmymoney-3.96.1/work/kmymoney-3.96.1 cmake . -DKDE4_BUILD_TESTS=ON make ctest . solves the problem.
Created attachment 221981 [details] Build log with patch applied (-VV --debug) Strangely the -VV --debug seems to have no visible effect...
(In reply to comment #0) > sys-apps/sandbox: 1.6-r2 Try with FEATURES="-sandbox" and/or with =sys-apps/sandbox-2.2 > FEATURES="assume-digests collision-protect distlocks fixpackages > multilib-strict news parallel-fetch protect-owned sandbox sfperms splitdebug > strict test unmerge-logs unmerge-orphans userfetch userpriv" Try also without splitdebug (In reply to comment #12) > Created an attachment (id=221981) [details] > Build log with patch applied (-VV --debug) > > Strangely the -VV --debug seems to have no visible effect... Indeed, the whole line is ignored in the CMakeLists.txt. It's some cmake magic that runs it regardless. We came to this conclusion with upstream in #kmymoney, Freenode. (In reply to comment #11) > ebuild /usr/portage/app-office/kmymoney/kmymoney-3.96.1.ebuild compile > cd /var/tmp/portage/app-office/kmymoney-3.96.1/work/kmymoney-3.96.1 > cmake . -DKDE4_BUILD_TESTS=ON > make > ctest . > > solves the problem. > So it's basically working outside of Portage for you... see above suggestions...
Upgraded to sandbox-2.2, 100% fail Emerged with -sandbox, 100% fail Emerged also with -splitdebug, 100% fail
Well... one of you still need to provide me a way to reproduce this, don't expect me to hunt down the reason for you. Specially without access to a system where it fails. My "emerge --info" is pretty identical to one posted here, and all tests pass. Those mentioned FEATURES were the only standing out differences
This may be a stupid question, and I'm no expert of any kind, but I'm wondering the answer could be http://bugs.gentoo.org/show_bug.cgi?id=241922 ?
(In reply to comment #16) > This may be a stupid question, and I'm no expert of any kind, but I'm wondering > the answer could be http://bugs.gentoo.org/show_bug.cgi?id=241922 ? > All it means it's working outside of Portage... That's pretty much what the ebuild already does.
Hmmm gotcha. Start testing: Mar 09 22:45 CET ---------------------------------------------------------- Changing directory into: /home/tmp/portage/app-office/kmymoney-3.96.1/work/kmymoney-3.96.1_build/kmymoney 1/337 Testing: PivotGridTest::testCellAddValue 1/337 Test: PivotGridTest::testCellAddValue Command: "/home/tmp/portage/app-office/kmymoney-3.96.1/work/kmymoney-3.96.1_build/kmymoney/kmymoneytest" "PivotGridTest::testCellAddValue" Directory: /home/tmp/portage/app-office/kmymoney-3.96.1/work/kmymoney-3.96.1_build/kmymoney "PivotGridTest::testCellAddValue" start time: Mar 09 22:45 CET Output: ---------------------------------------------------------- No protocol specified kmymoneytest: cannot connect to X server :0.0 ---------------------------------------------------------- "PivotGridTest::testCellAddValue" end time: Mar 09 22:45 CET "PivotGridTest::testCellAddValue" time elapsed: 00:00:00 ---------------------------------------------------------- 2/337 Testing: PivotGridTest::testCellAddCell 2/337 Test: PivotGridTest::testCellAddCell Command: "/home/tmp/portage/app-office/kmymoney-3.96.1/work/kmymoney-3.96.1_build/kmymoney/kmymoneytest" "PivotGridTest::testCellAddCell" Directory: /home/tmp/portage/app-office/kmymoney-3.96.1/work/kmymoney-3.96.1_build/kmymoney "PivotGridTest::testCellAddCell" start time: Mar 09 22:45 CET Output: ---------------------------------------------------------- No protocol specified kmymoneytest: cannot connect to X server :0.0 ---------------------------------------------------------- "PivotGridTest::testCellAddCell" end time: Mar 09 22:45 CET "PivotGridTest::testCellAddCell" time elapsed: 00:00:00 ---------------------------------------------------------- 3/337 Testing: PivotGridTest::testCellRunningSum ...
After a quick "xhost +local:" in another term all tests pass. :) I have FEATURES="assume-digests collision-protect distlocks fixpackages metadata-transfer news parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox webrsync-gpg" So I guess this is probably userpriv or usersandbox...
looks like another case of requiring virtualx.eclass
Created attachment 222961 [details] Fixed ebuild Attached is a slightly modified ebuild where the test phase is encapsulated by the virtualx eclass. Works fine here. :) "100% tests passed, 0 tests failed out of 337"
Ebuild in #21 gives me 100% pass on the tests. Sweet. May I be curious and ask what virtualx does?
Confirmed on a second computer, #21 fixes the problem
Ebuild updated in KDE overlay as kmymoney-3.96.1
I saw app-office/kmymoney-3.97.2 in portage this morning. Still won't pass tests.
(In reply to comment #25) > I saw app-office/kmymoney-3.97.2 in portage this morning. Still won't pass > tests. > sorry about that, try 3.98.0 +*kmymoney-3.98.0 (20 May 2010) + + 20 May 2010; Samuli Suominen <ssuominen@gentoo.org> + +kmymoney-3.98.0.ebuild: + Version bump to first release candidate wrt #320527. Fix src_test to use + virtualx.eclass wrt #307427 by Andreas K. Huettel.