Emerge VIM dies. I emerged vim on an x86 box at the same time with no problems. Reproducible: Always Steps to Reproduce: 1.Emerge vim 2. 3. Actual Results: ultra root # emerge vim Calculating dependencies ...done! >>> emerge (1 of 2) app-editors/vim-core-6.1-r4 to / >>> md5 ;-) vim-6.1.tar.bz2 >>> md5 ;-) vimpatch-1-300.tar.bz2 >>> Unpacking source... >>> Unpacking vim-6.1.tar.bz2 to /root/tmp/portage/vim-core-6.1-r4/work >>> Unpacking vim-6.1-lang.tar.gz to /root/tmp/portage/vim-core-6.1-r4/work tar (child): /usr/portage/distfiles/vim-6.1-lang.tar.gz: Cannot open: No such file or directory tar (child): Error is not recoverable: exiting now tar: Child returned status 2 tar: Error exit delayed from previous errors !!! ERROR: app-editors/vim-core-6.1-r4 failed. !!! Function unpack, Line 25, Exitcode 2 !!! failure unpacking vim-6.1-lang.tar.gz Expected Results: Emerge should have emerged vim Disk sparc is not an issue: ultra root # df Filesystem 1K-blocks Used Available Use% Mounted on /dev/sdb1 8694232 1371916 6880668 17% / tmpfs 2048 248 1800 13% /mnt/.init.d /dev/sda1 2265282 2016374 203604 91% /mnt/solaris /dev/sda8 5910376 53625 5797648 1% /mnt/solaris/home tmpfs 442632 0 442632 0% /dev/shm I have deleted vim from: /usr/protage/distfiles/ /var/tmp/portage/ and even set the temp portage directory to: /root/tmp. None of the above worked. ultra root # emerge info Portage 2.0.47-r8 (default-sparc64-1.4, gcc-3.2.1, glibc-2.3.1-r3) ================================================================= System uname: 2.4.20-sparc-r3 sparc64 sun4u GENTOO_MIRRORS=" ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo/ http://csociety-ftp.ecn.purdue.edu/pub/gentoo/" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/root/tmp" PORTDIR_OVERLAY="" USE="sparc arts apm avi encode esd gtk gnome imlib libwww mikmod motif oggvorbis oss spell xv xmms zlib gdbm readline pam -nls berkdb crypt cups dga directfb doc fbcon gif java jpeg kerberos mozilla moznomail mpeg mysql ncurses opengl pdflib perl png python qt kde quicktime samba ssl sdl slang svga tcpd tiff truetype X xml xml2" COMPILER="gcc3" CHOST="sparc-unknown-linux-gnu" CFLAGS="-mcpu=v8 -mtune=v9 -O2 -pipe" CXXFLAGS="-mcpu=v8 -mtune=v9 -O2 -pipe" ACCEPT_KEYWORDS="sparc" MAKEOPTS="-j3" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache" I have also tried the other CXXFLAG in my make.conf: CXXFLAGS="${CFLAGS}" #CXXFLAGS="-O3 -pipe"
I just tried merging vim on my ultra1, no problems at all. [ vim-core-6.1-r4 and vim-6.1-r19 ] However, I already merged vim some time ago on my x86 machine so I already had a vim-6.1-lang.tar.gz in distfiles (which I share via NFS amongst all my machines) if you run `emerge -f vim` does it attempt to download it? (to test, I renamed my vim-6.1-lang.tar.gz and ran `emerge -f vim` on my other sparc (has no vim) and it went and fetched ftp://ftp.vim.org/pub/vim/extra/vim-6.1-lang.tar.gz to distfiles just fine.) All I can suggest at this stage it to `emerge sync` and try again. Let us know how you progress.
Did some playing around and apparently if you have -nls in your USE line in /etc/make.conf it will keep vim-6.1-lang.tar.gz from being downloaded. The ebuild and eclass are setup to use nls as optional until the actual unpack stage, where it doesn't appear to be so optional. Adding rphillips@gentoo.org to the CC field as he authored the eclass.
Added jhhudso@gentoo.org as he's a vim guru as well.
Jared: Can you take a look at this?
I tried emerge -f vim per your suggestion. Any thing else that I should do? ultra root # emerge -f vim Calculating dependencies ...done! >>> emerge (1 of 2) app-editors/vim-core-6.1-r4 to / >>> emerge (2 of 2) app-editors/vim-6.1-r19 to /
Created attachment 9240 [details, diff] proposed patch to fix this bug here's a simple patch to vim.eclass that fixes this problem: it will only try to extract vim-${version}-lang.tgz if nls is in USE flags
I added use nls && unpack ${LANG} to vim.eclass which works for both nls or -nls.
Emerged vim fine. Thanks!