Xen - Source?

2009-06-09 Thread Andreas
Hallo everybody!

Xen is distributed with Debian (main)

Seems the source-package doesn't contain the code of the hypervisor.
Also /lib/modules/2.6-686/kernel/arch/xen/i386/mm/hypervisor.c is not
included.

Installing it (make), it downloads the binary of the hypervisor!
Cloning http://xenbits.xensource.com/linux-2.6.18-xen.hg  # (downloading)

So where do I find the source of the xen-Hypervisor (running below the
linux-kernel)? - Or: why could it be distributed with Debian?

thanks a lot,
Andrew


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Xen - Source?

2009-06-09 Thread Michael Shuler
On 06/09/2009 11:49 AM, Andreas wrote:
 Installing it (make), it downloads the binary of the hypervisor!
 Cloning http://xenbits.xensource.com/linux-2.6.18-xen.hg  # 
 (downloading)

This is an incorrect understanding of that download step - it is a
*source* download from the upstream mercurial repository:

mshu...@aineko:~/src/repos/hg$ hg clone
http://xenbits.xensource.com/linux-2.6.18-xen.hg
destination directory: linux-2.6.18-xen.hg
requesting all changes
adding changesets
adding manifests
adding file changes
added 899 changesets with 23501 changes to 20928 files
updating working directory
20905 files updated, 0 files merged, 0 files removed, 0 files unresolved
mshu...@aineko:~/src/repos/hg$

 So where do I find the source of the xen-Hypervisor?

Right where you found it  ;)

You can also download tarballs from the parent web site, if you wish.

-- 
Kind Regards,
Michael


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Xen - Source?

2009-06-09 Thread David Claughton
Michael Shuler wrote:
 On 06/09/2009 11:49 AM, Andreas wrote:
 Installing it (make), it downloads the binary of the hypervisor!
 Cloning http://xenbits.xensource.com/linux-2.6.18-xen.hg  # 
 (downloading)
 
 This is an incorrect understanding of that download step - it is a
 *source* download from the upstream mercurial repository:
 

Are you saying the source package does not actually contain the source
code, but is just a framework for downloading the actual source?

If so, this seems unusual to me.  AIUI it's normal practice for a source
package to contain a local copy of the source tree because Debian cannot
make the assumption that xenbits.xensource.com will always be there.

 
 You can also download tarballs from the parent web site, if you wish.
 

So why are these not used in the creation of the source package?

Cheers,

David.


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Xen - Source?

2009-06-09 Thread Ben Hutchings
On Tue, 2009-06-09 at 18:49 +0200, Andreas wrote:
 Hallo everybody!
 
 Xen is distributed with Debian (main)
 
 Seems the source-package doesn't contain the code of the hypervisor.

Which package?

 Also /lib/modules/2.6-686/kernel/arch/xen/i386/mm/hypervisor.c is not
 included.

No, that's not where we install sources.

 Installing it (make), it downloads the binary of the hypervisor!
 Cloning http://xenbits.xensource.com/linux-2.6.18-xen.hg  # 
 (downloading)

Use dpkg-buildpackage to build Debian packages.  Running make directly
is not guaranteed to do the right thing.

 So where do I find the source of the xen-Hypervisor (running below the
 linux-kernel)? - Or: why could it be distributed with Debian?

The hypervisor is in the xen-3 source package:
apt-get source xen-3

The Linux dom0 code is in the linux-2.6 source package (as patches in
the subdirectory debian/patches/features/all/xen/):
apt-get source linux-2.6
cd linux-2.6-*
debian/rules setup

Ben.

-- 
Ben Hutchings
Everything should be made as simple as possible, but not simpler.
   - Albert Einstein


signature.asc
Description: This is a digitally signed message part


Re: Xen - Source?

2009-06-09 Thread Michael Shuler
On 06/09/2009 02:59 PM, David Claughton wrote:
 Michael Shuler wrote:
 On 06/09/2009 11:49 AM, Andreas wrote:
 Installing it (make), it downloads the binary of the hypervisor!
 Cloning http://xenbits.xensource.com/linux-2.6.18-xen.hg  # 
 (downloading)
 This is an incorrect understanding of that download step - it is a
 *source* download from the upstream mercurial repository:
 
 Are you saying the source package does not actually contain the source
 code, but is just a framework for downloading the actual source?
 
 If so, this seems unusual to me.  AIUI it's normal practice for a source
 package to contain a local copy of the source tree because Debian cannot
 make the assumption that xenbits.xensource.com will always be there.

You're right.  Ben pointed to the xen patch directory in the linux-2.6
source package in his reply - the package build should not fetch the
repo.  I just spoke up (probably incorrectly, without asking for more
info) to help with what I thought he was seeing.

Kind Regards,
Michael


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Xen - Source?

2009-06-09 Thread David Claughton
Michael Shuler wrote:
 You're right.  Ben pointed to the xen patch directory in the linux-2.6
 source package in his reply - the package build should not fetch the
 repo.  I just spoke up (probably incorrectly, without asking for more
 info) to help with what I thought he was seeing.
 

OK, fair enough, glad that's cleared up.

Cheers,

David.


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org