On Fri, 2010-06-18 at 14:50 +0100, Ned Slider wrote: > On 18/06/10 14:10, JohnS wrote: > > > > On Thu, 2010-06-17 at 16:10 -0400, m.roth@xxxxxxxxx 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. > > > > 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 > > > > No, define kvariants as appropriate and only build for the variants you > want. > > http://wiki.centos.org/HowTos/BuildingKernelModules#head-b86b6eec08d5719cf1838929f26a64af88e2b7f0 > > rpmbuild -ba --target=i686 --define 'kvariants ""' video4linux-kmod.spec > > If you don't, then by default the package will be built for *all* kernel > variants and you will of course need the appropriate BuildRequires > installed on your build system (eg, kernel-devel, kernel-xen-devel, > kernel-PAE-devel). --- Would you so nicely post that on the appropiate page elsewhere please.? rpmbuild -ba --target=i686 --define 'kvariants "rt"' video4linux-kmod.spec This is a bug also In my opinion because kmodtool should not allow the nodepts parameter to be used. It was by luck I decided to try """rt""". You see my idiot self tried kernel-rt there lol. So this is the right way correct? Build is running with only installed kernel-rt and kernel-rt-devel: 2.6.24.7-149.el5rt #1 SMP PREEMPT RT We will see if it indeed works later on tonight. John _______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos