Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 214459 - app-admin/eselect-1.0.11-r1 isn't prefix-aware
Summary: app-admin/eselect-1.0.11-r1 isn't prefix-aware
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All IRIX
: High normal
Assignee: Gentoo non-Linux Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-23 23:23 UTC by Stuart Shelton
Modified: 2008-04-02 20:40 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
eselect-1.0.11-r1.patch (eselect-1.0.11-r1.patch,786 bytes, patch)
2008-04-02 16:51 UTC, Stefan Hoelldampf
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stuart Shelton 2008-03-23 23:23:33 UTC
From app-editors/vim-core:

 * To enable command-line completion for vim-core, run:
 * 
 *   eselect bashcomp enable vim-core

 * Calling eselect vi update...
/usr/opt/portage/var/tmp/portage/app-editors/vim-core-7.1.285/temp/environment: /opt/portage/usr/bin/eselect: /bin/bash: bad interpreter: No such file or directory
>>> app-editors/vim-core-7.1.285 merged.


$ eselect bashcomp enable vim
-bash: /opt/portage/usr/bin/eselect: /bin/bash: bad interpreter: No such file or directory

After correcting the 'eselect' script to use "#!/bin/env bash":

$ eselect bashcomp enable eselect
!!! Error: /usr/share/bash-completion/eselect doesn't exist

... so even with the correct interpreter, eselect isn't looking within ${EPREFIX}/usr/share/
Comment 1 Fabian Groffen gentoo-dev 2008-03-23 23:25:14 UTC
feels wrong indeed.... although I'm sure it worked an hour ago for me...  Have to look into it.
Comment 2 Stuart Shelton 2008-03-23 23:29:51 UTC
(however, ESELECT_DATA_PATH within the script does look correct, being set as 'ESELECT_DATA_PATH="/opt/portage/usr/share/eselect/"'...)

Looking more closely, there seems to be a widespread use of '${ROOT}' in the eselect scripts - where I'd expect to see '${PREFIX}'.

Is this an obsolete usage, or should ROOT be set in my environment?
Comment 3 Stefan Hoelldampf 2008-04-02 16:51:47 UTC
Created attachment 148106 [details, diff]
eselect-1.0.11-r1.patch

eselect-1.0.11-r1 is having src_unpack() twice. Unfortunately the first one is calling eprefixify. The attached patch merges both functions
Comment 4 Stuart Shelton 2008-04-02 20:35:23 UTC
Yep - that patch fixed it for me!

(although there doesn't appear to be a completion file for 'vim-core', but there is one for 'vim'... is this a case where a line containing "${PN}" has accidentally been ported from vim to vim-core?)
Comment 5 Fabian Groffen gentoo-dev 2008-04-02 20:40:51 UTC
Ahhh, that is an unfortunate merge-problem, I didn't notice.  (Doing ~48 in half an hour sometimes is too much for me...)

I applied the patch, thanks.

re vim-core/vim: no looks fine, since vim-core is just a shared component between vim and gvim, whereas the former is the only one to be switched for other vi implementations.