qc-usb-0.6.3 fails to produce a valid quickcam.ko on my ~x86 system. This because the var ${KV_OBJ} never gets filled (which results in portage trying to install a, non existing, "quickcam.") . See attached diff for a version where it works. I am not sure if all is done as should be (for example I added the DEPEND, since it seems to me that any kernelmodule-ebuild should have that?), even if it is done with the right function on the right location.
Created attachment 84571 [details, diff] patched ebuild that works
Hmmpf, while it creates the quickcam.ko module now, the thing fails to load properly (FATAL: Error inserting quickcam (/lib/modules/2.6.16-gentoo-r2/drivers/usb/quickcam.ko): Invalid argument ) I guess some more things need to be done.
emerge --info: main ~ # emerge --info Portage 2.1_pre7-r5 (default-linux/x86/2006.0, gcc-4.1.0, glibc-2.4-r1, 2.6.16-gentoo-r2 i686) ================================================================= System uname: 2.6.16-gentoo-r2 i686 AMD Athlon(tm) XP 3200+ Gentoo Base System version 1.12.0_pre17 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.4 [enabled] dev-lang/python: 2.4.2-r1 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r2 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distcc distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo/ http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://zeus/gentoo-portage" USE="x86 3dnow 3dnowext X a52 aac aalib acpi alsa apache2 arts artswrappersuid avi bash-completion berkdb bitmap-fonts bluetooth boundschecking browserplugin bzip2 cairo cdb cdparanoia cdr cdrom chroot cli crypt css ctype cups dba dbus dlloader dri dvd dvdr emboss encode erandom expat extrafilters fastbuild fbcon ffmpeg firefox flac foomaticdb force-cgi-redirect ftp gd gdbm gif gnuplot gnutls gphoto2 gpm gtk gtk2 hal ieee1394 imagemagick imlib irmc isdnlog java javascript jce jpeg jpeg2k kde kdexdeltas kqemu libg++ libwww lm_sensors logitech-mouse logrotate lzo mad memlimit mikmod mjpeg mmap mmx mmxext mp3 mp4 mpeg mplayer multiuser musicbrainz mysql nas ncurses nonfsv4 nptl nptlonly nsplugin numeric nvidia offensive ogg opengl oss pam parse-clocks pcre pdflib perl pic png posix pppd python qt quicktime rdesktop readline real rpm rtc scanner sdl session simplexml slp sndfile snmp soap sockets spell spl sse ssl svg tcltk tcpd theora threads tidy tiff tokenizer truetype truetype-fonts type1-fonts udev unicode urandom usb userlocales v4l v4l2 vorbis win32codecs wma wmf x264 xanim xcomposite xine xinerama xinetd xml xml2 xosd xrandr xsl xv xvid xvmc zip zlib elibc_glibc input_devices_mouse input_devices_keyboard input_devices_evdev kernel_linux userland_GNU video_cards_nvidia video_cards_vga video_cards_vesa video_cards_v4l video_cards_none" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS
I can confirm the bug. I patched the ebuild changing ${KV_OBJ} to ko. The module then installs properly and works as expected.
Created attachment 85070 [details, diff] qc-usb-0.6.3.diff A major workout on this ebuild, please consider updating portage.
#5 uses linux-mod properly so it compiles the module correctly and installs the module to the right place. Please consider to apply.
ebuild as posted in #5 works!
One note tho... I don't think that this module _requires_ EHCI (as per: CONFIG_CHECK="USB_EHCI_HCD") since it is only a USB 1.1 device... Sure, some form of USB HCD must be provided, but that can be any of UHCI, OHCI or EHCI.
Created attachment 85356 [details] qc-usb-0.6.3-r1.ebuild Thanks. Since there is no OR so only check for USB.
*** Bug 131159 has been marked as a duplicate of this bug. ***
*** Bug 131212 has been marked as a duplicate of this bug. ***
Hello Gentoo Developer Alastair Tse <liquidx@gentoo.org>, Please update portage, the current ebuild is invalid. If you are wating for more input, please tell us.
One note: The same compiler that was used to build the kernel is not necessarily used to build quickcam -- the current compiler is used. I'm not sure if this is a problem with the ebuild or the eclass.
Comment#5 Sourav Mandal: > The same compiler that was used to build the kernel is not necessarily used to > build quickcam -- the current compiler is used. I wish I understood what you are saying.
Re: comment #13, I think all kernel modules kept outside of the kernel tree will suffer from that problem. It has nothing in particular to do with qc-usb.
Hello bug-wranglers, Current ebuild in portage is invalid. The assigner does not make a correction. There is a tested/suggested ebuild attach. Please push to close this issue. Thanks!
Bug wranglers won't fix the bug.
thanks, fixed