WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] xen Makefile being nasty with EXTRAVERSION

To: Ian Pratt <Ian.Pratt@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] xen Makefile being nasty with EXTRAVERSION
From: Brian Wolfe <brianw@xxxxxxxxxxxx>
Date: Sat, 23 Oct 2004 08:29:49 -0500
Cc: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>, Nuutti Kotivuori <naked@xxxxxx>, Xen Devel Mailing List <xen-devel@xxxxxxxxxxxxxxxxxxxxx>
Delivery-date: Sat, 23 Oct 2004 14:30:22 +0100
Envelope-to: steven.hand@xxxxxxxxxxxx
In-reply-to: <E1CLJrQ-0001SE-00@xxxxxxxxxxxxxxxxx>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Organization: TerraBox.com Inc.
References: <E1CLJrQ-0001SE-00@xxxxxxxxxxxxxxxxx>
Reply-to: brianw@xxxxxxxxxxxx
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
Ok, after writing this, I decided to add thisheader, warning mini-rant
follows. ;-P

Personally, I compile about 7 or 8 different kernels, with 3 different
unfied diff patches and modules options to completely setup my cluster.
SO, doing it inside make world, is a really ugly option. Hence writing
xenlinuxbuilder.

To be completely honest, I dislike the curent sparse patchfile setup
with a passion. 8-P It's a RPITA to work with when packaging xen for
Debian (or other distros that uses src tree patches for their main
kernels) and for creating multiple kernels using different unified diff
patch files for each kernel. I have to copy the linux source tree 4
times to get a clean patch of xen+distro patches as a unified diff since
debian distributes kernel-source-* with their patches already in it (I'm
certain other distros have their own patches as well) to keep from a:
blowing up the debian source tree (this is partly debian's fault, sinc e
it distributs a patched kernel source instead of pristine that's then
patched to get debian's kernels). 

I understand why it's a sparse patch file, reduces bulk by quite a bit.
But It's darn unfriendly when you want to compile both 2.4 and 2.6
kernels along with your distros patches. 8-P Not to to mention the fact
that it walks ALL over any distro kernel src tree that's been patched
since it replaces a few of the standard distro files outright. 8-P

If you want any part of xenlinuxbuilder for the xen distro, feel free to
grab it. It's GPLd (hell, I'll special license as bsd if necessary).
Same thing with anythign in the debian packaging from debian/*. It's
just another Makefile. The only real debian specific part is the tarball
location for the kernel source and the xen_patch_ver check function.

But please, for the love of my sanity and other distro's (besides
redhat) can we take a really hard look at the patches beyond just the
extraversion being a bummer? :) Like providing a tool with the xen
tarball for creating the kernels? Or even a faster conversion of the
sparse patchfile to a unified diff that can then be applied to separate
kernel trees without linking back into the xen headers? (maybe a bit
more inteligent in my debian packaging on how much of the kernel tree to
unpack, patch, copy, diff, repeat...?) Symlinks of directories can be
SUCH a PITA when patching after xen. As can the complete replacement of
individual files. 8-P

If not, i'll just continue to do the conversion at packaging time and
smile nicely. :) Sometimes a package like xen is worth some extra steps
to get it packaged fo ryour distro.

Sorry for the rant, this was the largest part of packaging xen, getting
the patchfile converted to a diff and playing nice with other patches
without the end user having to think about sparse vs diff ordering and
care. 

 If i'm just being completely boneheaded here, just smack me and send me
back to pascal 101. ;-P If i'm not being a bonehead, I'll start looking
into a more inteligent method of converting things so it's faster and
can be made a part of the xen dist files.

Brian Wolfe

On Sat, 2004-10-23 at 06:15, Ian Pratt wrote:
> > 
> > Yeah, playing with the directory name is gross!
> > 
> > I'm trying out replacing this with:
> >  XENVERSION   ?= -xen
> >  EXTRAVERSION := $(EXTRAVERSION)$(XENVERSION)
> > 
> > I've then changed the repository makefile to override XENVERSION with
> > -xenU or -xen0 as appropriate. If it works as expected I'll check it
> > in. 
> 
> That's going to be a pain to remember to set XENVERSION on the
> command line if we're building directly within the kernel
> directory, which people do all the time (e.g. after changing the
> config on a kernel). I think 'baking' the extraversion into the
> tree via a .extraversion file is the best soloution.
> 
> Ian
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
> Use IT products in your business? Tell us what you think of them. Give us
> Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
> http://productguide.itmanagersjournal.com/guidepromo.tmpl
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/xen-devel



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel