Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 212249 - sys-block/iscsitarget doesn't compile w/ 2.6.18 kernels
Summary: sys-block/iscsitarget doesn't compile w/ 2.6.18 kernels
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-04 07:35 UTC by Srdjan Rosic
Modified: 2008-03-09 11:08 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Srdjan Rosic 2008-03-04 07:35:34 UTC
sys-block/iscsitarget-0.4.15-r1 fails to compile on 2.6.18 kernels (important for xen-sources when used as Dom0, also tried on vanilla-sources) due to fact that their kernel specific patch is buggy on 0.4.15-r1. (As shown in reproduce/results)

I've tried using the "ebuild unpack" and reading the patch source, so I could try apply it manually using a text editor, in case the differences were small enough, but I gave up.
Finally I've checked from svn version r148 from svn://svn.berlios.de/iscsitarget/trunk
which make-compiles and installs flawlessly, and I've been using it for a couple of days with no problems.

r148 version won't compile on 2.6.22 - 2.6.23 (as stated http://svn.berlios.de/wsvn/iscsitarget/?rev=0&sc=1), so, I'm thinking it should be added as masked, since it could break updates, and hopefully people having the same problem as I did, could come here and try and use the svn ebuild instead of the 0.4.15-r1 currently in portage.

Reproducible: Always

Steps to Reproduce:
1. Setup a xen-sources-2.6.18-r4 Dom0   (or point /usr/src/linux to any 2.6.18 sources)
2. emerge =sys-block/iscsitarget-0.4.15-r1

Actual Results:  
part of erroneous emerge output (make in work directory)
----------------------
>>> Compiling source in /var/tmp/portage/sys-block/iscsitarget-0.4.15-r1/work/iscsitarget-0.4.15 ...
Applying Patch compat-2.6.14-2.6.18.patch
patching file kernel/iscsi.h
patching file kernel/digest.c
Hunk #4 FAILED at 160.
Hunk #5 succeeded at 185 (offset -5 lines).
Hunk #6 FAILED at 206.
Hunk #7 succeeded at 222 with fuzz 2 (offset -4 lines).
Hunk #8 succeeded at 249 (offset -4 lines).
Hunk #9 succeeded at 265 (offset -4 lines).
2 out of 9 hunks FAILED -- saving rejects to file kernel/digest.c.rej
patching file kernel/file-io.c
patching file kernel/iscsi.c
patching file kernel/tio.c
make: *** [.patched.2.6.18-xen-r4] Error 1
--------------------------------------

Expected Results:  
install the iscsi_trgt module.

erroneous emerge output
----------------------
>>> Compiling source in /var/tmp/portage/sys-block/iscsitarget-0.4.15-r1/work/iscsitarget-0.4.15 ...
Applying Patch compat-2.6.14-2.6.18.patch
patching file kernel/iscsi.h
patching file kernel/digest.c
Hunk #4 FAILED at 160.
Hunk #5 succeeded at 185 (offset -5 lines).
Hunk #6 FAILED at 206.
Hunk #7 succeeded at 222 with fuzz 2 (offset -4 lines).
Hunk #8 succeeded at 249 (offset -4 lines).
Hunk #9 succeeded at 265 (offset -4 lines).
2 out of 9 hunks FAILED -- saving rejects to file kernel/digest.c.rej
patching file kernel/file-io.c
patching file kernel/iscsi.c
patching file kernel/tio.c
make: *** [.patched.2.6.18-xen-r4] Error 1
--------------------------------------
Comment 1 SpanKY gentoo-dev 2008-03-09 10:10:44 UTC
upgrade your kernel or downgrade your iscsitarget
Comment 2 Srdjan Rosic 2008-03-09 10:40:49 UTC
(In reply to comment #1)
> upgrade your kernel or downgrade your iscsitarget
> 

Not much of a resolution is it ?

I think so because:

Newer xen kernels fail to delegate virtual pci properly towards the DomU, and that's probably one of the reasons why they are still hard masked.
And, there are no other versions of iscsi-target in portage.

Can't a new version with r148 sources be added as iscsi-target-0.4.15-r2 ?
Would it help more if I were to update an ebuild to include an accompanying r2 patch (diff from official 0.4.15) ?
Comment 3 SpanKY gentoo-dev 2008-03-09 11:08:38 UTC
without an active iscitarget maintainer, the answer is no