commit:     fb98869326dba24d16346ead4f97551673b2b4d1
Author:     Michal Privoznik <mprivozn <AT> redhat <DOT> com>
AuthorDate: Thu Apr 22 13:08:02 2021 +0000
Commit:     Matthias Maier <tamiko <AT> gentoo <DOT> org>
CommitDate: Thu Apr 22 13:39:29 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb988693

app-emulation/libvirt: Update bash-completion script path

Previously, the bash-completion script was living in the source
directory and during src_install() it was copied over into the
install image and symlinks were created for virsh and virt-admin
binaries. But with libvirt commit v7.2.0-336-gcf66ee8ddc this has
changed and each binary has its own completion script generated
during compile phase. This means that we have to update our paths
where we're getting the scripts from.

Closes: https://github.com/gentoo/gentoo/pull/20499
Signed-off-by: Michal Privoznik <mprivozn <AT> redhat.com>
Signed-off-by: Matthias Maier <tamiko <AT> gentoo.org>

 app-emulation/libvirt/libvirt-9999.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/app-emulation/libvirt/libvirt-9999.ebuild 
b/app-emulation/libvirt/libvirt-9999.ebuild
index 586aec96cbd..769f0210643 100644
--- a/app-emulation/libvirt/libvirt-9999.ebuild
+++ b/app-emulation/libvirt/libvirt-9999.ebuild
@@ -293,8 +293,8 @@ src_install() {
        rm -rf "${D}"/var
        rm -rf "${D}"/run
 
-       newbashcomp "${S}/tools/bash-completion/vsh" virsh
-       bashcomp_alias virsh virt-admin
+       newbashcomp "${BUILD_DIR}/tools/bash-completion/virsh" virsh
+       newbashcomp "${BUILD_DIR}/tools/bash-completion/virt-admin" virt-admin
 
        use libvirtd || return 0
        # From here, only libvirtd-related instructions, be warned!

Reply via email to