Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 129828 - qc-usb ebuild fails to build kernel module
Summary: qc-usb ebuild fails to build kernel module
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Alastair Tse (RETIRED)
URL:
Whiteboard:
Keywords:
: 131159 131212 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-04-13 09:57 UTC by Gert-Jan Rodenburg
Modified: 2006-05-03 15:56 UTC (History)
4 users (show)

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


Attachments
patched ebuild that works (qc-usb.diff,278 bytes, patch)
2006-04-13 09:59 UTC, Gert-Jan Rodenburg
Details | Diff
qc-usb-0.6.3.diff (qc-usb-0.6.3.diff,1.38 KB, patch)
2006-04-20 14:38 UTC, Alon Bar-Lev (RETIRED)
Details | Diff
qc-usb-0.6.3-r1.ebuild (qc-usb-0.6.3-r1.ebuild,919 bytes, text/plain)
2006-04-24 06:10 UTC, Alon Bar-Lev (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gert-Jan Rodenburg 2006-04-13 09:57:47 UTC
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.
Comment 1 Gert-Jan Rodenburg 2006-04-13 09:59:00 UTC
Created attachment 84571 [details, diff]
patched ebuild that works
Comment 2 Gert-Jan Rodenburg 2006-04-13 12:48:11 UTC
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.
Comment 3 Gert-Jan Rodenburg 2006-04-13 12:49:58 UTC
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
Comment 4 b.eggleston 2006-04-17 06:03:06 UTC
I can confirm the bug. 
I patched the ebuild changing ${KV_OBJ} to ko.
The module then installs properly and works as expected.
Comment 5 Alon Bar-Lev (RETIRED) gentoo-dev 2006-04-20 14:38:53 UTC
Created attachment 85070 [details, diff]
qc-usb-0.6.3.diff

A major workout on this ebuild, please consider updating portage.
Comment 6 Alon Bar-Lev (RETIRED) gentoo-dev 2006-04-20 14:41:09 UTC
#5 uses linux-mod properly so it compiles the module correctly and installs the module to the right place.
Please consider to apply.
Comment 7 Gert-Jan Rodenburg 2006-04-24 02:29:53 UTC
ebuild as posted in #5 works!
Comment 8 Gert-Jan Rodenburg 2006-04-24 03:19:48 UTC
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.
Comment 9 Alon Bar-Lev (RETIRED) gentoo-dev 2006-04-24 06:10:48 UTC
Created attachment 85356 [details]
qc-usb-0.6.3-r1.ebuild

Thanks.
Since there is no OR so only check for USB.
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2006-04-24 16:12:51 UTC
*** Bug 131159 has been marked as a duplicate of this bug. ***
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2006-04-25 05:34:25 UTC
*** Bug 131212 has been marked as a duplicate of this bug. ***
Comment 12 Alon Bar-Lev (RETIRED) gentoo-dev 2006-04-26 10:49:33 UTC
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.
Comment 13 Hypnos 2006-04-29 05:11:09 UTC
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 14 Alon Bar-Lev (RETIRED) gentoo-dev 2006-04-29 07:32:07 UTC
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.
Comment 15 Colin Macdonald 2006-04-29 17:46:05 UTC
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.
Comment 16 Alon Bar-Lev (RETIRED) gentoo-dev 2006-05-02 09:06:19 UTC
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!
Comment 17 Jakub Moc (RETIRED) gentoo-dev 2006-05-02 09:12:52 UTC
Bug wranglers won't fix the bug.
Comment 18 Stefan Schweizer (RETIRED) gentoo-dev 2006-05-03 15:56:30 UTC
thanks, fixed