[CentOS] 5.5 & gspca

Fri Jun 18 15:34:54 UTC 2010
m.roth at 5-cent.us <m.roth at 5-cent.us>

JohnS wrote:
>
> On Thu, 2010-06-17 at 16:10 -0400, m.roth at 5-cent.us wrote:
>> <snip>
>> Ok, so I got the src rpm from el repo. Lessee, first I tried rpmbuild,
>> and
>> that failed, because it *required* xen-devel. So I grabbed the tarfile
>> from /usr/src/redhat/SOURCES, unbzip2'd it, untar'd it, and did a make.
>> And ten or so later, I had 265 kernel modules. I don't want or need to
>> install all of that, so I tried just building gspca, and that failed
>> with unresolved errors.
> ---
> rpmbuild -ba  --target=i686 --nodeps video4linux-kmod-rt.spec
>
> Wrote: /SRPMS/video4linux-kmod-0.0-5.20090615.el5.jerepo.src.rpm
> Wrote: /RPMS/i686/kmod-video4linux-0.0-5.20090615.el5.jerepo.i686.rpm
> Wrote: /RPMS/i686/kmod-video4linux-xen-0.0-5.20090615.el5.jerepo.i686.rpm
> Wrote: /RPMS/i686/kmod-video4linux-PAE-0.0-5.20090615.el5.jerepo.i686.rpm
> Wrote:
> /RPMS/i686/video4linux-kmod-debuginfo-0.0-5.20090615.el5.jerepo.i686.rpm
>
> Use that command to build it.  You should get the above then trash xen,
> pae and debug.  That builds and works on a pure kernel-rt install.
> Allthough there things said left to do get it built the right way but it
> is usable.

Um, what's kernel-rt got to do with anything I said? And actually, the
first server I'm trying to build this on is a Sunfire, but it's running
Opterons, and the o/s is 64-bit. I also do *not* have any xen installed.

Fine, I tried running
 rpmbuild -ba --target=x86_64 --without xen video4linux-kmod.spec
Building target platforms: x86_64
Building for target x86_64
error: Failed build dependencies:
        kernel-xen-devel-x86_64 = 2.6.18-194.3.1.el5 is needed by
video4linux-kmod-0.0-5.20090615.el5.elrepo.x86_64

My last trick was to edit the stupid spec file, and comment out
#%ifarch i686 x86_64
#%define xenvar xen
#%endif
and it *still* wants to build for xen.

No, the rpmbuild is not correct. So, back to the original, of trying to
figure out just what kernel modules I need to install, rather than the
laundry list it correctly builds when I drop the rpm, and build from the
blown-out tarfile.

      mark

>
> lib/modules/2.6.24.7-149.el5rt/extra/video4linux/ has several gspca
> modules so your better off installing all to get the correct one.
>
> John
>
>
>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>