Other Help Topics :: UCI question



I converted vim_7.1.unc over to vim_7.1.uci, and guess I need to create links or export paths so that files it expects in /usr are found in /opt (such as the help menus & spellcheck.  Everything works if I copy /opt/vim_7.1/usr/local/share/vim/vim71/  to /usr.  What is the best (or standard) way to do this.  Thanks

EDIT: For now, I just created a link, which works

I think it's better to recompile since UCI shouldn't affect anything outside /opt or /home. I thought your vim extension was a UCI. I have vim patched through 140-something (the beauty of FreeBSD ports -- I got every available patch), iirc, installed on /opt. No need to recompile if you want me to submit it, but it's on a hard drive currently not in use. Would only need one good reason to put it back in a computer.

EDIT: Okay, I just looked and yours is UNC. I haven't even considered converting between extensions except from DSL to UNC and from tar.gz to UCI. I think it would be kind of messy since the idea is to keep it contained in /opt. My offer stands. :-)

EDIT 2: Now over 240 patches for vim 7.1. Some are pretty noteworthy (memory leaks, crashing, various bugs, etc.), some don't pertain to Linux.
ftp://ftp.vim.org/pub/vim/patches/7.1/README

Your call....I've got it working as a UCI, since apparently UNC's are going out of favor.  I haven't run into any "bug" problems with my own useage.  I created  one link just to use the spellcheck and help menu's; don't think that's overly messy, but I don't want to break any conventions.
What did you link? I haven't used your extension, but it should overlay /usr leveraging unionfs. If you added links from /opt to those locations it's still overwriting /usr. No?

Edit: And if it's overwriting /usr, is it doing it now via unionfs or RAM as a dsl would?

Hi jpeters:
Some packages have an '--enable-relocatable' or similar option in the 'configure' script -- I think this allows the executable to be moved around in the filesystem.
However, the 'configure' file in 'vim71/' does not contain such an option.
Since you said that vim can't find, e.g. the help-menu and spellcheck files, and there isn't an option to enable relocation in the 'configure' script, I think the only two options are:
-- Make a symlink from '/opt/vim-7.1/share/vim/vim71/' to '/usr/local/share/vim/vim71/'.
-- Reconfigure and recompile vim.

Personally, I think recompiling is the best way to solve the problem, since it not only eliminates the manual work of making symlinks, etc, it also saves you the trouble of making a 'user.tar.gz' file with the data files (e.g. help-menu files, spellcheck files) that are in '/usr/local/share/vim/vim71/'.

Re: Reconfiguring
Please pardon me for presuming, but here is a sample configuration for 'vim-7.1.uci':
(The options are in the order they are listed in 'configure --help'.)
Code Sample
CFLAGS='-Os' \
./configure \
--prefix=/opt/vim-7.1 \
--sysconfdir=/etc \
--localstatedir=/var \
--enable-gui=gtk \
--disable-acl \
--disable-gpm \
--disable-nls \
--with-x
Just FYI:
My current practice is to put all the options in a script called 'set_[pkg-name].sh' which I can run and then save somewhere.
e.g. 'set_vim71.sh'
Obligatory question:
Does anyone know of a better name than 'set_'?
If so, do let me know.
Thanks!

Next Page...
original here.