Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 187449

Summary: vim.eclass is clobbering user eselect vi choice (needs --if-unset)
Product: Gentoo Linux Reporter: Brian Carper <cow>
Component: EclassesAssignee: Vim Maintainers <vim>
Status: RESOLVED FIXED    
Severity: normal CC: gengor, hyedad
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Fix eselect usage in vim.eclass

Description Brian Carper 2007-08-02 00:48:58 UTC
An ebuild that uses vim.eclass (e.g. vim-7.0.235.ebuild) clobbers a user's eselected choice of vi clone.  If you have two vi clones installed (say vim and nvi) every time you update one or the other, your eselected vi will change.

If vim.eclass used `eselect vi update --if-unset` instead of `eselect vi update` this wouldn't happen.

Reproducible: Always

Steps to Reproduce:
1. emerge vim
2. emerge nvi
3. eselect vi set nvi
4. emerge vim

Actual Results:  
/usr/bin/vi points to /usr/bin/vim

Expected Results:  
/usr/bin/vi should point to /usr/bin/nvi
Comment 1 Brian Carper 2007-08-02 00:53:10 UTC
Created attachment 126668 [details, diff]
Fix eselect usage in vim.eclass
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-09-05 19:05:28 UTC
*** Bug 191399 has been marked as a duplicate of this bug. ***
Comment 3 Ali Polatel (RETIRED) gentoo-dev 2007-09-05 21:24:42 UTC
Fixed, thanks for reporting ;)