]> xenbits.xensource.com Git - libvirt.git/commitdiff
nss: Try harder to uninstall
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 19 Apr 2016 09:08:48 +0000 (11:08 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 20 Apr 2016 15:33:48 +0000 (17:33 +0200)
On BSD we are creating this symlink to libnss_libvirt.so called
nss_libvirt.so. That's just the way it is on BSD. However, when
uninstalling, we try to remove libnss_libvirt.so instead of the
symlink. Moreover, if file we are trying to remove does not exist
we error out instead of ignoring the error.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
tools/Makefile.am

index 560a9a5bc7f6ce7568da22e3d39b49f0585f352b..c474d750cbd51dfe571ca6b893ef252a4f407e39 100644 (file)
@@ -427,7 +427,7 @@ install-exec-hook:
          $(LN_S) libnss_libvirt.so.$(NSS_SO_VER) nss_libvirt.so.$(NSS_SO_VER)
 
 uninstall-local:
-       rm $(DESTDIR)$(libdir)/libnss_libvirt.so.$(NSS_SO_VER)
+       -rm -f $(DESTDIR)$(libdir)/nss_libvirt.so.$(NSS_SO_VER)
 else ! WITH_BSD_NSS
 LIBVIRT_NSS_SYMBOL_FILE = \
        $(srcdir)/nss/libvirt_nss.syms