Gentoo Archives: gentoo-commits

From: Matthias Maier <tamiko@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/libvirt/
Date: Thu, 22 Apr 2021 13:41:11
Message-Id: 1619098769.fb98869326dba24d16346ead4f97551673b2b4d1.tamiko@gentoo
1 commit: fb98869326dba24d16346ead4f97551673b2b4d1
2 Author: Michal Privoznik <mprivozn <AT> redhat <DOT> com>
3 AuthorDate: Thu Apr 22 13:08:02 2021 +0000
4 Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 22 13:39:29 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb988693
7
8 app-emulation/libvirt: Update bash-completion script path
9
10 Previously, the bash-completion script was living in the source
11 directory and during src_install() it was copied over into the
12 install image and symlinks were created for virsh and virt-admin
13 binaries. But with libvirt commit v7.2.0-336-gcf66ee8ddc this has
14 changed and each binary has its own completion script generated
15 during compile phase. This means that we have to update our paths
16 where we're getting the scripts from.
17
18 Closes: https://github.com/gentoo/gentoo/pull/20499
19 Signed-off-by: Michal Privoznik <mprivozn <AT> redhat.com>
20 Signed-off-by: Matthias Maier <tamiko <AT> gentoo.org>
21
22 app-emulation/libvirt/libvirt-9999.ebuild | 4 ++--
23 1 file changed, 2 insertions(+), 2 deletions(-)
24
25 diff --git a/app-emulation/libvirt/libvirt-9999.ebuild b/app-emulation/libvirt/libvirt-9999.ebuild
26 index 586aec96cbd..769f0210643 100644
27 --- a/app-emulation/libvirt/libvirt-9999.ebuild
28 +++ b/app-emulation/libvirt/libvirt-9999.ebuild
29 @@ -293,8 +293,8 @@ src_install() {
30 rm -rf "${D}"/var
31 rm -rf "${D}"/run
32
33 - newbashcomp "${S}/tools/bash-completion/vsh" virsh
34 - bashcomp_alias virsh virt-admin
35 + newbashcomp "${BUILD_DIR}/tools/bash-completion/virsh" virsh
36 + newbashcomp "${BUILD_DIR}/tools/bash-completion/virt-admin" virt-admin
37
38 use libvirtd || return 0
39 # From here, only libvirtd-related instructions, be warned!