Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 17112 - Emerge VIM dies !!! failure unpacking vim-6.1-lang.tar.gz
Summary: Emerge VIM dies !!! failure unpacking vim-6.1-lang.tar.gz
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: Sparc Linux
: High normal (vote)
Assignee: Jared H. Hudson (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-08 18:52 UTC by Joe Kallar (RETIRED)
Modified: 2006-02-04 06:05 UTC (History)
3 users (show)

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


Attachments
proposed patch to fix this bug (vim.eclass_no_nls.patch,317 bytes, patch)
2003-03-11 01:12 UTC, Max Kalika (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joe Kallar (RETIRED) gentoo-dev 2003-03-08 18:52:24 UTC
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"
Comment 1 Chris Russell (RETIRED) gentoo-dev 2003-03-09 05:32:50 UTC
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.
Comment 2 Jason Wever (RETIRED) gentoo-dev 2003-03-09 07:04:43 UTC
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.
Comment 3 Jason Wever (RETIRED) gentoo-dev 2003-03-10 07:13:07 UTC
Added jhhudso@gentoo.org as he's a vim guru as well.
Comment 4 Ryan Phillips (RETIRED) gentoo-dev 2003-03-10 12:08:49 UTC
Jared: Can you take a look at this? 
Comment 5 Joe Kallar (RETIRED) gentoo-dev 2003-03-10 18:54:41 UTC
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 /
Comment 6 Max Kalika (RETIRED) gentoo-dev 2003-03-11 01:12:54 UTC
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
Comment 7 Jared H. Hudson (RETIRED) gentoo-dev 2003-03-12 01:43:44 UTC
I added use nls && unpack ${LANG} to vim.eclass which works for both nls or -nls.
Comment 8 Joe Kallar (RETIRED) gentoo-dev 2003-03-12 23:48:28 UTC
Emerged vim fine. Thanks!