Some changes to the structure "struct video_device" in the new kernel 2.6.24 make usb-pwc-re fail during compilation.
Steps to Reproduce:
1. emerge usb-pwc-re
usb-pwc-re fails during compilation
From the changelog for kernel 2.6.24:
Author: Mauro Carvalho Chehab <firstname.lastname@example.org>
Date: Mon Oct 15 12:09:17 2007 -0300
V4L/DVB (6320): v4l core: remove the unused .hardware V4L1 field
struct video_device used to define a .hardware field. While
initialized on severl drivers, this field is never used inside V4L.
However, drivers using it need to include the old V4L1 header.
This seems to cause compilation troubles with some random configs.
Better just to remove it from all drivers.
Signed-off-by: Mauro Carvalho Chehab <email@example.com>
I attach a patch against the old ebuild usb-pwc-re-20061023.042702-r1.ebuild and another patch against the pwc-re sources that fix this issue.
Created attachment 143262 [details, diff]
Patch against: usb-pwc-re-20061023.042702-r1.ebuild
Created attachment 143263 [details, diff]
Patch against usb-pwc-re-20061023.042702 sources.
Since you seem to know how to modify ebuilds, could you please check why the original ebuild does not die on your system telling you "In kernel 2.6.24 this module is deprecated by the builtin driver." as it should? Thank you!
Created attachment 143314 [details, diff]
Ah, I didn't notice that.
It seems the old ebuild has two pkg_setup functions defined. Here's a patch against the old ebuild.
Now the ebuild dies telling me to use the builtin kernel module.
2.4 kernel drivers have no place in the tree, please nuke this.
(In reply to comment #5)
> 2.4 kernel drivers have no place in the tree, please nuke this.
Please note that this is no 2.4 kernel driver at all, how do you get this idea?
Even if it were - why should it have to be nuked while we still have vanilla-sources 2.4 in the tree? Did I miss some announcement?
Just fixed the double pkg_setup issue, I think we could keep this in the tree until 2.6.18 is gone.
Changed my mind, going to nuke it.