| Summary: | media-tv/v4l-dvb-hg-0.1-r2 and linux-2.6.29-gentoo-r3 fails to compile because of ACCESS VIOLATION | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Juergen Rose <rose> |
| Component: | Current packages | Assignee: | Television related Applications in Gentoo's Portage <media-tv> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | eitan |
| Priority: | High | ||
| Version: | 2008.0 | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | Fixed ebuild-file | ||
|
Description
Juergen Rose
2009-05-10 13:27:49 UTC
This is not only 2.6.29. I have seen it in older kernels. Yes, this should be independent of the used kernel, as the firmware files got just added. The Makefiles try to install them. So we either need fix installing them into $D, or check if there already is another ebuild for these firmware files, as in-kernel drivers will also need them, and in this case just not install them. Created attachment 191066 [details] Fixed ebuild-file This ebuild works (for me). Seems like upstream has changed the Makefile. It gets patched to not install the firmware files on its own. The firmware files are installed with a second make install in src_install(). One could easily wrap some use flag around it or completely move it over to media-tv/linuxtv-dvb-firmware. I couldn't figure out how to pass KDIR to the Makefile. It has to find the kernel sources on its own. I have included savedconfig from bug #265743, don't know if it's usefull. I had the same issue with the ebuild in the tree, but this ebuild doesn't work for me - the first time I emerged it exited code 0, but there was a message about hg clone failing. The second time it didn't have that error message, but the module I'm using it for (uvcvideo) wasn't there and when I checked using equery files v4l-dvb-hg, I discovered that there hadn't been any modules installed and there were some compile errors that for some reason didn't cause it to fail: equery files v4l-dvb-hg: /etc /etc/portage /etc/portage/savedconfig /etc/portage/savedconfig/media-tv /etc/portage/savedconfig/media-tv/v4l-dvb-hg-0.1-r5 /lib /lib/firmware /lib/firmware/av7110 /lib/firmware/av7110/bootcode.bin /lib/firmware/cpia2 /lib/firmware/cpia2/stv0672_vp4.bin /lib/firmware/dabusb /lib/firmware/dabusb/bitstream.bin /lib/firmware/dabusb/firmware.fw /lib/firmware/ttusb-budget /lib/firmware/ttusb-budget/dspbootcode.bin /lib/firmware/vicam /lib/firmware/vicam/firmware.fw /usr /usr/include /usr/include/v4l-dvb-hg /usr/include/v4l-dvb-hg/linux /usr/include/v4l-dvb-hg/linux/dvb /usr/include/v4l-dvb-hg/linux/dvb/audio.h /usr/include/v4l-dvb-hg/linux/dvb/ca.h /usr/include/v4l-dvb-hg/linux/dvb/dmx.h /usr/include/v4l-dvb-hg/linux/dvb/frontend.h /usr/include/v4l-dvb-hg/linux/dvb/net.h /usr/include/v4l-dvb-hg/linux/dvb/osd.h /usr/include/v4l-dvb-hg/linux/dvb/version.h /usr/include/v4l-dvb-hg/linux/dvb/video.h /usr/sbin /usr/sbin/get_dvb_firmware /usr/share /usr/share/doc /usr/share/doc/v4l-dvb-hg-0.1-r5 /usr/share/doc/v4l-dvb-hg-0.1-r5/avermedia.txt.bz2 /usr/share/doc/v4l-dvb-hg-0.1-r5/bt8xx.txt.bz2 /usr/share/doc/v4l-dvb-hg-0.1-r5/cards.txt.bz2 /usr/share/doc/v4l-dvb-hg-0.1-r5/ci.txt.bz2 /usr/share/doc/v4l-dvb-hg-0.1-r5/contributors.txt.bz2 /usr/share/doc/v4l-dvb-hg-0.1-r5/faq.txt.bz2 /usr/share/doc/v4l-dvb-hg-0.1-r5/opera-firmware.txt.bz2 /usr/share/doc/v4l-dvb-hg-0.1-r5/readme.txt.bz2 /usr/share/doc/v4l-dvb-hg-0.1-r5/technisat.txt.bz2 /usr/share/doc/v4l-dvb-hg-0.1-r5/ttusb-dec.txt.bz2 /usr/share/doc/v4l-dvb-hg-0.1-r5/udev.txt.bz2 Compile errors: >>> Compiling source in /var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r5/work/v4l-dvb/v4l ... make -j3 --load-average scripts/make_makefile.pl ./scripts/make_myconfig.pl perl scripts/make_config_compat.pl /lib/modules/2.6.29-tuxonice-r1/source ./.myconfig ./config-compat.h creating symbolic links... ln -sf . oss make -C firmware prep make[1]: Entering directory `/var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r5/work/v4l-dvb/v4l/firmware' make[1]: Leaving directory `/var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r5/work/v4l-dvb/v4l/firmware' make -C firmware make[1]: Entering directory `/var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r5/work/v4l-dvb/v4l/firmware' CC ihex2fw Generating dabusb/firmware.fw Generating vicam/firmware.fw Generating dabusb/bitstream.bin Generating ttusb-budget/dspbootcode.bin Generating cpia2/stv0672_vp4.bin Generating av7110/bootcode.bin make[1]: Leaving directory `/var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r5/work/v4l-dvb/v4l/firmware' Kernel build directory is /lib/modules/2.6.29-tuxonice-r1/build make -C /lib/modules/2.6.29-tuxonice-r1/build SUBDIRS=/var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r5/work/v4l-dvb/v4l modules make[1]: Entering directory `/usr/src/linux-2.6.29-tuxonice-r1' Makefile:529: /usr/src/linux-2.6.29-tuxonice-r1/arch/amd64/Makefile: No such file or directory make[1]: *** No rule to make target `/usr/src/linux-2.6.29-tuxonice-r1/arch/amd64/Makefile'. Stop. make[1]: Leaving directory `/usr/src/linux-2.6.29-tuxonice-r1' make: *** [default] Error 2 >>> Source compiled. >>> Test phase [not enabled]: media-tv/v4l-dvb-hg-0.1-r5 etc. I get the same no modules installed on my system with this ebuild. I have tested and modifyied v4l-dvb-hg-0.1-r4.ebuild to work on amd64. This new ebuild can be found in my overlay. http://github.com/drescherjm/jmdgentoooverlay/blob/e967b0572e5b01243bb1ac24a3ae3e23b3e6953a/media-tv/v4l-dvb-hg/v4l-dvb-hg-0.1-r6.ebuild I can confirm that John M. Drescher's ebuild works. Much appreciated. Considering this is a SVN build anyway, any reason this shouldn't go right into the official tree (*hint* to anyone with the ability to do so)? (In reply to comment #7) > I can confirm that John M. Drescher's ebuild works. Much appreciated. > Considering this is a SVN build anyway, any reason this shouldn't go right into > the official tree (*hint* to anyone with the ability to do so)? > Looks good to me. Thanks, John, in CVS. I tried the v4l-dvb-hg-0.1-r6.ebuild, but it fails with: root@cheetah:/usr/local/portage/media-tv/v4l-dvb-hg(40)# emerge v4l-dvb-hg Calculating dependencies... done! >>> Verifying ebuild manifests >>> Emerging (1 of 1) media-tv/v4l-dvb-hg-0.1-r6 from local * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found sources for kernel version: * 2.6.29.4 >>> Unpacking source... * Updating /home_cheetah/ftp/pub/portage/distfiles/hg-src/v4l-dvb-hg/v4l-dvb from http://linuxtv.org/hg/v4l-dvb Not trusting file /home_cheetah/ftp/pub/portage/distfiles/hg-src/v4l-dvb-hg/v4l-dvb/.hg/hgrc from untrusted user portage, group portage Not trusting file /home_cheetah/ftp/pub/portage/distfiles/hg-src/v4l-dvb-hg/v4l-dvb/.hg/hgrc from untrusted user portage, group portage abort: repository default not found! * * ERROR: media-tv/v4l-dvb-hg-0.1-r6 failed. |