Created attachment 334174 [details] sys-block/iscsitarget-1.4.20.2_p20130103 build failure (modified ebuild to disable kernel version check) Currently, upstream SVN lacks support for Linux 3.7, which results in a build failure. This needs to be addressed, so I am opening this bug before one of our users does. There are multiple problems with the iSCSITarget build system. 1. The build system applies patches based on kernel version 2. The kver_le macro used to decide which patches are valid does not return true on equal. 3. The upper bounds on the kernel versions are not enforced when applying these patches. 4. There are regressions in support for Linux 2.6.32 and earlier. As of sys-block/iscsitarget-1.4.20.2_p20130103, we address #2, #3 and #4 (only tested as far back as Linux 2.6.32). However, those are hacks around the real problem, which is #1. Applying patches based on kernel version will lead to build failures with custom kernels, which is something that should change. I would love to adopt autotools like sys-kernel/spl did to address this, but I need to talk to upstream first before we decide what will be done.
tbh, I'd drop iscsitarget from base-system and let ryao have at it. Its deprecated and won't be getting mainlined. The kernel now has LIO from 3.1 and on , which will be the preferred way.
*** Bug 462624 has been marked as a duplicate of this bug. ***
sys-block/iscsitarget-1.4.20.2_p20130821 is now in tree. It adds support for Linux 3.7 through 3.11.