Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 143054 - sys-libs/db-4.2.52_p2-r1 fails tests
Summary: sys-libs/db-4.2.52_p2-r1 fails tests
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High minor (vote)
Assignee: Paul de Vrieze (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-06 23:02 UTC by Paolo Pedroni
Modified: 2008-08-16 03:17 UTC (History)
0 users

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


Attachments
ALL.OUT file showing test failures (ALL.OUT,216.53 KB, text/plain)
2006-08-06 23:07 UTC, Paolo Pedroni
Details
ALL.OUT for 4.52_p4-r2 (bzip2 compressed, sorry) (ALL.OUT.bz2,128.06 KB, text/plain)
2006-09-28 22:53 UTC, Christian Faulhammer (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paolo Pedroni 2006-08-06 23:02:15 UTC
As I said in the summary.

FEATURES="test" is enabled but USE="test" is not; is it supposed to be enabled for the package to pass its tests?

I will attach the ALL.OUT file.

emerge --info yields:
Portage 2.1-r1 (default-linux/amd64/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.17-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.17-gentoo-r4 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4600+
Gentoo Base System version 1.12.4
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O3 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=k8 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache collision-protect distcc distlocks fixpackages metadata-transfer sandbox sfperms strict test userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://pandemonium.tiscali.de/pub/gentoo/ http://gentoo.ngi.it http://gentoo.intergenia.de http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://linuv.uv.es/mirror/gentoo/ http://ftp.ntua.gr/pub/linux/gentoo/"
LANG="it_IT.UTF-8"
LC_ALL="it_IT.UTF-8"
LINGUAS="it"
MAKEOPTS="-j8"
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'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/vmware"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 X Xaw3d aalib acpi alsa arts audiofile avi bash-completion berkdb bitmap-fonts bzip2 caps cdparanoia cdr cli crypt cups curl dbus dga dio dlloader dri dvd dvdr dvdread emboss emul-linux-x86 encode exif expat fbcon ffmpeg fftw flac foomaticdb fortran ftp gcj gd ggi gif glut gmp gnutls gphoto2 gpm gstreamer gtk2 hal iconv idn ieee1394 imagemagick isdnlog java javascript jbig jikes jpeg jpeg2k kde kdeenablefinal lcms libcaca lm_sensors lzw lzw-tiff mad maildir matroska memlimit mime mmap mng motif mozilla mp3 mpeg mpi ncurses nls nptl nsplugin offensive ogg openal opengl oss pam pcre pdf pdflib perl png posix ppds pppd python qt qt3 quicktime readline recode reflection samba sasl sdl session sharedmem shorten sndfile sockets sox speex spell spl ssl svg symlink sysvipc tcl tcltk tcpd theora threads tidy tiff tk truetype truetype-fonts type1-fonts unicode usb vcd vorbis wmf xine xml xml2 xorg xosd xpm xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux linguas_it userland_GNU video_cards_radeon"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Paolo Pedroni 2006-08-06 23:07:54 UTC
Created attachment 93635 [details]
ALL.OUT file showing test failures
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-08-07 00:24:51 UTC
(In reply to comment #0)
> As I said in the summary.
> 
> FEATURES="test" is enabled but USE="test" is not; is it supposed to be enabled
> for the package to pass its tests?

Yes (and all binding need to be enabled as well).
Comment 3 Paolo Pedroni 2006-08-07 01:54:04 UTC
Tried again with USE="test" and it still does not work.

USE flags for the package are:

USE="java tcl test -bootstrap -doc -nocxx"

so all bindings are built, but it still does not work. Any ideas?
Comment 4 Paul de Vrieze (RETIRED) gentoo-dev 2006-08-07 03:53:58 UTC
Strange, it all seems to be about some "handles" symbol that is not recognized.
Comment 5 Kevin F. Quinn (RETIRED) gentoo-dev 2006-08-26 03:28:42 UTC
Ok; some investigation shows that actually almost every test fails.

As an example, env002 fails which is the second subtest that runs (lots of stuff afterwards fails for the same reason):

# tclsh
% source ../test/test.tcl
% eval env002
...
bad option "-log": must be...

After rummaging through the code, I discovered that the tcl interface for db only supports the "-log" option if built with CONFIG_TEST.  Looking at db_config.h, CONFIG_TEST is described as needing to be set to 1 to build db suitable for the test suite.

Following back to configure, there's an '--enable-test' feature which needs to be set in order to build for testing.  Adding 'myconf=${myconf} $(use-enable test)" to src_compile() sorts this out.

However I'm guessing that the package should be installed without all the extra test stuff included with --enable-test.  This would mean re-running src_compile() with --disable-test after the tests have completed.

For example, this could be done by renaming src_compile to do_src_compile, and having:

do_src_compile() {
    ...
    [[ $1 != "notest" ]] &&
        myconf="${myconf} $(use_enable test)"
    ...
}

src_compile() {
    do_src_compile
}

src_test() {
    db_src_test
    do_src_compile notest
}

Another possibility, since the tests are so long, is to provide the tests via a separate ebuild, sys-libs/db-test which would build and run the tests but not install anything, and RESTRICT=test in sys-libs/db.  This makes it easy to have just the non-test version installed normally (and via deps), and allow people who want to run the test to do so by emergeing sys-libs/db-test.

BTW I note db_src_test in db.eclass checks for test in FEATURES - surely this isn't necessary?
Comment 6 Christian Faulhammer (RETIRED) gentoo-dev 2006-09-28 22:42:59 UTC
-r2 fails test too, the ALL.OUT file is not equal:

[ebuild   R   ] sys-libs/db-4.2.52_p4-r2  USE="java tcl test -bootstrap -doc -nocxx" 0 kB

Portage 2.1.1 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r8 i686)
=================================================================
System uname: 2.6.17-gentoo-r8 i686 AMD Athlon(tm) XP 2500+
Gentoo Base System version 1.12.5
Last Sync: Fri, 29 Sep 2006 05:20:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms strict test"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo/"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
LINGUAS="de"
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'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.informatik.rwth-aachen.de/gentoo-portage"
USE="x86 3dnow 3dnowext X Xaw3d a52 alsa artworkextra asf audiofile bash-completion beagle berkdb bidi bitmap-fonts bootsplash branding bzip2 cairo cdda cddb cdparanoia cdr cli cracklib crypt css cups curl custom-cflags dbus dga directfb divx4linux dlloader dri dts dvd dvdr dvdread dvi eds elibc_glibc emacs emboss encode esd evo exif expat fam fat fbcon ffmpeg firefox fortran ftp gb gcj gdbm gif gnome gpm gstreamer gtk gtk2 gtkhtml hal icq idn imagemagick imap input_devices_keyboard input_devices_mouse ipv6 isdnlog java javascript jikes jpeg jpeg2k kde kernel_linux ldap leim libg++ linguas_de lm_sensors mad maildir matroska mbox mhash mikmod mime mmx mmxext mng mono mp3 mpeg mpeg2 mule nautilus ncurses nforce2 nls nocardbus nptl nptlonly nsplugin nvidia objc ogg opengl pam pcre pdf perl plotutils pmu png ppds pppd preview-latex print python qt3 qt4 quicktime readline reflection reiserfs samba sdk session slang spell spl sse ssl svg svga t1lib tcltk tcpd tetex theora thunderbird tiff truetype truetype-fonts type1-fonts udev usb userland_GNU vcd video_cards_fbdev video_cards_radeon video_cards_vesa videos vorbis win32codecs wmf wxwindows xine xml xorg xosd xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 7 Christian Faulhammer (RETIRED) gentoo-dev 2006-09-28 22:53:33 UTC
Created attachment 98354 [details]
ALL.OUT for 4.52_p4-r2 (bzip2 compressed, sorry)

Too large for Bugzilla, so I compressed
Comment 8 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-08-16 03:17:21 UTC
Newer versions use 'has test $FEATURES'.

Upstream's record of test passes is very low, even the latest 4.7 failed a couple of tests.