Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 156176 - media-video/gspcav1-20060925 failed to compile with 2.6.19-rc5-mm2
Summary: media-video/gspcav1-20060925 failed to compile with 2.6.19-rc5-mm2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Mike Doty (RETIRED)
URL:
Whiteboard:
Keywords:
: 157055 (view as bug list)
Depends on:
Blocks: kernel-2.6.19
  Show dependency tree
 
Reported: 2006-11-24 19:57 UTC by Leonard Khoo
Modified: 2006-12-25 00:44 UTC (History)
3 users (show)

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


Attachments
ebuild to support kernels 2.6.19+ (gspcav1-20060925-r1.ebuild,821 bytes, patch)
2006-11-30 17:11 UTC, kmare
Details | Diff
patch for 2.6.19+ kernels (gspca_core.patch,364 bytes, patch)
2006-11-30 17:12 UTC, kmare
Details | Diff
patch to the source (gspcav1-20060925-config.h.patch,509 bytes, patch)
2006-12-11 12:14 UTC, Tom Van Doorsselaere
Details | Diff
patch to the ebuild (gspcav1-20060925.patch,327 bytes, patch)
2006-12-11 12:16 UTC, Tom Van Doorsselaere
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Leonard Khoo 2006-11-24 19:57:56 UTC
>>> 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.
Comment 1 Leonard Khoo 2006-11-25 07:51:41 UTC
I just realized that its because 2.6.19 changed the .config API. Any idea how to hack this? Thanks
Comment 2 kmare 2006-11-30 17:09:38 UTC
(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
Comment 3 kmare 2006-11-30 17:11:22 UTC
Created attachment 103072 [details, diff]
ebuild to support kernels 2.6.19+
Comment 4 kmare 2006-11-30 17:12:17 UTC
Created attachment 103073 [details, diff]
patch for 2.6.19+ kernels
Comment 5 Mike Doty (RETIRED) gentoo-dev 2006-11-30 18:46:11 UTC
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.
Comment 6 Daniel Drake (RETIRED) gentoo-dev 2006-11-30 20:36:41 UTC
The patch is wrong, just drop the <linux/config.h> include. The configuration is included on the command line through -i macros
Comment 7 Mike Doty (RETIRED) gentoo-dev 2006-11-30 21:54:57 UTC
(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...
Comment 8 kmare 2006-12-02 20:41:41 UTC
(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
Comment 9 Leonard Khoo 2006-12-03 08:50:43 UTC
(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?
Comment 10 Leonard Khoo 2006-12-03 08:53:09 UTC
Mike Doty:

Can you please bump the version. There is a new upstream package.

http://mxhaard.free.fr/spca50x/Investigation/Gspca/

Thanks
Comment 11 Leonard Khoo 2006-12-03 09:13:56 UTC
Sorry, it doesn't build. I have contacted upstream about it. According to the changelog the 2.6.19 config.h has been patched.
Comment 12 kmare 2006-12-03 15:58:42 UTC
(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....
Comment 13 Pacho Ramos gentoo-dev 2006-12-04 02:48:11 UTC
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
Comment 14 Jakub Moc (RETIRED) gentoo-dev 2006-12-04 03:25:42 UTC
*** Bug 157055 has been marked as a duplicate of this bug. ***
Comment 15 Tom Van Doorsselaere 2006-12-11 12:13:32 UTC
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. 
Comment 16 Tom Van Doorsselaere 2006-12-11 12:14:56 UTC
Created attachment 103822 [details, diff]
patch to the source

this obsoletes the previous patch
Comment 17 Tom Van Doorsselaere 2006-12-11 12:16:58 UTC
Created attachment 103823 [details, diff]
patch to the ebuild

this files modifies the ebuild to include the previously attached patch in the source code.
Comment 18 Conrad Kostecki gentoo-dev 2006-12-13 03:00:16 UTC
Thanks!
Its working here under Kernel 2.6.19!
Comment 19 Ronny Boesger 2006-12-15 13:58:49 UTC
perfectly, works under gentoo-sources 2.6.19 rc2 like a charme :)
Comment 20 kmare 2006-12-16 20:41:05 UTC
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
Comment 21 Daniel Drake (RETIRED) gentoo-dev 2006-12-19 15:24:57 UTC
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.
Comment 22 Mike Doty (RETIRED) gentoo-dev 2006-12-25 00:44:07 UTC
(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...