Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 293725 - emerge locks up during vim update
Summary: emerge locks up during vim update
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-19 12:25 UTC by pavel sanda
Modified: 2009-11-29 08:05 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pavel sanda 2009-11-19 12:25:11 UTC
for some reason i needed to have vim-6.4 on my box until now. when i try to update to vim-7.2 emerge freeze. the freeze happens in ebuild.sh and when i run emerge in debug mode i get endless loop of:

++ case "${ver_str:0:1}" in
++ result[$result_idx]=7
++ ver_str=7.0.109
++ result_idx=6617
++ [[ -n 7.0.109 ]]
++ case "${ver_str:0:1}" in
....

grep points me towards versionator.eclass.

this is probably by newer eclasses and very old vim ebuild used to unmerge. is there any way out?

Reproducible: Always

Steps to Reproduce:




Portage 2.1.6.13 (default/linux/x86/10.0/desktop, gcc-4.1.2, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r6 i686)
=================================================================
System uname: Linux-2.6.30-gentoo-r6-i686-Intel-R-_Pentium-R-_4_CPU_3.00GHz-with-glibc2.0
Timestamp of tree: Wed, 18 Nov 2009 00:00:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:     4.0_p28
dev-java/java-config: 1.3.7, 2.1.8-r1
dev-lang/python:     2.5.4-r3
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.4.6-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
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.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"           
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.sh.cvut.cz/MIRRORS/gentoo/ http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="cs_CZ"                    
LDFLAGS="-Wl,-O1"               
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="/usr/portage/local/layman/sunrise /usr/portage/local/layman/enlightenment /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acpi alsa berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups dbus djvu dri dts dvd dvdr eds emboss encode evo fam firefox flac fortran gdbm gif gpm gstreamer hal iconv ipv6 jpeg ldap libnotify mad mikmod modules mp3 mp4 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppds pppd python qt qt3support qt4 quicktime readline reflection sdl session spell spl ssl startup-notification svg sysfs tcpd thunar tiff truetype unicode usb vorbis win32codecs x264 x86 xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="i810 vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 pavel sanda 2009-11-19 12:27:25 UTC
in particular the freeze point is inside cleaning of vim-core-6.4
Comment 2 pavel sanda 2009-11-19 13:12:09 UTC
perhaps better output log from emerge debug:
+ ebuild_phase_with_hooks pkg_postrm
+ local x phase_name=pkg_postrm
+ '[' -n postrm ']'
+ rm -f /var/tmp/binpkgs/app-editors/vim-core-6.4/temp/logging/postrm
+ for x in '{pre_,,post_}${phase_name}'
+ ebuild_phase pre_pkg_postrm
+ declare -F pre_pkg_postrm
+ for x in '{pre_,,post_}${phase_name}'
+ ebuild_phase pkg_postrm
+ declare -F pkg_postrm
+ qa_call pkg_postrm
++ shopt
+ local 'shopts=autocd          off
cdable_vars     off
cdspell         off
checkhash       off
checkjobs       off
checkwinsize    off
cmdhist         on
compat31        off
compat32        off
dirspell        off
dotglob         off
execfail        off
expand_aliases  on
extdebug        on
extglob         off
extquote        on
failglob        off
force_fignore   on
globstar        off
gnu_errfmt      off
histappend      off
histreedit      off
histverify      off
hostcomplete    on
huponexit       off
interactive_comments    on
lithist         off
login_shell     off
mailwarn        off
no_empty_cmd_completion off
nocaseglob      off
nocasematch     off
nullglob        off
progcomp        on
promptvars      on
restricted_shell        off
shift_verbose   off
sourcepath      on
xpg_echo        off' 'OLDIFS=   
'
+ local retval
+ pkg_postrm
+ vim_pkg_postrm
+ update_vim_helptags
+ local vimfiles vim d s
+ vimfiles=//usr/share/vim/vimfiles
+ [[ vim-core != vim-core ]]
+ [[ -z '' ]]
+ for d in '"${ROOT}"/usr/share/vim/vim[0-9]*'
+ [[ -d //usr/share/vim/vim72/doc ]]
+ find //usr/share/vim/vim72/doc -name '*.txt' -type l
+ read s
++ readlink //usr/share/vim/vim72/doc/gentoo-syntax.txt
+ [[ //usr/share/vim/vimfiles/doc/gentoo-syntax.txt = //usr/share/vim/vimfiles/* ]]
+ rm -f //usr/share/vim/vim72/doc/gentoo-syntax.txt
+ read s
+ [[ -f //usr/share/vim/vim72/doc/tags ]]
++ find //usr/share/vim/vim72
++ wc -l
++ tr -d ' '
+ [[ 1482 = 3 ]]
+ [[ -d //usr/share/vim/vimfiles/doc ]]
+ ln -s //usr/share/vim/vimfiles/doc/gentoo-syntax.txt //usr/share/vim/vim72/doc
+ [[ -n '' ]]
+ update_vim_symlinks
+ local f syms
+ version_is_at_least 7.0.109
+ local want_s=7.0.109 have_s=6.4 r
+ version_compare 7.0.109 6.4
+ local ver_a=7.0.109 ver_b=6.4 parts_a parts_b cur_idx_a=0 cur_idx_b=0
+ parts_a=($(get_all_version_components "${ver_a}" ))
++ get_all_version_components 7.0.109
++ local ver_str=7.0.109 result result_idx=0
++ result=()
++ [[ '' == \7\.\0\.\1\0\9 ]]
++ export VERSIONATOR_CACHE_VER_STR=7.0.109
++ VERSIONATOR_CACHE_VER_STR=7.0.109
++ [[ -n 7.0.109 ]]
++ case "${ver_str:0:1}" in
++ result[$result_idx]=7
++ ver_str=7.0.109
++ result_idx=1
++ [[ -n 7.0.109 ]]
++ case "${ver_str:0:1}" in
++ result[$result_idx]=7
++ ver_str=7.0.109
++ result_idx=2
++ [[ -n 7.0.109 ]]
...
Comment 3 Patrick Lauer gentoo-dev 2009-11-19 17:15:32 UTC
does emerge -C vim work?
Comment 4 pavel sanda 2009-11-19 20:32:53 UTC
no, the log above is from --unmerge.
Comment 5 Zac Medico gentoo-dev 2009-11-28 02:44:43 UTC
Lots of people have reported this before. Here's the solution:

  rm /var/db/pkg/app-editors/vim-core-6.4/environment.bz2
Comment 6 pavel sanda 2009-11-29 08:05:05 UTC
> rm /var/db/pkg/app-editors/vim-core-6.4/environment.bz2

sorry i couldn't wait so long for vim become usable on my system ;)
i 'fixed' it a while ago by manual removing files and records in portage tree...
thanks anyway.