Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/libguestfs/
Date: Sun, 31 Oct 2021 19:21:28
Message-Id: 1635708059.e248001f442fee25f45aa164c0da1cd41b41e882.sam@gentoo
1 commit: e248001f442fee25f45aa164c0da1cd41b41e882
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 31 19:20:59 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 31 19:20:59 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e248001f
7
8 app-emulation/libguestfs: note that guestfs-tools is now needed for tools
9
10 Always show the message rather than conditionally.
11
12 Bug: https://bugs.gentoo.org/789354
13 Signed-off-by: Sam James <sam <AT> gentoo.org>
14
15 ...uestfs-1.46.0-r1.ebuild => libguestfs-1.46.0-r2.ebuild} | 14 +-------------
16 1 file changed, 1 insertion(+), 13 deletions(-)
17
18 diff --git a/app-emulation/libguestfs/libguestfs-1.46.0-r1.ebuild b/app-emulation/libguestfs/libguestfs-1.46.0-r2.ebuild
19 similarity index 90%
20 rename from app-emulation/libguestfs/libguestfs-1.46.0-r1.ebuild
21 rename to app-emulation/libguestfs/libguestfs-1.46.0-r2.ebuild
22 index 657c5c21058..fafb279fa64 100644
23 --- a/app-emulation/libguestfs/libguestfs-1.46.0-r1.ebuild
24 +++ b/app-emulation/libguestfs/libguestfs-1.46.0-r2.ebuild
25 @@ -195,16 +195,6 @@ src_install() {
26 fi
27 }
28
29 -pkg_preinst() {
30 - local libguestfs_depstring="<app-emulation/libguestfs-1.46.0-r1"
31 -
32 - # Did we have a version of libguestfs before the split into guestfs-tools?
33 - # (libguestfs used to install the tools too)
34 - if has_version "${libguestfs_depstring}[ocaml]" || has_version "${libguestfs_depstring}[perl]" ; then
35 - HAD_LIBGUESTFS_WITH_TOOLS=1
36 - fi
37 -}
38 -
39 pkg_postinst() {
40 einfo "Please ensure you are in the 'kvm' group for decent performance!"
41
42 @@ -212,7 +202,5 @@ pkg_postinst() {
43 einfo "virt-p2v NOT installed"
44 fi
45
46 - if [[ ${HAD_LIBGUESTFS_WITH_TOOLS} -eq 1 ]] ; then
47 - ewarn "libguestfs' tools are now packaged as app-emulation/guestfs-tools from 1.46.0 onwards!"
48 - fi
49 + einfo "Note that common tools like virt-resize are now part of app-emulation/guestfs-tools"
50 }