Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 169375 - app-editors/vim-7.0.174 does not install /usr/share/vim/vim70/doc
Summary: app-editors/vim-7.0.174 does not install /usr/share/vim/vim70/doc
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Vim Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-04 22:33 UTC by Daiajo Tibdixious
Modified: 2007-04-10 04:08 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 Daiajo Tibdixious 2007-03-04 22:33:20 UTC
:help stopped working in vim after adding -doc to USE, giving:
E433: No tags file
E149: Sorry, no help for help.txt
I found in the VIM FAQ that there should be a $RUNTIME/doc directory,
where $RUNTIME expands to /usr/share/vim/vim70 inside VIM.
I added doc to package.use for vim:
$ cat /etc/portage/package.use
# hopefully get online help for vim
app-editors/vim doc
--
and emerged VIM to no avail.

I found a workaround:
$ ebuild /usr/portage/app-editors/vim/vim-7.0.174.ebuild unpack
$ cd /var/tmp/portage/app-editors/vim-7.0.174/work
$ mv -v runtime/doc /usr/share/vim/vim70
after which :help does work.

emerge should add this directory by itself and doesn't.

Reproducible: Always

Steps to Reproduce:
1. $ rm -R /usr/share/vim/vim70/doc
2. $ emerge vim
3. $ ls /usr/share/vim/vim70/doc

Actual Results:  
ls: cannot access /usr/share/vim/vim70/doc: No such file or directory

Expected Results:  
arabic.txt       if_perl.txt   pi_tar.txt      usr_11.txt          vimdiff-pl.1
autocmd.txt      if_pyth.txt   pi_vimball.txt  usr_12.txt          vimdiff-pl.UTF-8.1
change.txt       if_ruby.txt   pi_zip.txt      usr_20.txt          vimdiff-ru.1
cmdline.txt      if_sniff.txt  print.txt       usr_21.txt          vimdiff-ru.UTF-8.1
debugger.txt     if_tcl.txt    quickfix.txt    usr_22.txt          vim-fr.1
debug.txt        indent.txt    quickref.txt    usr_23.txt          vim-fr.UTF-8.1
develop.txt      index.txt     quotes.txt      usr_24.txt          vim-it.1
diff.txt         insert.txt    recover.txt     usr_25.txt          vim-it.UTF-8.1
digraph.txt      intro.txt     remote.txt      usr_26.txt          vim.man
doctags.c        Makefile      repeat.txt      usr_27.txt          vim.man.info
editing.txt      makehtml.awk  rileft.txt      usr_28.txt          vim-pl.1
eval.txt         maketags.awk  russian.txt     usr_29.txt          vim-pl.UTF-8.1
evim.1           map.txt       scroll.txt      usr_30.txt          vim-ru.1
evim-fr.1        mbyte.txt     sign.txt        usr_31.txt          vim-ru.UTF-8.1
evim-fr.UTF-8.1  message.txt   spell.txt       usr_32.txt          vimtutor.1
evim-it.1        mlang.txt     sponsor.txt     usr_40.txt          vimtutor-fr.1
evim-it.UTF-8.1  motion.txt    sql.txt         usr_41.txt          vimtutor-fr.UTF-8.1
evim-pl.1        netbeans.txt  starting.txt    usr_42.txt          vimtutor-it.1
evim-pl.UTF-8.1  options.txt   syntax.txt      usr_43.txt          vimtutor-it.UTF-8.1
evim-ru.1        os_390.txt    tabpage.txt     usr_44.txt          vimtutor.man
evim-ru.UTF-8.1  os_amiga.txt  tags            usr_45.txt          vimtutor-pl.1
farsi.txt        os_beos.txt   tagsrch.txt     usr_90.txt          vimtutor-pl.UTF-8.1
filetype.txt     os_dos.txt    term.txt        usr_toc.txt         vimtutor-ru.1
fold.txt         os_mac.txt    tips.txt        various.txt         vimtutor-ru.UTF-8.1
getscript.txt    os_mint.txt   todo.txt        version4.txt        visual.txt
gui.txt          os_msdos.txt  uganda.txt      version5.txt        windows.txt
gui_w16.txt      os_os2.txt    undo.txt        version6.txt        workshop.txt
gui_w32.txt      os_qnx.txt    usr_01.txt      version7.txt        xxd.1
gui_x11.txt      os_risc.txt   usr_02.txt      vi_diff.txt         xxd-fr.1
hangulin.txt     os_unix.txt   usr_03.txt      vim.1               xxd-fr.UTF-8.1
hebrew.txt       os_vms.txt    usr_04.txt      vim2html.pl         xxd-it.1
help.txt         os_win32.txt  usr_05.txt      vimdiff.1           xxd-it.UTF-8.1
help.txt.info    pattern.txt   usr_06.txt      vimdiff-fr.1        xxd.man
howto.txt        pi_gzip.txt   usr_07.txt      vimdiff-fr.UTF-8.1  xxd-pl.1
if_cscop.txt     pi_netrw.txt  usr_08.txt      vimdiff-it.1        xxd-pl.UTF-8.1
if_mzsch.txt     pi_paren.txt  usr_09.txt      vimdiff-it.UTF-8.1  xxd-ru.1
if_ole.txt       pi_spec.txt   usr_10.txt      vimdiff.man         xxd-ru.UTF-8.1

The VIM elog text all have
--
WARN: postinst

Note that the English word lists are no longer installed by
default.
--
$  emerge --info
Portage 2.1.2-r9 (default-linux/amd64/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.18-gentoo-r6 x86_64)
=================================================================
System uname: 2.6.18-gentoo-r6 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System release 1.12.9
Timestamp of tree: Sun, 04 Mar 2007 04:01:01 +0000
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
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
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US"
LC_ALL="en_US"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d alsa amd64 avi berkdb bitmap-fonts cairo cdr cli cracklib crypt dbus directfb dri dts dvd dvdr dvdread eds emboss encode esd fam fbcon firefox fortran gdbm gif gpm gstreamer gtk gtk2 hal iconv ipv6 isdnlog java javascript jpeg kde lesstif libg++ live livecd mad matroska midi mikmod mmx2 motif mp3 mpeg multislot musepack musicbrainz ncurses nls nptl nptlonly ogg oggvorbis opengl pam pcre pdf perl png ppds pppd python qt qt3 qt4 quicktime readline reflection sdl session spell spl ssl tcpd theora truetype truetype-fonts type1-fonts unicode usb vcd vim-with-x vorbis xanim xinerama xml xorg xv zlib" ALSA_CARDS="via82xx" 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="radeon vesa fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Daiajo Tibdixious 2007-03-04 22:39:21 UTC
There is a typo in the work around, also the now broken unpack should be removed:
$ ebuild /usr/portage/app-editors/vim/vim-7.0.174.ebuild unpack
$ cd /var/tmp/portage/app-editors/vim-7.0.174/work/vim7
$ mv -v runtime/doc /usr/share/vim/vim70
$ cd /var/tmp/portage/app-editors
$ rm -R vim-7.0.174
Comment 2 Mike Kelly (RETIRED) gentoo-dev 2007-03-05 22:18:29 UTC
That directory is installed by the app-editors/vim-core package, not by app-editors/vim. Could you try installing vim-core again and see if you're still having this problem? Also, could you show what use flags vim and vim-core are currently being installed with? (e.g. the output of emerge -p vim vim-core).
Comment 3 Daiajo Tibdixious 2007-03-06 02:35:52 UTC
$ emerge -pv vim vim-core

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] app-editors/vim-7.0.174  USE="gpm nls perl python vim-with-x -acl -bash-completion -cscope -minimal -ruby -vim-pager" 0 kB
[ebuild   R   ] app-editors/vim-core-7.0.174  USE="livecd nls -acl -bash-completion" 0 kB

Total: 2 packages (2 reinstalls), Size of downloads: 0 kB
--
$ rm -R /usr/share/vim/vim70/doc
$ emerge vim-core
(output too long to include, will attach log if wanted)
$ ls /usr/share/vim/vim70/doc
ls: cannot access /usr/share/vim/vim70/doc: No such file or directory
--
The doc directory is in both vim and vim-core.
Comment 4 Mike Kelly (RETIRED) gentoo-dev 2007-04-10 04:08:21 UTC
(In reply to comment #3)
> [ebuild   R   ] app-editors/vim-core-7.0.174  USE="livecd nls -acl
> -bash-completion" 0 kB

Ahh, now I see. You're using the "livecd" USE flag. For vim-core, that flag is specifically used to NOT install the help files, and to not pull in the app-vim/gentoo-syntax extra syntax files package (in the interest of reducing size the size of the livecd image). See Bug #65144.

From /usr/portage/profiles/use.desc:

livecd - !!internal use only!! DO NOT SET THIS FLAG YOURSELF!, used during livecd building.

So, don't set the livecd flag for vim-core and you'll be fine. If you are trying to build a livecd, then apparently you should be able to stick an /etc/portage/package.use in your build chroot to override the livecd USE flag for app-editors/vim-core, though your mileage may vary.

> The doc directory is in both vim and vim-core.

Yes, that's because they use the same source package, but that isn't what is at issue here.