Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (6) </ [1] 2 3 4 5 6 ... >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: UCI question< Next Oldest | Next Newest >
jpeters Offline





Group: Members
Posts: 804
Joined: April 2006
Posted: Jan. 28 2008,21:55 QUOTE

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
Back to top
Profile PM 
lucky13 Offline





Group: Members
Posts: 1478
Joined: Feb. 2007
Posted: Jan. 28 2008,23:43 QUOTE

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


--------------
"It felt kind of like having a pitbull terrier on my rear end."
-- meo (copyright(c)2008, all rights reserved)
Back to top
Profile PM WEB 
jpeters Offline





Group: Members
Posts: 804
Joined: April 2006
Posted: Jan. 29 2008,03:53 QUOTE

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.
Back to top
Profile PM 
lucky13 Offline





Group: Members
Posts: 1478
Joined: Feb. 2007
Posted: Jan. 29 2008,05:04 QUOTE

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?


--------------
"It felt kind of like having a pitbull terrier on my rear end."
-- meo (copyright(c)2008, all rights reserved)
Back to top
Profile PM WEB 
stupid_idiot Offline





Group: Members
Posts: 344
Joined: Oct. 2006
Posted: Jan. 29 2008,06:18 QUOTE

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!
Back to top
Profile PM 
25 replies since Jan. 28 2008,21:55 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (6) </ [1] 2 3 4 5 6 ... >/
reply to topic new topic new poll
Quick Reply: UCI question

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code