On Monday 24 February 2003 06:30, tvignaud wrote:

>basically, rpm -V <package> should not give you errors but for altered
>config files and the like.
>
>the odds're high you've a local installation problem.
>
>try reinstalling it with --force (or removing it with --nodeps then
>reinstalling it)

Hi,
        I  have done some more investigation on the vim package, and
there is something strange going on with it, or possibly with RPM.
Some expert intervention is needed I think...

# rpm -ivh --force vim-common-6.1-36mdk.i586.rpm
Preparing...                ########################################### [100%]
   1:vim-common             ########################################### [100%]
# ls -l //usr/share/vim/tutor/tutor.vim
ls: //usr/share/vim/tutor/tutor.vim: No such file or directory

So, I use "rpm -Vp" on the package file to see if something is wrong:
(Sorry, it is long...)
# rpm -Vp vim-common-6.1-36mdk.i586.rpm
missing    /usr/share/locale/af/LC_MESSAGES/vim.mo
missing    /usr/share/locale/cs/LC_MESSAGES/vim.mo
missing    /usr/share/locale/de/LC_MESSAGES/vim.mo
missing    /usr/share/locale/es/LC_MESSAGES/vim.mo
missing    /usr/share/locale/fr/LC_MESSAGES/vim.mo
missing    /usr/share/locale/it/LC_MESSAGES/vim.mo
missing    /usr/share/locale/ja/LC_MESSAGES/vim.mo
missing    /usr/share/locale/ko/LC_MESSAGES/vim.mo
missing    /usr/share/locale/pl/LC_MESSAGES/vim.mo
missing    /usr/share/locale/sk/LC_MESSAGES/vim.mo
missing    /usr/share/locale/uk/LC_MESSAGES/vim.mo
missing    /usr/share/locale/zh_CN.UTF-8/LC_MESSAGES/vim.mo
missing    /usr/share/locale/zh_CN/LC_MESSAGES/vim.mo
missing    /usr/share/locale/zh_TW/LC_MESSAGES/vim.mo
missing    /usr/share/vim/lang/menu_af_af.iso_8859-1.vim
missing    /usr/share/vim/lang/menu_af_af.iso_8859-15.vim
missing    /usr/share/vim/lang/menu_af_af.latin1.vim
missing    /usr/share/vim/lang/menu_af_af.utf-8.vim
missing    /usr/share/vim/lang/menu_chinese(gb)_gb.936.vim
missing    /usr/share/vim/lang/menu_chinese(taiwan)_taiwan.950.vim
missing    /usr/share/vim/lang/menu_chinese_gb.936.vim
missing    /usr/share/vim/lang/menu_chinese_taiwan.950.vim
missing    /usr/share/vim/lang/menu_cs_cz.iso_8859-1.vim
missing    /usr/share/vim/lang/menu_cs_cz.iso_8859-2.vim
missing    /usr/share/vim/lang/menu_czech_czech_republic.1250.vim
missing    /usr/share/vim/lang/menu_czech_czech_republic.1252.vim
missing    /usr/share/vim/lang/menu_czech_czech_republic.ascii.vim
missing    /usr/share/vim/lang/menu_de_de.iso_8859-1.vim
missing    /usr/share/vim/lang/menu_de_de.iso_8859-15.vim
missing    /usr/share/vim/lang/menu_de_de.latin1.vim
missing    /usr/share/vim/lang/menu_de_de.utf-8.vim
missing    /usr/share/vim/lang/menu_es_es.iso_8859-1.vim
missing    /usr/share/vim/lang/menu_es_es.iso_8859-15.vim
missing    /usr/share/vim/lang/menu_es_es.latin1.vim
missing    /usr/share/vim/lang/menu_es_es.utf-8.vim
missing    /usr/share/vim/lang/menu_fr_fr.iso_8859-1.vim
missing    /usr/share/vim/lang/menu_fr_fr.iso_8859-15.vim
missing    /usr/share/vim/lang/menu_fr_fr.latin1.vim
missing    /usr/share/vim/lang/menu_fr_fr.utf-8.vim
missing    /usr/share/vim/lang/menu_french_france.1252.vim
missing    /usr/share/vim/lang/menu_german_germany.1252.vim
missing    /usr/share/vim/lang/menu_hu_hu.iso_8859-2.vim
missing    /usr/share/vim/lang/menu_it_it.iso_8859-1.vim
missing    /usr/share/vim/lang/menu_it_it.iso_8859-15.vim
missing    /usr/share/vim/lang/menu_it_it.latin1.vim
missing    /usr/share/vim/lang/menu_it_it.utf-8.vim
missing    /usr/share/vim/lang/menu_ja_jp.euc-jp.vim
missing    /usr/share/vim/lang/menu_ja_jp.eucjp.vim
missing    /usr/share/vim/lang/menu_ja_jp.ujis.vim
missing    /usr/share/vim/lang/menu_ja_jp.utf-8.vim
missing    /usr/share/vim/lang/menu_japanese_japan.932.vim
missing    /usr/share/vim/lang/menu_ko_kr.euckr.vim
missing    /usr/share/vim/lang/menu_nl_nl.iso_8859-1.vim
missing    /usr/share/vim/lang/menu_nl_nl.iso_8859-15.vim
missing    /usr/share/vim/lang/menu_nl_nl.latin1.vim
missing    /usr/share/vim/lang/menu_nl_nl.utf-8.vim
missing    /usr/share/vim/lang/menu_pl_pl.iso_8859-2.vim
missing    /usr/share/vim/lang/menu_polish_poland.1250.vim
missing    /usr/share/vim/lang/menu_sk_sk.iso_8859-2.vim
missing    /usr/share/vim/lang/menu_sk_sk.vim
missing    /usr/share/vim/lang/menu_slovak_slovak_republic.1250.vim
missing    /usr/share/vim/lang/menu_spanish_spain.850.vim
missing    /usr/share/vim/lang/menu_uk_ua.koi8-u.vim
missing    /usr/share/vim/lang/menu_zh_cn.gb2312.vim
missing    /usr/share/vim/lang/menu_zh_cn.utf-8.vim
missing    /usr/share/vim/lang/menu_zh_tw.big5.vim
missing    /usr/share/vim/tutor/tutor.br
missing    /usr/share/vim/tutor/tutor.de
missing    /usr/share/vim/tutor/tutor.es
missing    /usr/share/vim/tutor/tutor.fr
missing    /usr/share/vim/tutor/tutor.gr
missing    /usr/share/vim/tutor/tutor.gr.cp737
missing    /usr/share/vim/tutor/tutor.it
missing    /usr/share/vim/tutor/tutor.ja.euc
missing    /usr/share/vim/tutor/tutor.ja.sjis
missing    /usr/share/vim/tutor/tutor.pl
missing    /usr/share/vim/tutor/tutor.pl.cp1250
missing    /usr/share/vim/tutor/tutor.ru
missing    /usr/share/vim/tutor/tutor.vim
missing    /usr/share/vim/tutor/tutor.zh.big5
missing    /usr/share/vim/tutor/tutor.zh.euc

SO the package seems to miss many files...
I check for several of them (just at random...)
and they are not present on the filesystem...

# ls /usr/share/vim/tutor/tutor.fr /usr/share/vim/tutor/tutor.vim
ls: /usr/share/vim/tutor/tutor.fr: No such file or directory
ls: /usr/share/vim/tutor/tutor.vim: No such file or directory


So... I make the rpm into a cpio:

# rpm2cpio vim-common-6.1-36mdk.i586.rpm > vim-common-6.1-36mdk.i586.cpio
# cpio -i --list *tutor.vim < vim-common-6.1-36mdk.i586.cpio
./usr/share/vim/tutor/tutor.vim
16851 blocks

So the file seems present in the cpio archive???

Next I cross the fingers and try re-install from the cpio
(not that I'm worried, I remember when rpm was broken, so
one had to back-grade rpm, and install it with rpm2cpio and 
cpio)

# cpio -i < root/test/vim-common-6.1-36mdk.i586.cpio

And every file was "not created: newer or same age version exists"
Except: The files that rpm -Vp listed above (and some localization files)


So now, all of the files are present, and vimtutor works.

It seems very strange.  Perhaps a RPM problem?  I don't know.

Thanks for your help!

Reply via email to