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

Bug 675730

Summary: app-shells/gentoo-bashcomp-20180302 does not respect EPREFIX
Product: Gentoo/Alt Reporter: Myk Taylor <myk002>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: RESOLVED NEEDINFO    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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?