Skip to contentSkip to conversation

multipath-tools: uninstall libraries correctly

PATCH New Benjamin Marzinski 1 participant 1 message Aug 3, 2009 Device mapper

lore
Share & tools
lore

Benjamin Marzinski

author maintainer
#0 lore raw

PATCH 3/5 multipath-tools: uninstall libraries correctly

The unistall action for checker libraries doesn't work. Also, the uninstall action for the prioritizer libraries runs the risk of uninstalling something that we didn't install. This patch changes them to correctly uninstall the files listed in LIBS.

---
 libmultipath/checkers/Makefile     |    2 +-
 libmultipath/prioritizers/Makefile |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
libmultipath/checkers/Makefile +1 -1
Index: multipath-tools/libmultipath/checkers/Makefile
===================================================================
@@ -27,7 +27,7 @@ install:
 	$(INSTALL_PROGRAM) -m 755 $(LIBS) $(DESTDIR)$(libdir)
 
 uninstall:
-	rm -f $(DESTDIR)$(libdir)/$(LIBS)
+	for file in $(LIBS); do rm -f $(DESTDIR)$(libdir)/$$file; done
 
 clean:
 	rm -f core *.a *.o *.gz *.so
libmultipath/prioritizers/Makefile +1 -1
Index: multipath-tools/libmultipath/prioritizers/Makefile
===================================================================
@@ -28,7 +28,7 @@ install: $(LIBS)
 	$(INSTALL_PROGRAM) -m 755 libprio*.so $(DESTDIR)$(libdir)
 
 uninstall:
-	rm -f $(DESTDIR)$(libdir)/libprio*.so
+	for file in $(LIBS); do rm -f $(DESTDIR)$(libdir)/$$file; done
 
 clean:
 	rm -f core *.a *.o *.gz *.so