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

Bug 395487

Summary: dev-vcs/git-1.7.8.4 fails tests unless FEATURES=userpriv on UML only
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Robin Johnson <robbat2>
Status: RESOLVED OBSOLETE    
Severity: normal CC: kernel
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build log
build log
packages
./t3600-rm.sh --verbose 1>/tmp/user.log 2>&1
./t3600-rm.sh --verbose 1>/tmp/root.log 2>&1
emerge -1 dev-vcs/git
make test 1>/tmp/make.log 2>&1
build log

Description Toralf Förster gentoo-dev 2011-12-21 08:55:06 UTC
Within a chrooted user-mode-linux I got :

# failed 22 among 115 test(s)


Reproducible: Always




n22 / # emerge --info
Portage 2.1.10.41 (default/linux/x86/10.0, gcc-4.6.2, glibc-2.14.1-r1, 3.1.5 i686)
=================================================================
System uname: Linux-3.1.5-i686-Intel-R-_Core-TM-2_Duo_CPU_P8600_@_2.40GHz-with-gentoo-2.1
Timestamp of tree: Wed, 21 Dec 2011 07:45:01 +0000
app-shells/bash:          4.2_p20
dev-lang/python:          2.7.2-r3, 3.1.4-r3
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.7
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.11.1-r1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.6.2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r1
Repositories: gentoo toralf
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
FEATURES="assume-digests binpkg-logs compress-build-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_GB"
MAKEOPTS="-j1"
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/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl apache2 berkdb bzip2 cli cracklib crypt cups cxx dri fam fastbuild gdbm gmp gpm iconv ipv6 logrotate mmx modules mudflap mysql mysqli ncurses nls nptl nptlonly openmp pam pcre pppd readline session sse sse2 sse3 ssl ssse3 sysfs tcpd threads unicode userlocales webmail x86 xml xorg zlib" ALSA_CARDS="hda-intel" 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 auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Toralf Förster gentoo-dev 2011-12-21 08:55:55 UTC
Created attachment 296541 [details]
build log
Comment 2 Toralf Förster gentoo-dev 2011-12-22 10:16:41 UTC
Created attachment 296635 [details]
build log

1.7.8.1 build log same system
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2011-12-22 19:52:29 UTC
I don't have a UML deployment, so you're going to need to run the subtests yourself and look at why they fail.

t3600-rm.sh is all of the tests you need to look at. The rest are known upstream breakages that don't block the testsuite.
Comment 4 Toralf Förster gentoo-dev 2011-12-22 22:45:24 UTC
(In reply to comment #3)
> I don't have a UML deployment, so you're going to need to run the subtests
> yourself and look at why they fail.
> 
> t3600-rm.sh is all of the tests you need to look at. The rest are known
> upstream breakages that don't block the testsuite.

Hhm, it happens both within a running UML as well as when I only chrooted into the image file - but the test doesn't fail at the host system, which is a :

$> emerge --info
Portage 2.1.10.41 (default/linux/x86/10.0/desktop/kde, gcc-4.5.3, glibc-2.13-r4, 3.1.6 i686)
=================================================================
System uname: Linux-3.1.6-i686-Intel-R-_Core-TM-2_Duo_CPU_P8600_@_2.40GHz-with-gentoo-2.0.3
Timestamp of tree: Thu, 22 Dec 2011 19:15:01 +0000
ccache version 3.1.6 [enabled]
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.1.4-r3
dev-util/ccache:          3.1.6
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo betagarden toralf
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n --quiet-build=y --keep-going=y"
FEATURES="assume-digests binpkg-logs ccache compress-build-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://mirror.leaseweb.com/gentoo/ http://gentoo.mirror.dkm.cz/pub/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.mneisen.org/ http://www.gtlib.gatech.edu/pub/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_GB"
MAKEOPTS="-j2"
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="/var/lib/layman/betagarden /usr/local/portage"
SYNC="rsync://linux.rz.ruhr-uni-bochum.de/gentoo-portage"
USE="X a52 aac acl acpi alsa apache2 berkdb bittorrent bluetooth branding bzip2 cairo cdda cdr classic cli consolekit cracklib crypt css cups cxx dbus declarative dri dts dvb dvd dvdr emboss encode exif fam fastbuild fat ffmpeg firefox flac fortran gdbm gdu gif git gmp gphoto2 gpm gtk hyphenation iconv ipv6 java jpeg kde kipi kqemu kvm lastfm lcms ldap libnotify lirc logrotate mad mbox mmx mng modules mp3 mp4 mpeg mudflap mysql mysqli ncurses nls nptl nptlonly nsplugin ntfs ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pppd qt3support qt4 rdesktop readline sdl semantic-desktop session sieve spell sse sse2 sse3 ssl ssse3 startup-notification svg sysfs tcpd thinkpad tiff tk transparent-proxy truetype udev unicode usb vaapi vim-syntax vnc vorbis wmf x264 x86 xcb xcomposite xinerama xml xorg xpm xscreensaver xulrunner xv xvid xvmc zlib" ALSA_CARDS="hda-intel" 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 auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB" LIRC_DEVICES="devinput inputlirc" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2011-12-23 00:27:13 UTC
The test doesn't fail for me, so can I get more details about your image file?
Comment 6 Toralf Förster gentoo-dev 2011-12-23 09:08:12 UTC
Created attachment 296727 [details]
packages

(In reply to comment #5)
> The test doesn't fail for me, so can I get more details about your image file?

Beside the info in comment #0 here's the package list. The image file itself I'm using since about 3-4 years, updated regularly. Few days ago I cloned it - leaving the original at stable status and the new one I added "~x86" to the keywords. Few packages however are not updated to unstable, b/c they failed the test phase.
Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2012-01-20 08:41:10 UTC
I can't get t3600 to fail here.

On your UML setup, can you please run it:
ebuild ... compile
cd ${S}/t
./t3600-rm.sh --verbose (as non-root)
Comment 8 Toralf Förster gentoo-dev 2012-01-20 10:56:17 UTC
(In reply to comment #7)
> I can't get t3600 to fail here.
me tee ;-) - in the mean while I updated few other packages - now it works flawlessly.
I tend to close this report therefore.
Comment 9 Toralf Förster gentoo-dev 2012-01-20 17:54:47 UTC
Gah - git-1.7.8.4 failed for a normal "emerge -u git", but immediately changing after the failed emerge into /var/tmp/portage/dev-vcs/git-1.7.8.4/work/git-1.7.8.4/t and running "./t3600-rm.sh --verbose" (as root) works fine ?!?*&%$
Comment 10 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2012-01-20 20:17:41 UTC
Err, can you clarify?
Run the test with --verbose as both root and non-root, and attach both sets of output please? (Both stderr and stdout)
Comment 11 Toralf Förster gentoo-dev 2012-01-21 10:49:33 UTC
Created attachment 299437 [details]
./t3600-rm.sh --verbose 1>/tmp/user.log 2>&1
Comment 12 Toralf Förster gentoo-dev 2012-01-21 10:50:00 UTC
Created attachment 299439 [details]
./t3600-rm.sh --verbose 1>/tmp/root.log 2>&1
Comment 13 Toralf Förster gentoo-dev 2012-01-21 10:50:38 UTC
Created attachment 299441 [details]
emerge -1 dev-vcs/git
Comment 14 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2012-01-21 21:37:01 UTC
Ok. I don't get it. This isn't making much sense.

Can you do a test run on the -9999 ebuild? (It'll fail due to git-svn, but I'm interested to see what other failures there are).
Comment 15 Toralf Förster gentoo-dev 2012-01-22 10:36:01 UTC
Well, what I can say is, that 1.7.8.4 passes all test at an UML image with an almost stable Gentoo (except gcc, which is already at 4.6.2) - whereas the same version failed it at an unstable UML image. So either a local problem at my side or it has something to do with the other unstable packages.

Now version 9999 :
An "ebuild ...compile" failed due to missing ascii2doc, I circumvent it by a dummy script as long as bug #399693 isn't answered. After that I changed into /var/tmp/portage/dev-vcs/git-9999/work/git-9999/t and run
"$make test 1>/tmp/make.log 2>&1" which output I'll attach onto this ticket.
Comment 16 Toralf Förster gentoo-dev 2012-01-22 10:37:00 UTC
Created attachment 299507 [details]
make test 1>/tmp/make.log 2>&1
Comment 17 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2012-01-22 20:58:04 UTC
Does that one pass if you re-run with FEATURES=userpriv?
Comment 18 Toralf Förster gentoo-dev 2012-01-23 10:25:05 UTC
(In reply to comment #17)
> Does that one pass if you re-run with FEATURES=userpriv?
yes
Comment 19 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2012-08-23 20:24:46 UTC
Toralf:
can you re-run on a newer Git & UML?

kernel:
Maybe a UML-specific bug?
Comment 20 Toralf Förster gentoo-dev 2012-08-24 18:11:18 UTC
Created attachment 322122 [details]
build log

(In reply to comment #19)
> Toralf:
> can you re-run on a newer Git & UML?
ofc, build lgo attached for git-1.7.12-r2

> kernel:
> Maybe a UML-specific bug?
oh - no,. I chroot into the uml image - so compiling is much faster than compiling within a running UML
Comment 21 Toralf Förster gentoo-dev 2012-12-12 10:36:58 UTC
With current git version git-1.8.0.2 now only 2 test fails at an unstable Gentoo Linux:

failed test(s): t3600 t7508
Comment 22 Toralf Förster gentoo-dev 2012-12-12 10:37:16 UTC
*** Bug 438822 has been marked as a duplicate of this bug. ***
Comment 23 Toralf Förster gentoo-dev 2012-12-18 13:21:37 UTC
(In reply to comment #21)
> With current git version git-1.8.0.2 now only 2 test fails at an unstable
> Gentoo Linux:
> 
> failed test(s): t3600 t7508

same at a stable Gedntoo, details : 

not ok - 15 Test that "git rm -f" fails if its rm fails
not ok - 16 When the rm in "git rm -f" fails, it should not remove the file from the index
not ok - 20 Re-add foo and baz
not ok - 21 Modify foo -- rm should refuse
not ok - 22 Modified foo -- rm -f should work
not ok - 23 Re-add foo and baz for HEAD tests
not ok - 24 foo is different in index from HEAD -- rm should refuse
not ok - 55 status succeeds in a read-only repository
Comment 24 Toralf Förster gentoo-dev 2016-01-31 15:27:58 UTC
obsolete