Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 366323 - sys-kernel/xen-sources-2.6.38-r1 version bump
Summary: sys-kernel/xen-sources-2.6.38-r1 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Xen Devs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-07 09:38 UTC by Fabiano Francesconi
Modified: 2011-08-31 07:42 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
xen-sources-2.6.38-r1.ebuild (xen-sources-2.6.38-r1.ebuild,797 bytes, text/plain)
2011-05-07 09:38 UTC, Fabiano Francesconi
Details
xen-sources-2.6.38-r1.ebuild (xen-sources-2.6.38-r1.ebuild,683 bytes, text/plain)
2011-05-07 09:41 UTC, Fabiano Francesconi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fabiano Francesconi 2011-05-07 09:38:19 UTC
Please find the attached ebuild for xen-sources-2.6.38-r1
Comment 1 Fabiano Francesconi 2011-05-07 09:38:36 UTC
Created attachment 272357 [details]
xen-sources-2.6.38-r1.ebuild
Comment 2 Fabiano Francesconi 2011-05-07 09:41:20 UTC
Created attachment 272359 [details]
xen-sources-2.6.38-r1.ebuild

Fixed header
Comment 3 Reto Gantenbein (ganto) 2011-05-15 21:24:13 UTC
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
Comment 4 Reto Gantenbein (ganto) 2011-05-16 20:11:39 UTC
Update: 

XEN_BLKDEV_TAP2 doesn't build because of the previously posted "multiple definitions"

only with XEN_BLKDEV_TAP it builds nice :-)
Comment 5 victor romanchuk 2011-06-16 08:02:23 UTC
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)
Comment 6 Ian Delaney (RETIRED) gentoo-dev 2011-07-28 00:40:49 UTC
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
Comment 7 Patrick Lauer gentoo-dev 2011-07-28 16:39:54 UTC
+  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)
Comment 8 Sven 2011-07-30 01:06:22 UTC
Download of genpatches-2.6.38-4.base.tar.bz2 fails.
Comment 9 Fabiano Francesconi 2011-07-30 08:50:02 UTC
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.
Comment 10 Frederic Marchal 2011-08-31 07:42:44 UTC
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 ?