File 4d9e51f6-fix-make-uninstall.patch of Package libvirt.1301
commit 4d9e51f6332037284dfdc3afe8d3d6ccedf17b1a
Author: Dave Allan <dallan@redhat.com>
Date: Fri Dec 9 15:58:32 2011 -0500
Fix make uninstall
Make uninstall currently fails with the following message:
rmdir /etc/sasl2/
rmdir: failed to remove `/etc/sasl2/': Directory not empty
That's fine (correct in fact) so force the command to return success
with || :
Index: libvirt-0.9.6/daemon/Makefile.am
===================================================================
--- libvirt-0.9.6.orig/daemon/Makefile.am
+++ libvirt-0.9.6/daemon/Makefile.am
@@ -314,7 +314,7 @@ install-data-sasl:
uninstall-data-sasl:
rm -f $(DESTDIR)$(sysconfdir)/sasl2/libvirt.conf
- rmdir $(DESTDIR)$(sysconfdir)/sasl2/
+ rmdir $(DESTDIR)$(sysconfdir)/sasl2/ || :
else
install-data-sasl:
uninstall-data-sasl: