* ok 1: setup (initial) * FAIL 2: status works (initial) git add -i </dev/null >output && grep "+1/-0 *+2/-0 file" output * FAIL 3: diff works (initial) (echo d; echo 1) | git add -i >output && sed -ne "/new file/,/content/p" <output >diff && test_cmp expected diff * FAIL 4: revert works (initial) git add file && (echo r; echo 1) | git add -i && git ls-files >output && ! grep . output * ok 5: setup (commit) * FAIL 6: status works (commit) git add -i </dev/null >output && grep "+1/-0 *+2/-0 file" output * FAIL 7: diff works (commit) (echo d; echo 1) | git add -i >output && sed -ne "/^index/,/content/p" <output >diff && test_cmp expected diff * FAIL 8: revert works (commit) git add file && (echo r; echo 1) | git add -i && git add -i </dev/null >output && grep "unchanged *+3/-0 file" output * failed 6 among 8 test(s) make[1]: *** [t3701-add-interactive.sh] Error 1 make[1]: Leaving directory `/var/tmp/portage/dev-util/git-1.5.5.3-r1/work/git-1. 5.5.3/t' make: *** [test] Error 2 * * ERROR: dev-util/git-1.5.5.3-r1 failed. It doesn't matter wether i use FEATURES="userpriv" or not.
retest with 1.5.6.1, include emerge --info if fails.
I'm getting the exact same errors on a fresh install of Gentoo/MIPS (mipsel3) 2008.0. I'm trying the earlier git release now... but in the meantime, my `emerge --info`... zhenghe / # emerge --info WARNING: repository at /home/portage/overlays/local is missing a repo_name entry WARNING: repository at /home/portage/overlays/shared is missing a repo_name entry WARNING: repository at /home/stuartl/gentoo-x86 is missing a repo_name entry Portage 2.2_rc6 (default/linux/mips/2008.0/cobalt, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23.14-mipsgit-20080206-lm2e mips64) ================================================================= System uname: Linux-2.6.23.14-mipsgit-20080206-lm2e-mips64-ICT_Loongson-2_V0.2_FPU_V0.1-with-glibc2.0 Timestamp of tree: Fri, 01 Aug 2008 13:45:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 3.2_p33 dev-lang/python: 2.5.1-r5 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.12 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.5, 1.10.1-r1 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.24 ACCEPT_KEYWORDS="mips ~mips" CBUILD="mipsel-unknown-linux-gnu" CFLAGS="-O2 -mabi=32 -pipe -mips3" CHOST="mipsel-unknown-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -mabi=32 -pipe -mips3" DISTDIR="/home/portage/distfiles" FEATURES="buildpkg ccache distcc distlocks fixpackages nostrip parallel-fetch preserve-libs sfperms strict test unmerge-orphans userfetch userpriv" GENTOO_MIRRORS="http://www/portage http://qube/pub/gentoo http://mirror.aarnet.edu.au/pub/gentoo ftp://ftp.planetmirror.com/pub/gentoo http://mirror.isp.net.au/ftp/pub/gentoo/ http://ftp.swin.edu.au/gentoo/" LANG="en_AU.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="en_GB en_AU en" PKGDIR="/home/portage/packages/mipsel/mips3" 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="/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/home/portage/overlays/local /home/portage/overlays/shared /home/stuartl/gentoo-x86" SYNC="rsync://www.longlandclan.yi.org/gentoo-portage" USE="X Xaw3d a52 aac aalib aiglx akode alisp alsa aotuv apache2 audiofile autoipd avahi bcmath berkdb bitmap-fonts bonobo bookmarks boost bzip2 calendar ccache cgi chardet chm cjk cle266 cli clucene cracklib crypt ctype cups curl cviewer daap dbase dbus decibel dedicated demo divx djvu doc dts dvd dvdread dxr3 encode etcproposals examples exif exiv2 fam fame fbcon ffmpeg fftw filepicker filter fits flac flatfile font-server fontconfig fortran fpx ftp gd gdbm gif gimp gimpprint gitsendemail glib gmedia gmp gnutls gpm gps graphviz gs gtk gtk2 hash howl-compat hyperestraier iconv idn imagemagick imap imlib inifile inkjar inotify ipod iproute2 ipv6 isdnlog javascript jbig jingle jpeg json kde kig-scripting ksolver lcms libcaca libclamav log lzo mbrola md5sum mdnsresponder-compat midi mikmod mips mjpeg mmap mng mnt modplug mozbranding mozsha1 mp3 mp3rtp mp4 mpeg mplayer mssql mtp mudflap multislot multiuser musepack musicbrainz mysql nas ncurses network network_manager newxkb nis njb nls nptl nptlonly nsplugin oav odbc ogg openexr opengl openmp oss pam passwordsave pch pcntl pcre pdf pdflib perl plotutils plugin png povray pppd pvm python qmax qt qt3 quicktime rdesktop readline realmedia reflection restrict-javascript rogue samba sametime sdl session sharedext sid simplexml slp sms sndfile soap sockets softmmu speex spell spl sqlite sqlite3 ssl suhosin svg symlink sysfs sysvipc taglib tcl tcltk tcpd tetex theora threads tidy tiff tk tokenizer tpctl truetype truetype-fonts type1-fonts unicode usb userlocales userpriv utf8 v4l vcd vidix vim-syntax visualization vnc vorbis vorbis-psy wavpack wddx webdav winbind wma wmf wmp wxgtk1 xatrix xattr xcomposite xerces-c xforms xml xmlreader xmlrpc xmlwriter xorg xpm xprint xscreensaver xsl xv xvid xvmc yaz zeroconf zip zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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 evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB en_AU en" USERLAND="GNU" VIDEO_CARDS="radeon" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
*** t3701-add-interactive.sh *** * ok 1: setup (initial) * FAIL 2: status works (initial) git add -i </dev/null >output && grep "+1/-0 *+2/-0 file" output * FAIL 3: diff works (initial) (echo d; echo 1) | git add -i >output && sed -ne "/new file/,/content/p" <output >diff && test_cmp expected diff * FAIL 4: revert works (initial) git add file && (echo r; echo 1) | git add -i && git ls-files >output && ! grep . output * ok 5: setup (commit) * FAIL 6: status works (commit) git add -i </dev/null >output && grep "+1/-0 *+2/-0 file" output * FAIL 7: diff works (commit) (echo d; echo 1) | git add -i >output && sed -ne "/^index/,/content/p" <output >diff && test_cmp expected diff * FAIL 8: revert works (commit) git add file && (echo r; echo 1) | git add -i && git add -i </dev/null >output && grep "unchanged *+3/-0 file" output * FAIL 9: patch does not affect mode git reset --hard && echo content >>file && chmod +x file && printf "n\\ny\\n" | git add -p && git show :file | grep content && git diff file | grep "new mode" * FAIL 10: stage mode but not hunk git reset --hard && echo content >>file && chmod +x file && printf "y\\nn\\n" | git add -p && git diff --cached file | grep "new mode" && git diff file | grep "+content" * failed 8 among 10 test(s) make[1]: *** [t3701-add-interactive.sh] Error 1 make[1]: Leaving directory `/tmp/portage/dev-util/git-1.5.6.1/work/git-1.5.6.1/t' make: *** [test] Error 2 * ERROR: dev-util/git-1.5.6.1 failed. * Call stack: * ebuild.sh, line 49: Called src_test * environment, line 2667: Called die * The specific snippet of code: * emake ${MY_MAKEOPTS} DESTDIR="${D}" prefix=/usr test || die "tests failed" * The die message: * tests failed * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/tmp/portage/dev-util/git-1.5.6.1/temp/build.log'. * The ebuild environment file is located at '/tmp/portage/dev-util/git-1.5.6.1/temp/environment'. Let me know if you want SSH access to the box to debug this. So far the bug has been 100% reproduceable.