Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 307427 - app-office/kmymoney-3.96.1 failes selftest
Summary: app-office/kmymoney-3.96.1 failes selftest
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard: [kde testing]
Keywords: InOverlay
Depends on:
Blocks: kde4tests
  Show dependency tree
 
Reported: 2010-03-02 06:54 UTC by Claes
Modified: 2010-05-20 13:58 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Complete build log (build.log,197.73 KB, text/plain)
2010-03-02 06:54 UTC, Claes
Details
Make tests more verbose (kmymoney-3.96.1-verbose.patch,469 bytes, patch)
2010-03-03 08:08 UTC, Samuli Suominen (RETIRED)
Details | Diff
Build log (kmymoney-build.log,136.03 KB, text/plain)
2010-03-03 08:11 UTC, Andreas K. Hüttel
Details
Output of emerge --info (emerge-info-amd64.txt,3.67 KB, text/plain)
2010-03-03 08:12 UTC, Andreas K. Hüttel
Details
Build log with patch applied (-VV --debug) (kmymoney-3.96.1-VVdebug-build.log,142.18 KB, text/plain)
2010-03-03 23:27 UTC, Andreas K. Hüttel
Details
Fixed ebuild (kmymoney-3.96.1-r1.ebuild,1.42 KB, text/plain)
2010-03-10 10:08 UTC, Andreas K. Hüttel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Claes 2010-03-02 06:54:01 UTC
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"
Comment 1 Claes 2010-03-02 06:54:47 UTC
Created attachment 221755 [details]
Complete build log
Comment 2 Claes 2010-03-02 07:16:58 UTC
Fixed full package name in summary
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2010-03-03 07:28:43 UTC
Can't reproduce...

100% tests passed, 0 tests failed out of 337
Total Test time (real) =  63.49 sec
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2010-03-03 08:08:23 UTC
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.)
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2010-03-03 08:08:54 UTC
Reopen when you have the needed information (useful output from failing tests)
Comment 6 Andreas K. Hüttel archtester gentoo-dev 2010-03-03 08:11:59 UTC
Created attachment 221907 [details]
Build log

Can reproduce the failure here... (all tests fail too)
Comment 7 Andreas K. Hüttel archtester gentoo-dev 2010-03-03 08:12:23 UTC
Created attachment 221909 [details]
Output of emerge --info
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2010-03-03 08:14:46 UTC
(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
Comment 9 Andreas K. Hüttel archtester gentoo-dev 2010-03-03 08:17:38 UTC
Same result with gcc-4.4. Sorry, VERBOSE follows later...
Comment 10 Claes 2010-03-03 08:17:59 UTC
I noticed that:
On two x86 systems all works 100%
On two amd64 systems all tests fail.

Applying the patch...
Comment 11 Claes 2010-03-03 15:50:16 UTC
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.
Comment 12 Andreas K. Hüttel archtester gentoo-dev 2010-03-03 23:27:32 UTC
Created attachment 221981 [details]
Build log with patch applied (-VV --debug)

Strangely the -VV --debug seems to have no visible effect...
Comment 13 Samuli Suominen (RETIRED) gentoo-dev 2010-03-03 23:34:38 UTC
(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...
Comment 14 Claes 2010-03-08 15:38:23 UTC
Upgraded to sandbox-2.2, 100% fail
Emerged with -sandbox, 100% fail
Emerged also with -splitdebug, 100% fail
Comment 15 Samuli Suominen (RETIRED) gentoo-dev 2010-03-08 15:46:05 UTC
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
Comment 16 Claes 2010-03-08 15:54:10 UTC
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 ?
Comment 17 Samuli Suominen (RETIRED) gentoo-dev 2010-03-08 15:58:44 UTC
(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.
Comment 18 Andreas K. Hüttel archtester gentoo-dev 2010-03-09 22:26:49 UTC
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
...
Comment 19 Andreas K. Hüttel archtester gentoo-dev 2010-03-09 22:35:00 UTC
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...
Comment 20 Jonathan Callen (RETIRED) gentoo-dev 2010-03-09 23:54:01 UTC
looks like another case of requiring virtualx.eclass
Comment 21 Andreas K. Hüttel archtester gentoo-dev 2010-03-10 10:08:22 UTC
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"
Comment 22 Claes 2010-03-10 16:03:34 UTC
Ebuild in #21 gives me 100% pass on the tests.
Sweet.
May I be curious and ask what virtualx does?
Comment 23 Claes 2010-03-10 20:27:26 UTC
Confirmed on a second computer, #21 fixes the problem
Comment 24 Andreas K. Hüttel archtester gentoo-dev 2010-03-21 16:30:41 UTC
Ebuild updated in KDE overlay as kmymoney-3.96.1
Comment 25 Claes 2010-04-14 06:48:31 UTC
I saw app-office/kmymoney-3.97.2 in portage this morning. Still won't pass tests.
Comment 26 Samuli Suominen (RETIRED) gentoo-dev 2010-05-20 13:58:15 UTC
(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.