Bash completion files are installed in /etc/bash_completion.d directory. Reproducible: Always Steps to Reproduce: 1. emerge =app-emulation/lxc-1.0.4 Actual Results: Bash completion files are installed in /etc/bash_completion.d directory. Expected Results: Bash completion files should be installed in /usr/share/bash-completion directory.
Created attachment 386906 [details, diff] lxc-bashcomp.patch Patch to fix bash completion files installation
Created attachment 386908 [details] lxc-1.0.4.ebuild modified ebuild applying bashcomp patch diff: --- /usr/portage/app-emulation/lxc/lxc-1.0.4.ebuild 2014-06-15 22:29:53.000000000 +0400 +++ /usr/local/portage/app-emulation/lxc/lxc-1.0.4.ebuild 2014-10-18 23:48:54.000000000 +0400 @@ -95,6 +95,8 @@ echo > "${S}/src/python-${PN}/Makefile.am"; fi + epatch ${FILESDIR}/lxc-bashcomp.patch + eautoreconf }
Is this something that needs to be fixed upstream as well?
(In reply to Markos Chandras from comment #3) > Is this something that needs to be fixed upstream as well? IMHO, no, because 'eselect bashcomp' is a feature specific to gentoo (and most likely gentoo-derived distros). I don't know how bash completion configs are handled in other distros, but I assume it's done differently somehow (if it's done at all). But I seldom use other distros lately. I've just checked Debian's 'bash-completion' package, and it looks like directory '/usr/share/bash-completion/completions/' is used there, which doesn't look compatible to Gentoo's layout.
+*lxc-1.0.6-r1 (30 Oct 2014) + + 30 Oct 2014; Justin Lecher <jlec@gentoo.org> +lxc-1.0.6-r1.ebuild, + +files/lxc-1.0.6-bash-completion.patch: + Fix installation of bash-completions, #525808; thanks i.Dark_Templar for the + initial patch +
It's a bit strange; with LXC 1.0.6-r1 on one of my x86_64 nodes, the src_install 'mv' command fails. The command from the ebuild (line 129): mv "${ED}"/$(get_bashcompdir)/${PN} "${ED}"/$(get_bashcompdir)/${PN}-start || die To see what this command attempts to do, I've edited the ebuild and added that command, prefixed with echo. The output and result: mv /var/build/portage/app-emulation/lxc-1.0.6-r0/image///usr/share/bash-completion/lxc /var/build/portage/app-emulation/lxc-1.0.6-r0/image///usr/share/bash-completion/lxc-start mv: cannot stat ‘/var/build/portage/app-emulation/lxc-1.0.6-r0/image///usr/share/bash-completion/lxc’: No such file or directory It builds fine on my other systems so I'm not sure about the cause of this. It might be a local issue, but I don't know where to start looking. For now I've added a modified version with -r0 to my local overlay, but if anyone can provide some hints, that would have my preference.
(In reply to Marckus Knight from comment #6) > It's a bit strange; with LXC 1.0.6-r1 on one of my x86_64 nodes, the > src_install 'mv' command fails. > Could you please provide the full build.log?