>>> Emerging (1 of 1) media-video/gspcav1-20060925 to / * gspcav1-20060925.tar.gz MD5 ;-) ... [ ok ] * gspcav1-20060925.tar.gz RMD160 ;-) ... [ ok ] * gspcav1-20060925.tar.gz SHA1 ;-) ... [ ok ] * gspcav1-20060925.tar.gz SHA256 ;-) ... [ ok ] * gspcav1-20060925.tar.gz size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * checking gspcav1-20060925.tar.gz ;-) ... [ ok ] * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found sources for kernel version: * 2.6.19-rc5-mm2 * Checking for suitable kernel configuration options... [ ok ] >>> Unpacking source... >>> Unpacking gspcav1-20060925.tar.gz to /var/tmp/portage/media-video/gspcav1-20060925/work * Converting gspcav1-20060925/Makefile to use M= instead of SUBDIRS= ... [ ok ] >>> Source unpacked. >>> Compiling source in /var/tmp/portage/media-video/gspcav1-20060925/work/gspcav1-20060925 ... * Preparing gspca module make -C /usr/src/linux M=/var/tmp/portage/media-video/gspcav1-20060925/work/gspcav1-20060925 CC=i686-pc-linux-gnu-gcc mo dules make[1]: Entering directory `/usr/src/linux-2.6.19-rc5-mm2' CC [M] /var/tmp/portage/media-video/gspcav1-20060925/work/gspcav1-20060925/gspca_core.o CC [M] /var/tmp/portage/media-video/gspcav1-20060925/work/gspcav1-20060925/decoder/gspcadecoder.o /var/tmp/portage/media-video/gspcav1-20060925/work/gspcav1-20060925/gspca_core.c:36:26: error: linux/config.h: No such f ile or directory /var/tmp/portage/media-video/gspcav1-20060925/work/gspcav1-20060925/gspca_core.c: In function 'gspca_init_isoc': /var/tmp/portage/media-video/gspcav1-20060925/work/gspcav1-20060925/gspca_core.c:1035: warning: assignment from incompat ible pointer type make[2]: *** [/var/tmp/portage/media-video/gspcav1-20060925/work/gspcav1-20060925/gspca_core.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [_module_/var/tmp/portage/media-video/gspcav1-20060925/work/gspcav1-20060925] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.19-rc5-mm2' make: *** [default] Error 2 I assume that it won't work with vanilla 2.6.19-rc5 too. Have not tried testing it yet.
I just realized that its because 2.6.19 changed the .config API. Any idea how to hack this? Thanks
(In reply to comment #1) > I just realized that its because 2.6.19 changed the .config API. Any idea how > to hack this? Thanks > it just changed from linux/config.h to linux/autoconf.h attached is a patch and ebuild for kernels >=2.6.19
Created attachment 103072 [details, diff] ebuild to support kernels 2.6.19+
Created attachment 103073 [details, diff] patch for 2.6.19+ kernels
the patch is no good. you can't apply a patch conditionaly at install time because you have no idea what kernel you might be running in the future. Please fix the patch to use #if and include the proper header file based on the KERNEL_VERSION(or something like it) define.
The patch is wrong, just drop the <linux/config.h> include. The configuration is included on the command line through -i macros
(In reply to comment #6) > The patch is wrong, just drop the <linux/config.h> include. The configuration > is included on the command line through -i macros > still can't do it unconditionally though...
(In reply to comment #5) > the patch is no good. you can't apply a patch conditionaly at install time > because you have no idea what kernel you might be running in the future. > Please fix the patch to use #if and include the proper header file based on the > KERNEL_VERSION(or something like it) define. > yes i'm sorry...i've been selfish.. i switched to the 2.6.19 and didn't think at all about others ;) i'll make a patch again as soon as i can sorry again
(In reply to comment #8) > yes i'm sorry...i've been selfish.. i switched to the 2.6.19 and didn't think > at all about others ;) i'll make a patch again as soon as i can > > sorry again > Are you the ebuild maintainer for this package?
Mike Doty: Can you please bump the version. There is a new upstream package. http://mxhaard.free.fr/spca50x/Investigation/Gspca/ Thanks
Sorry, it doesn't build. I have contacted upstream about it. According to the changelog the 2.6.19 config.h has been patched.
(In reply to comment #9) > (In reply to comment #8) > > yes i'm sorry...i've been selfish.. i switched to the 2.6.19 and didn't think > > at all about others ;) i'll make a patch again as soon as i can > > > > sorry again > > > > Are you the ebuild maintainer for this package? > no.. i'm not the maintainer... i barely know how to write an ebuild :P I'm trying to build the new release you mentioned... i'll upload an ebuild as soon as i manage to make it work....
I have the same problem using gentoo-sources-2.6.19-r1: make -C /usr/src/linux M=/var/tmp/portage/gspcav1-20060925/work/gspcav1-20060925 CC=x86_64-pc-linux-gnu-gcc modules make[1]: se ingresa al directorio `/usr/src/linux-2.6.19-gentoo-r1' CC [M] /var/tmp/portage/gspcav1-20060925/work/gspcav1-20060925/gspca_core.o CC [M] /var/tmp/portage/gspcav1-20060925/work/gspcav1-20060925/decoder/gspcadecoder.o /var/tmp/portage/gspcav1-20060925/work/gspcav1-20060925/gspca_core.c:36:26: error: linux/config.h: No such file or directory /var/tmp/portage/gspcav1-20060925/work/gspcav1-20060925/gspca_core.c: In function 'gspca_init_isoc': /var/tmp/portage/gspcav1-20060925/work/gspcav1-20060925/gspca_core.c:1035: warning: assignment from incompatible pointer type make[2]: *** [/var/tmp/portage/gspcav1-20060925/work/gspcav1-20060925/gspca_core.o] Error 1 make[1]: *** [_module_/var/tmp/portage/gspcav1-20060925/work/gspcav1-20060925] Error 2 make[1]: se sale del directorio `/usr/src/linux-2.6.19-gentoo-r1' make: *** [default] Error 2 Thanks a lot for tryind to fix it
*** Bug 157055 has been marked as a duplicate of this bug. ***
My wife bought a webcam, so now I need to install this driver on a 2.6.19 kernel. The patch for the source code I upload is unconditional. The ebuild is patched accordingly.
Created attachment 103822 [details, diff] patch to the source this obsoletes the previous patch
Created attachment 103823 [details, diff] patch to the ebuild this files modifies the ebuild to include the previously attached patch in the source code.
Thanks! Its working here under Kernel 2.6.19!
perfectly, works under gentoo-sources 2.6.19 rc2 like a charme :)
A new version of the driver is out. The problem was fixed in the main tree, so just renaming the old ebuild to the new version got everything to work just fine. http://mxhaard.free.fr/news.html
Tom's patch is close but not quite correct. No need to include autoconf.h - the configuration is automatically included on the command line now. Mike, adding the new version is probably a good idea but please also ensure this is backported into the stable tree.
(In reply to comment #21) > Tom's patch is close but not quite correct. No need to include autoconf.h - the > configuration is automatically included on the command line now. > > Mike, adding the new version is probably a good idea but please also ensure > this is backported into the stable tree. > Daniel- I've deprecated gspcav1 for gspca. it should have the fix...