Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 156399

Summary: sys-apps/coreutils-6.6 fails on test du/iacc-dest
Product: Gentoo Linux Reporter: Karsten Baumgarten <karsten.baumgarten>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED CANTFIX    
Severity: normal CC: esigra, Sergiy.Borodych
Priority: High    
Version: 2006.1   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Karsten Baumgarten 2006-11-27 04:37:29 UTC
Looking at the test, it seems it will always fail.

Line 49 in the test do this:

du > ../t 2>&1 && fail=1

The latter, executed as a normal user, yields this on my system:

0       ./a
0       ./b
du: cannot access `./c/j': Permission denied
du: fts_read failed: Permission denied

When being executed as root, there is no "Permission denied" at all. Hence the test at the end (comparing the output of du) would always yield differences in out/exp/exp2, hence the test fails.

The manual tests above were performed using coreutils-6.4 (without the 'test' feature, as this fails for a different test. See #156383)

---

make[3]: Leaving directory `/var/tmp/portage/sys-apps/coreutils-6.6/work/coreutils-6.6/tests/dircolors'
make[2]: Leaving directory `/var/tmp/portage/sys-apps/coreutils-6.6/work/coreutils-6.6/tests/dircolors'
Making check in du
make[2]: Entering directory `/var/tmp/portage/sys-apps/coreutils-6.6/work/coreutils-6.6/tests/du'
make  check-TESTS
make[3]: Entering directory `/var/tmp/portage/sys-apps/coreutils-6.6/work/coreutils-6.6/tests/du'
cmp: EOF on out
4d3
< ./c
6a6
> du: `./c': Permission denied
FAIL: inacc-dest
PATH LENGTH  mkdir:     xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
PASS: long-from-unreadable
PASS: long-sloop
./2g: This test is very expensive, so it is disabled by default.
To run it anyway, rerun make check with the RUN_VERY_EXPENSIVE_TESTS
environment variable set to yes.  E.g.,

  env RUN_VERY_EXPENSIVE_TESTS=yes make check

SKIP: 2g
PASS: files0-from
./inaccessible-cwd: /var/tmp/portage/sys-apps/coreutils-6.6/work/coreutils-6.6/tests/du: not writable by user `nobody'
./inaccessible-cwd: skipping this test
SKIP: inaccessible-cwd
PASS: deref-args
PASS: slash
PASS: fd-leak
PASS: hard-link
PASS: 8gb
PASS: basic
PASS: restore-wd
PASS: exclude
./no-x: /var/tmp/portage/sys-apps/coreutils-6.6/work/coreutils-6.6/tests/du: not writable by user `nobody'
./no-x: skipping this test
SKIP: no-x
PASS: no-deref
PASS: trailing-slash
PASS: deref
PASS: two-args
df: no file systems processed
PASS: slink
======================================

---

Portage 2.1.2_rc2-r2 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.18-gentoo-r3 i686)
=================================================================
System uname: 2.6.18-gentoo-r3 i686 Genuine Intel(R) CPU           T2500  @ 2.00GHz
Gentoo Base System version 1.12.6
Last Sync: Mon, 27 Nov 2006 08:00:01 +0000
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
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.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=prescott -pipe -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict test"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j5"
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.gentoo.org/gentoo-portage"
USE="x86 X alsa bash-completion berkdb bzip2 crypt dbus elibc_glibc gtk gtk2 input_devices_evdev input_devices_keyboard input_devices_synaptics jpeg kernel_linux mmx mmxext ncurses no-old-linux nptl nptlonly opengl pam perl python readline sse2 ssl tcpd threads tiff unicode userland_GNU video_cards_fglrx vorbis zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Sergiy Borodych 2006-11-29 05:32:08 UTC
for me this test filed too

# emerge --info
Portage 2.1.2_rc2-r3 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.18-suspend2 i686)
=================================================================
System uname: 2.6.18-suspend2 i686 Intel(R) Pentium(R) M processor 1.70GHz
Gentoo Base System version 1.12.6
Last Sync: Wed, 29 Nov 2006 06:30:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
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.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=pentium-m -fomit-frame-pointer -mfpmath=sse"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=pentium-m -fomit-frame-pointer -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache collision-protect distlocks metadata-transfer sandbox sfperms strict test"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="ru_RU.UTF-8"
LINGUAS="ru uk"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
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.gentoo.org/gentoo-portage"
USE="x86 X a52 aac acpi alsa amr apache2 asf berkdb bitmap-fonts bzip2 cairo cdr chardet chroot cli cracklib crypt dbus djvu dlloader dri dvd dvdr elibc_glibc emboss encode fam fat ffmpeg firefox flac fluidsynth freetype gd gdbm gif glut gnome gpm gstreamer gtk gtk2 hal iconv input_devices_keyboard input_devices_mouse input_devices_synaptics irda isdnlog ithreads jpeg kernel_linux libg++ linguas_ru linguas_uk logrotate mikmod mmap mmx mozbranding mozdevelop mozilla moznocompose moznoirc mp3 ncurses nls nptl nptlonly nsplugin ogg opengl pam pam_chroot pcre pdf perl pic png pnp ppds pppd pthreads readline reflection reiser4 reiserfs samba sdl seamonkey session slang spl sse sse2 ssl svg symlink syslog tcpd threads timidity truetype truetype-fonts type1-fonts udev unicode usb userland_GNU userlocales utf8 video_cards_ati video_cards_fglrx video_cards_radeon video_cards_vesa video_cards_vga vim-with-x vlm vorbis win32codecs wma wxwindows x264 xinerama xml xml2 xorg xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS
Comment 2 Erik 2007-10-09 16:44:48 UTC
The specified version of coreutils does not exist in Gentoo, so I suppose this
should be closed.