Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 162671 - bash-completion.eclass should provide get_bashcompdir()
Summary: bash-completion.eclass should provide get_bashcompdir()
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Lowest enhancement (vote)
Assignee: Gentoo Shell Tools project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-18 15:47 UTC by Kir Kolyshkin
Modified: 2011-02-09 05:12 UTC (History)
2 users (show)

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 Kir Kolyshkin 2007-01-18 15:47:50 UTC
We use bash-completion eclass in sys-cluster/vzctl ebuild. It provides dobashcompletion() and bash-completion_pkg_postinst() which are very handy.

But now we have changed vzctl build system so we can now enable/disable bash_completion installation, as well as the directory where bash-completion scripts are installed. We still like to use bash-completion_pkg_postinst(), but we need a directory where to install bashcomp scripts to. To my mind, having /usr/share/bash-completion hardcoded in vzctl ebuild is not the best idea.

So, what could be useful in this case is function which will return bash-completion installation dir.
Comment 1 Mike Kelly (RETIRED) gentoo-dev 2007-05-06 23:10:30 UTC
Well, eselect bashcomp is always going to look for these completion scripts in /usr/share/bash-completion unless the user sets EC_BASHCOMP_DIRS to override it. What exactly are you changing in vzctl?
Comment 2 Kir Kolyshkin 2007-05-07 10:15:59 UTC
vzctl's 'make install' installs its bashcomp file into /etc/bash_completion.d/. With Gentoo, I need to install it to /usr/share/bash-completion.

The problem here is I want bash-completion.eclass to provide that path (/usr/share/bash-completion) in some way (say in a variable), so I will not need to hardcode it in vzctl ebuild.

Hope that clarifies things.
Comment 3 Kir Kolyshkin 2007-05-07 10:17:37 UTC
So, instead of using dobashcompletion() from the vzctl.ebuild we want to use vzctl's own 'make install' -- and for that we need to know the path where we should install the bashcomp file to. If bash-completion eclass could provide this path (/usr/share/bash-completion) in some way that'd be great.
Comment 4 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-02-27 05:55:26 UTC
(In reply to comment #3)
> So, instead of using dobashcompletion() from the vzctl.ebuild we want to use
> vzctl's own 'make install' -- and for that we need to know the path where we
> should install the bashcomp file to. If bash-completion eclass could provide
> this path (/usr/share/bash-completion) in some way that'd be great.
> 

Hi,
I'm new to the b-c package and just reviewing the open bugs. If you still would like this done and can provide a patch, I will review it. thanks
Comment 5 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2011-02-09 05:12:51 UTC
Closing just because of no feedback.