Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 152111 - sys-apps/coreutils fails install/basic-1 test with userpriv
Summary: sys-apps/coreutils fails install/basic-1 test with userpriv
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-20 06:35 UTC by Matti Bickel (RETIRED)
Modified: 2009-03-12 13:15 UTC (History)
5 users (show)

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


Attachments
selinux-patch failure log (001_all_coreutils-selinux.patch-14787.out,43.40 KB, text/plain)
2006-10-22 04:54 UTC, nixnut (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matti Bickel (RETIRED) gentoo-dev 2006-10-20 06:35:26 UTC
[ebuild     U ] sys-apps/coreutils-6.3 [5.97] USE="-acl -nls (-selinux) -static"

make[3]: Leaving directory `/var/tmp/portage/sys-apps/coreutils-6.3/work/coreutils-6.3/tests/head'
make[2]: Leaving directory `/var/tmp/portage/sys-apps/coreutils-6.3/work/coreutils-6.3/tests/head'
Making check in install
make[2]: Entering directory `/var/tmp/portage/sys-apps/coreutils-6.3/work/coreutils-6.3/tests/install'
make  check-TESTS
make[3]: Entering directory `/var/tmp/portage/sys-apps/coreutils-6.3/work/coreutils-6.3/tests/install'
PASS: trap
chmod: changing permissions of `.': Permission denied
FAIL: basic-1
PASS: create-leading
PASS: d-slashdot
======================================
1 of 4 tests failed
Please report to bug-coreutils@gnu.org
======================================
make[3]: *** [check-TESTS] Error 1
make[3]: Leaving directory `/var/tmp/portage/sys-apps/coreutils-6.3/work/coreutils-6.3/tests/install'
make[2]: *** [check-am] Error 2
make[2]: Leaving directory `/var/tmp/portage/sys-apps/coreutils-6.3/work/coreutils-6.3/tests/install'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-apps/coreutils-6.3/work/coreutils-6.3/tests'
make: *** [check-recursive] Error 1

!!! ERROR: sys-apps/coreutils-6.3 failed.
Call stack:
  ebuild.sh, line 1568:   Called dyn_test
  ebuild.sh, line 988:   Called src_test
  coreutils-6.3.ebuild, line 112:   Called die

Portage 2.1.2_pre3-r5 (default-linux/ppc/ppc32/2006.1/G4, gcc-4.1.1, glibc-2.4-r1, 2.6.18-20061003 ppc)
=================================================================
System uname: 2.6.18-20061003 ppc 7455, altivec supported
Gentoo Base System version 1.12.4
Last Sync: Sat, 25 Feb 2006 16:50:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.3, 2.0.27-r1
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.18.1
sys-devel/autoconf:  2.13, 2.60
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
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=7400 -mtune=G4 -maltivec -pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -mcpu=7400 -mtune=G4 -maltivec -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict stricter test userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo"
LANG="en_US.ISO-8859-1"
MAKEOPTS="-j1"
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/overlays/local"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="ppc altivec elibc_glibc input_devices_keyboard input_devices_mouse ipv6 kernel_linux nptl pic ssl test unicode userland_GNU video_cards_ati video_cards_radeon zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 nixnut (RETIRED) gentoo-dev 2006-10-22 04:54:23 UTC
Created attachment 100207 [details]
selinux-patch failure log

coreutils-6.3 doesn't seem to like the selinux patch either
Comment 2 Matti Bickel (RETIRED) gentoo-dev 2006-10-22 13:50:47 UTC
Interesting enough coreutils finishes the tests with FEATURES="-userpriv" (thanks to hiyuh for mentioning this).
Does this solve the issue or should we have a closer look?
Comment 3 SpanKY gentoo-dev 2006-11-10 23:34:43 UTC
this is a userpriv / sandbox bug ...
Comment 4 Ryan Hill (RETIRED) gentoo-dev 2007-04-28 00:00:29 UTC
this only fails when FEATURES="userpriv" because the test is not run when the user is root.

here's w/ coreutils-6.9:

+ t0=basic-1.tmp
+ tmp=basic-1.tmp/4157
+ trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
+ trap '(exit $?); exit $?' 1 2 13 15
+ framework_failure=0
+ mkdir -p basic-1.tmp/4157
+ cd basic-1.tmp/4157
+ rm -rf dir file
+ mkdir -p dir
+ echo foo
+ test 0 = 1
+ fail=0
+ ginstall file dir
+ test -f file
+ test -f dir/file
+ dd=dd
+ dd2=dd2
+ just_built_dd=/var/tmp/portage/sys-apps/coreutils-6.9/work/coreutils-6.9/tests/install/../../src/dd
+ test -r /var/tmp/portage/sys-apps/coreutils-6.9/work/coreutils-6.9/tests/install/../../src/dd
+ cp /var/tmp/portage/sys-apps/coreutils-6.9/work/coreutils-6.9/tests/install/../../src/dd .
+ cp dd dd2
+ strip dd2
+ ginstall -s -c -m 555 dd dir
+ test -f dd
++ ls -l dir/dd
+ set X -r-xr-xr-x 1 portage portage 38396 Apr 27 17:56 dir/dd
+ shift
+ test -r-xr-xr-x = -r-xr-xr-x
+ ginstall -d .
+ ginstall -d newdir
+ test -d newdir
+ ginstall -d newdir1 newdir2 newdir3
+ test -d newdir1
+ test -d newdir2
+ test -d newdir3
+ abs=/var/tmp/portage/sys-apps/coreutils-6.9/work/coreutils-6.9/tests/install/basic-1.tmp/4157
+ mkdir sub
+ cd sub
+ chmod 0 .
+ ginstall -d /var/tmp/portage/sys-apps/coreutils-6.9/work/coreutils-6.9/tests/install/basic-1.tmp/4157/xx/yy rel/sub1 rel/sub2
+ chmod 755 sub
+ test -d xx/yy
+ test -d sub/rel
+ test -d xx/rel
+ df --local .
+ mkdir -p sub1/d
+ cd sub1/d
+ chmod a-r .
+ chmod a-rx ..
+ ginstall -d /var/tmp/portage/sys-apps/coreutils-6.9/work/coreutils-6.9/tests/install/basic-1.tmp/4157/xx/zz rel/a rel/b
ginstall: cannot create directory `rel': Permission denied
ginstall: cannot create directory `rel': Permission denied
+ fail=1
+ chmod 755 sub1 sub1/d
+ test -d xx/zz
+ test -d sub1/d/rel/a
+ fail=1
+ test -d sub1/d/rel/b
+ fail=1
+ touch file
+ ginstall -Dv file sub3/a/b/c/file
+ diff - out
+ exit 1
+ exit 1
+ status=1
+ cd /var/tmp/portage/sys-apps/coreutils-6.9/work/coreutils-6.9/tests/install
+ chmod -R u+rwx basic-1.tmp
+ rm -rf basic-1.tmp
+ exit 1
FAIL: basic-1


Comment 5 Steffen Bergner 2007-12-20 14:32:12 UTC
still not fixed for sys-apps/coreutils-6.9-r1
Comment 6 Dustin Polke 2008-01-08 10:28:32 UTC
+1

Will circumvent this issue with FEATURES="-userpriv" until there is a solution.

Happy to provide more info if needed.
Comment 7 SpanKY gentoo-dev 2009-03-12 13:15:28 UTC
should be fixed with sandbox-1.6 and coreutils-7.1