Please find the attached ebuild for xen-sources-2.6.38-r1
Created attachment 272357 [details] xen-sources-2.6.38-r1.ebuild
Created attachment 272359 [details] xen-sources-2.6.38-r1.ebuild Fixed header
The kernel doesn't build when enabling XEN_BLKDEV_TAP and CONFIG_XEN_BLKDEV_TAP2. The config selection should be made mutually exclusive. [...] LD drivers/xen/built-in.o drivers/xen/blktap2-new/built-in.o: In function `blktap_ring_init': (.init.text+0x100): multiple definition of `blktap_ring_init' drivers/xen/blktap2/built-in.o:(.init.text+0x96): first defined here drivers/xen/blktap2-new/built-in.o: In function `blktap_ring_destroy': (.text+0x3cd): multiple definition of `blktap_ring_destroy' drivers/xen/blktap2/built-in.o:(.text+0xe17): first defined here drivers/xen/blktap2-new/built-in.o: In function `blktap_device_init': (.init.text+0x195): multiple definition of `blktap_device_init' drivers/xen/blktap2/built-in.o:(.init.text+0x137): first defined here drivers/xen/blktap2-new/built-in.o: In function `blktap_ring_kick_user': (.text+0xa3d): multiple definition of `blktap_ring_kick_user' drivers/xen/blktap2/built-in.o:(.text+0x663): first defined here drivers/xen/blktap2-new/built-in.o:(.bss+0x0): multiple definition of `blktaps' drivers/xen/blktap2/built-in.o:(.bss+0x0): first defined here ld: Warning: size of symbol `blktaps' changed from 2048 in drivers/xen/blktap2/built-in.o to 8 in drivers/xen/blktap2-new/built-in.o drivers/xen/blktap2-new/built-in.o: In function `blktap_device_destroy': (.text+0x122a): multiple definition of `blktap_device_destroy' drivers/xen/blktap2/built-in.o:(.text+0x3028): first defined here drivers/xen/blktap2-new/built-in.o: In function `blktap_request_free': (.text+0x19e6): multiple definition of `blktap_request_free' drivers/xen/blktap2/built-in.o:(.text+0x3b4f): first defined here drivers/xen/blktap2-new/built-in.o: In function `blktap_device_create': (.text+0xf13): multiple definition of `blktap_device_create' drivers/xen/blktap2/built-in.o:(.text+0x19ef): first defined here drivers/xen/blktap2-new/built-in.o:(.data+0x170): multiple definition of `blktap_debug_level' drivers/xen/blktap2/built-in.o:(.data+0xa0): first defined here drivers/xen/blktap2-new/built-in.o: In function `blktap_ring_create': (.text+0xa11): multiple definition of `blktap_ring_create' drivers/xen/blktap2/built-in.o:(.text+0x1297): first defined here drivers/xen/blktap2-new/built-in.o: In function `blktap_sysfs_destroy': (.text+0x1dc7): multiple definition of `blktap_sysfs_destroy' drivers/xen/blktap2/built-in.o:(.text+0x3dae): first defined here drivers/xen/blktap2-new/built-in.o: In function `blktap_sysfs_init': (.init.text+0x299): multiple definition of `blktap_sysfs_init' drivers/xen/blktap2/built-in.o:(.init.text+0x22f): first defined here drivers/xen/blktap2-new/built-in.o: In function `blktap_sysfs_create': (.text+0x1e16): multiple definition of `blktap_sysfs_create' drivers/xen/blktap2/built-in.o:(.text+0x4460): first defined here make[2]: *** [drivers/xen/built-in.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [drivers/xen] Error 2 make: *** [drivers] Error 2
Update: XEN_BLKDEV_TAP2 doesn't build because of the previously posted "multiple definitions" only with XEN_BLKDEV_TAP it builds nice :-)
posted ebuild seems to work (x86_64) for me with even latest stable genpatches: --- xen-sources-2.6.38-r1.ebuild 2011-06-16 11:07:23.691085877 +0400 +++ /usr/local/portage/sys-kernel/xen-sources/xen-sources-2.6.38-r1.ebuild 2011-06-16 07:40:43.723581787 +0400 @@ -5,7 +5,7 @@ ETYPE="sources" UNIPATCH_STRICTORDER="1" K_WANT_GENPATCHES="base extras" -K_GENPATCHES_VER="4" +K_GENPATCHES_VER="7" inherit kernel-2 detect_version tested following installations (all of then are on phy -- using lvolumes): * hvm x86 domU (winxp) * pv x86_64 domU (xen-source-2.6.38-r1, xen-sources-2.6.34) * pv x86 domU (xen-sources-2.6.34) * pv freebsd (8.2-RELEASE)
emerged using the ebuild without a hitch. idella@gentoo64 ~/bin $ uname -r 2.6.38-xen-r1-amd64 idella@gentoo64 ~/bin $ sudo xm list Password: Name ID Mem VCPUs State Time(s) Domain-0 0 1500 4 r----- 3470.5 centos 654 0 0.0 fed12 612 2 9.3 fedora14 9 600 2 -b---- 285.4 fedora9 450 2 9.6 suse11 3 500 2 -b---- 208.7 ubuntu1 512 2 Used --import via virt-install and installed a new fedora (14) (full virt) All sweet
+ 28 Jul 2011; Patrick Lauer <patrick@gentoo.org> +xen-sources-2.6.38.ebuild: + Bump for #366323, last standalone xen-sources before kernel 3.0 (or so we + hope)
Download of genpatches-2.6.38-4.base.tar.bz2 fails.
Just change K_GENPATCHES_VER to "8". I guessed this number but there are plenty of other versions.. I don't know which one is most suitable.
Compiling the kernel (sys-kernel/xen-sources-2.6.38) with CONFIG_XEN_BLKDEV_TAP and CONFIG_XEN_BLKDEV_TAP2 enabled has failed (https://bugs.gentoo.org/show_bug.cgi?id=366323#c3). With CONFIG_XEN_BLKDEV_TAP2 as a module it worked. I don't understand, if this bug was corrected ?