[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Upgrade Proceedure


  • To: "Petersson, Mats" <Mats.Petersson@xxxxxxx>
  • From: Nico Kadel-Garcia <nkadel@xxxxxxxxx>
  • Date: Tue, 15 May 2007 15:21:33 +0100
  • Cc: Mike Wright <xktnniuymlla@xxxxxxxxxxxxxx>, Ian Tobin <itobin@xxxxxxxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Tue, 15 May 2007 07:20:17 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=jWr2ZvevXeAOT3N3snaiC58kWTgyE+CfjbMmoiq/n2PnmLxstR0DUstKBxv7EJAs4q6s4RwBXQmf3I7YWFOc4Us0gbR52cDY5f7cHS7Lz+Lw8gcAEHwe3sNPaK04KB0PQUbsIj16BhRF5zp6Kz0GAWI6A4GLA7i0lYLXq7gozmA=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Petersson, Mats wrote:
-----Original Message-----
From: Nico Kadel-Garcia [mailto:nkadel@xxxxxxxxx] Sent: 15 May 2007 14:31
To: Petersson, Mats
Cc: Ian Tobin; Mike Wright; xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Upgrade Proceedure

Petersson, Mats wrote:
-----Original Message-----
From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx [mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Nico Kadel-Garcia
Sent: 15 May 2007 10:13
To: Ian Tobin
Cc: Mike Wright; xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Upgrade Proceedure

Ian Tobin wrote:
Hi Ian, Mats,

Thought I'd chime in here because I got bitten using the
make uninstall
script.

Within the Makefile uninstall section is this line:

     rm -rf $(D)/boot/*xen*

This will remove every file in your boot directory that
contains the
string "xen", so things like vixen or roxen will also
match. More
relevant though is that it will also remove previous
versions of xen.
If you are no longer interested in them, or don't care that
you may have
to rebuild them this is not a problem. If it matters that
you retain
prior kernels you may want to comment out that line in the
Makefile.  In
the current unstable that's somewhere around line #186.

Just a heads up ;)

Mike Wright :m)
This is *precisely* why I like RPM's and apt-based package managers: a lot of installers and uninstallers are pretty darned bad. Have you submitted a bug for this?
Actually, the bug is that there's no uninstall script,
rather than that
the "make uninstall" removes the wrong stuff... The uninstall script
should be generated by the install script to "remove
exactly the files
installed and nothing else". This is the REAL bug. Then we could use
this install script to do "make uninstall" too.
And the uninstall script should not be part of the Makefile used to install the software precisely..... why?

Because you may want to install/uninstall on a machine that doesn't
(need to) have the source-code (or corresponding Makefile).
That's what package management tools are for. If values are being set in the Makefile (such as the root directory!), then the uninstaller has to built by the Makefile and itself installed (conceivable!) and summoned as part of the uninstall procedure.
Of course, anyone who wishes to un-install can download the source-code,
but it's a completley unneccessary step to instal the source code on 15
machines just because you wanted to REMOVE the resulting files from that
source code, don't you think?
The INSTALL script you mention works without the build directory in place? That's a bit.... odd.

If you're not familiar with it, I'd like to point out that there is a
INSTALL script in the distribution directory which can be used to
install the resulting product of the make (which is what I described
earlier in this thread).
I use Makefiles and RPM's to support full-blown package management, version management, conflict reports, etc., etc., etc. Writing all of that into an installer or uniinstaller script is quite a lot of work.

I recognize that not every OS has this kind of package management, and prefer to build on the fly.

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.