From: Ian Campbell Subject: Re: [PATCH] do not remove kernels or modules on uninstall. (Was: Re: make uninstall can delete xen-kernels) Date: Thu, 23 Aug 2012 08:31:45 +0100 Message-ID: <1345707105.12501.38.camel@zakaz.uk.xensource.com> References: <20120822214709.296550@gmx.net> <1345703962.23624.57.camel@dagon.hellion.org.uk> <5035E421020000780008A601@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <5035E421020000780008A601@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: "p.d@gmx.de" , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Thu, 2012-08-23 at 08:04 +0100, Jan Beulich wrote: > >>> Ian Campbell 08/23/12 8:40 AM >>> > >--- a/Makefile Wed Aug 22 17:32:37 2012 +0100 > >+++ b/Makefile Thu Aug 23 07:38:10 2012 +0100 > >@@ -228,8 +228,6 @@ uninstall: > > rm -f $(D)$(SYSCONFIG_DIR)/xendomains > > rm -f $(D)$(SYSCONFIG_DIR)/xencommons > > rm -rf $(D)/var/run/xen* $(D)/var/lib/xen* > >- rm -rf $(D)/boot/*xen* > > But removing this line without replacement isn't right either - we at least > need to undo what "make install" did. That may imply adding an > uninstall-xen sub-target, Right, I totally forgot about the hypervisor itself! Perhaps this target should include a $(MAKE) -C xen uninstall since that is the Makefile which knows how to undo its own install target. > if we don't want to come up with a suitable > pattern to do this here. > > >- rm -rf $(D)/lib/modules/*xen* > > rm -rf $(D)$(LIBDIR)/xen* $(D)$(BINDIR)/lomount > > rm -rf $(D)$(BINDIR)/cpuperf-perfcntr $(D)$(BINDIR)/cpuperf-xen > > rm -rf $(D)$(BINDIR)/xc_shadow > > This may also be needed for the tools - wasn't it that BINDIR, LIBDIR and > the like are now dependent on configure options? Yes, I think you are right here too. I think this needs to be pushed down too. > Similarly I don't the the EFI binaries get properly cleaned up here (and > that also would better be done with a per-subdir uninstall). Right.