commit:     965a6ed9c1a235cf772e0af24aafdf78a6cfcf69
Author:     Matthias Maier <tamiko <AT> gentoo <DOT> org>
AuthorDate: Thu Mar 11 15:07:29 2021 +0000
Commit:     Matthias Maier <tamiko <AT> gentoo <DOT> org>
CommitDate: Thu Mar 11 15:14:23 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=965a6ed9

app-emulation/libvirt: remove rm clause

Closes: https://bugs.gentoo.org/show_bug.cgi?id=775467
Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Matthias Maier <tamiko <AT> gentoo.org>

 app-emulation/libvirt/libvirt-7.1.0.ebuild | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/app-emulation/libvirt/libvirt-7.1.0.ebuild 
b/app-emulation/libvirt/libvirt-7.1.0.ebuild
index 41c7b927525..16755a56b8a 100644
--- a/app-emulation/libvirt/libvirt-7.1.0.ebuild
+++ b/app-emulation/libvirt/libvirt-7.1.0.ebuild
@@ -282,11 +282,15 @@ src_test() {
 src_install() {
        meson_src_install
 
-       # Remove bogus, empty directories. They are either not used, or
-       # libvirtd is able to create them on demand
-       rm -r "${D}"/etc/sysconfig || die
-       rm -r "${D}"/var || die
-       rm -r "${D}"/run || die
+       # Depending on configuration option, libvirt will create some bogus
+       # directoreis. They are either not used, or libvirtd is able to create
+       # them on demand, so let's remove them.
+       #
+       # Note, we are using -f here so that rm does not fail or warn if the
+       # directory is nonexistent.
+       rm -rf "${D}"/etc/sysconfig
+       rm -rf "${D}"/var
+       rm -rf "${D}"/run
 
        # Fix up doc paths for revisions
        if [[ $PV != $PVR ]]; then

Reply via email to