Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 675730 - app-shells/gentoo-bashcomp-20180302 does not respect EPREFIX
Summary: app-shells/gentoo-bashcomp-20180302 does not respect EPREFIX
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-17 18:35 UTC by Myk Taylor
Modified: 2021-01-11 20:43 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 Myk Taylor 2019-01-17 18:35:45 UTC
The following completion files refer to static paths that don't respect EPREFIX:
- browser-config
- emerge
- revdep-rebuild
- webapp-config

In addition, the following completion files call $(_portdir) which uses static paths to find the portage dir (and fails to find it in a prefix and so returns a blank string)
- ekeyword
- emerge
- equery
- euse

Prefixing the raw paths in usr/share/bash-completion/helpers/gentoo-common.sh fixes the majority of the issues.

I notice that the 'source' lines that include other files use the correct (static) prefixed paths.  Could a similar technique be used to fix the remaining paths?  Just adding $EPREFIX to the paths might not work since the files may be sourced before that variable is set (or EPREFIX might not even be set in the environment.  It's not set in startprefix).
Comment 1 Fabian Groffen gentoo-dev 2021-01-11 20:43:26 UTC
How about 20190211?