Created attachment 344834 [details, diff] ebuild patch The bash-completion is installed into /usr/share/bash-completion/completions but should be in /usr/share/bash-completion. eselect bashcomp doesn't work with /usr/share/bash-completion/completions
Comment on attachment 344834 [details, diff] ebuild patch >diff --git a/net-misc/networkmanager/networkmanager-0.9.8.0.ebuild b/net-misc/networkmanager/networkmanager-0.9.8.0.ebuild >index 584aac9..e0a35ba 100644 >--- a/net-misc/networkmanager/networkmanager-0.9.8.0.ebuild >+++ b/net-misc/networkmanager/networkmanager-0.9.8.0.ebuild >@@ -116,6 +116,10 @@ src_prepare() { > # Force use of /run, avoid eautoreconf > sed -e 's:$localstatedir/run/:/run/:' -i configure || die > >+ # Fix completiondir, avoid eautoreconf >+ sed -i 's|^completiondir =.*|completiondir = $(datadir)/bash-completion|' \ >+ cli/completion/Makefile.in || die "sed completiondir failed" >+ > default > } >
/usr/share/bash-completion/completions is a default location for >=bash-completion-2.0. So it's better to patch build system to get completiondir from pkg-config and block <app-shells/bash-completion-1.3-r1 in ebuild. See also: bug 395091
+ 18 May 2013; Pacho Ramos <pacho@gentoo.org> networkmanager-0.9.8.0.ebuild: + Add some fixes to the ebuild and fix bash-completion locations (#465100 by + poncho) +