Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 300760 - FEATURES="test sandbox" causes libtools-2.2.6b to fail tests phase
Summary: FEATURES="test sandbox" causes libtools-2.2.6b to fail tests phase
Status: RESOLVED DUPLICATE of bug 293758
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Sandbox (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Sandbox Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-12 18:57 UTC by Lie Ryan
Modified: 2010-02-25 05:17 UTC (History)
0 users

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


Attachments
Full Build Log (build.log,41.82 KB, text/plain)
2010-01-12 19:03 UTC, Lie Ryan
Details
test log generated by test 46 (testsuite.log,4.73 KB, text/plain)
2010-01-12 19:19 UTC, Lie Ryan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lie Ryan 2010-01-12 18:57:19 UTC
The relevant test suite that fails:
"""
## -------------------------- ##
## libtool 2.2.6b test suite. ##
## -------------------------- ##
...
46: lt_dlopen archive                               FAILED (lt_dlopen_a.at:95)
...
## ------------- ##
## Test results. ##
## ------------- ##

ERROR: 71 tests were run,
4 failed (3 expected failures).
4 tests were skipped.
"""

The test only fails when run inside sandbox, when run outside the sandbox it succeeds. I'm not sure if the bug is caused by sandbox or libtools.

How to Reproduce:
1. make sure FEATURES="test sandbox" is in make.conf
2. emerge libtools

Alternative How to Reproduce:
1. get emerge to produce /var/tmp/portage/sys-devel/libtool-2.2.6b/work/libtool-2.2.6b/ ($ FEATURES="test sandbox" emerge libtools)
2. go to the failed test directory ($ cd /var/tmp/portage/sys-devel/libtool-2.2.6b/work/libtool-2.2.6b/tests/testsuite.dir/46)
3. start a sandbox ($ sandbox)
4. run ./run; the test will fail ($ ./run)
5. do it again without sandbox, the test should succeed

Expected:
1. the test is "expected failure" OR 
2. succeeds inside sandbox OR
3. the test and/or the build should be run without sandbox

Workaround:
- disable sandbox when emerging libtools OR
- disable test

=============================================================================
$ emerge --info
Portage 2.1.6.13 (default/linux/amd64/10.0, gcc-4.3.4, glibc-2.10.1-r1, 2.6.31-gentoo-r6 x86_64)
=================================================================
System uname: Linux-2.6.31-gentoo-r6-x86_64-AMD_Turion-tm-_64_X2-with-gentoo-1.12.13
Timestamp of tree: Mon, 11 Jan 2010 08:15:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.9-r2
dev-lang/python:     2.6.4
dev-util/ccache:     2.4-r7
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-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict test unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://mirror.pacific.net.au/linux/Gentoo ftp://ftp.swin.edu.au/gentoo "
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j5 --load-average 4.0"
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/userportage"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X acl alsa amd64 bash-completion berkdb branding bzip2 cairo cli consolekit cracklib crypt cups cupsddk cxx dbus dri esd fortran fuse gdbm gmp gnome gnome-keyring gpm gtk hal iconv ipv6 kde laptop mmx mmxext modules mudflap multilib ncurses nls nptl nptlonly opengl openmp oss pam pcre perl policykit pppd python qt3 qt4 readline reflection scanner session smp spl sse sse2 ssl sysfs tcpd tk unicode vim-syntax xorg 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 synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Lie Ryan 2010-01-12 19:03:45 UTC
Created attachment 216265 [details]
Full Build Log
Comment 2 Lie Ryan 2010-01-12 19:19:55 UTC
Created attachment 216267 [details]
test log generated by test 46

a few relevant lines from the testsuite.log:

./lt_dlopen_a.at:95: $bindir/main $libdir/plugin.la; lt_status=$?; if test $lt_status -eq 0; then :;
           elif test "X$host" != "X$build" && \
                { test -x "$bindir/main $libdir/plugin.la" || test -x "$bindir/main $libdir/plugin.la"$EXEEXT; }
           then (exit 77); else (exit $lt_status); fi
Not enabling shell tracing (command contains an embedded newline)
stderr:
Opening ... libc.so.6
libsandbox:  Can't dlopen libc: (null)
stdout:
./lt_dlopen_a.at:95: exit code was 1, expected 0
46. lt_dlopen_a.at:23: 46. lt_dlopen archive (lt_dlopen_a.at:23): FAILED (lt_dlopen_a.at:95)
Comment 3 Ryan Hill (RETIRED) gentoo-dev 2010-02-25 05:17:53 UTC

*** This bug has been marked as a duplicate of bug 293758 ***