Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 140717 - spca5xx incompatible with kernel sources >=2.6.18
Summary: spca5xx incompatible with kernel sources >=2.6.18
Status: RESOLVED LATER
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Mike Doty (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-16 18:13 UTC by Marti Raudsepp
Modified: 2006-09-15 01:30 UTC (History)
1 user (show)

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


Attachments
spca5xx-linux2.6.17-headers.patch (spca5xx-linux2.6.17-headers.patch,734 bytes, patch)
2006-07-16 18:16 UTC, Marti Raudsepp
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marti Raudsepp 2006-07-16 18:13:28 UTC
The spca5xx webcam driver ebuild fails to compile due to V4L kernel-space declarations being moved from <linux/videodev.h> to <media/v4l2-dev.h>.

The attached patch fixes the issue.
Comment 1 Marti Raudsepp 2006-07-16 18:16:44 UTC
Created attachment 91940 [details, diff]
spca5xx-linux2.6.17-headers.patch

Patch to include either <linux/videodev.h> or <media/v4l2-dev.h> depending on kernel source version.
Comment 2 Daniel Black (RETIRED) gentoo-dev 2006-07-16 22:47:48 UTC
Works for me - please provide emerge --info and what kernel versions you tried.


This is what I go:
>>> Install spca5xx-20060501 into /var/tmp/portage/spca5xx-20060501/image/ category media-video
 * Installing spca5xx module
>>> Completed installing spca5xx-20060501 into /var/tmp/portage/spca5xx-20060501/image/

man:
strip: i686-pc-linux-gnu-strip --strip-unneeded
>>> Merging media-video/spca5xx-20060501 to /
--- /usr/
--- /usr/share/
--- /usr/share/doc/
--- /usr/share/doc/spca5xx-20060501/
>>> /usr/share/doc/spca5xx-20060501/CHANGELOG.gz
>>> /usr/share/doc/spca5xx-20060501/INSTALL.gz
>>> /usr/share/doc/spca5xx-20060501/README.gz
--- /lib/
--- /lib/modules/
>>> /lib/modules/2.6.17-gentoo-r3/
>>> /lib/modules/2.6.17-gentoo-r3/usb/
>>> /lib/modules/2.6.17-gentoo-r3/usb/video/
>>> /lib/modules/2.6.17-gentoo-r3/usb/video/spca5xx.ko

against gentoo-sources-2.6.17-r3

lapy ~ # emerge --info
Portage 2.1.1_pre3 (default-linux/x86/2006.0, gcc-3.4.6/vanilla, glibc-2.4-r3, 2.6.17-gentoo-r2 i686)
=================================================================
System uname: 2.6.17-gentoo-r2 i686 Intel(R) Celeron(R) CPU 2.40GHz
Gentoo Base System version 1.12.1
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.3.5, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
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.17
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
Comment 3 Marti Raudsepp 2006-07-16 23:19:10 UTC
Tried with vanilla-sources-2.6.17 and mm-sources-2.6.18_rc1-r1 (with a couple of bugfix patches), on amd64.


I didn't initially think this was important, but my emerge --info follows:
Portage 2.1.1_pre3 (default-linux/amd64/2005.1, gcc-4.1.1/amd64-vanilla, glibc-2.4-r3, 2.6.18-rc1-mm1-non13 x86_64)
=================================================================
System uname: 2.6.18-rc1-mm1-non13 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.1
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  0.4.2-r1
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
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.17
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe -O2 -march=k8 -mtune=k8 -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/init.d /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /usr/share/X11"
CXXFLAGS="-pipe -O2 -march=k8 -mtune=k8 -fomit-frame-pointer"
DISTDIR="/usr/distfiles"
FEATURES="autoconfig confcache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.ipv6.linux.ee/pub/gentoo/distfiles/ http://ftp.linux.ee/pub/gentoo/distfiles/"
LANG="en_US"
LC_ALL="en_US.UTF-8"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/musicbrainz-overlay /usr/local/portage /usr/portage/local/layman/xgl-coffee /usr/portage/local/layman/fluidportage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac aalib alsa avi berkdb bitmap-fonts browserplugin bzip2 cairo cddb cli crypt curl dbus dga dlloader dri dvd emboss encode exif fastcgi fbcon ffmpeg firefox flac foomaticdb gdbm gif glut gmp gnome gphoto2 gpm gtk gtk2 hal idn imagemagick imlib ipv6 isdnlog jbig jce joystick jpeg jpeg2k lcms logrotate lzo lzw lzw-tiff mad matroska mikmod mng motif mozilla moznoirc mozsvg mp3 mpeg mplayer musepack musicbrainz ncurses nptl nsplugin offensive ogg oggvorbis openal opengl pam pcre pdflib perl png pppd python qt quicktime quotas randr readline reflection rtc samba sdl session smartcard speex spell spl sqlite ssl startup-notification svg theora tiff truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vorbis wxwindows xgetdefault xine xml xml2 xmms xorg xpm xv xvid xvmc zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_fglrx video_cards_vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Mike Doty (RETIRED) gentoo-dev 2006-07-17 07:51:59 UTC
2.6.17 is fine, however, the reporter isn't using 2.6.17 (according to portage) 2.6.18-rc1-mm1-non13 isn't supported.  try gentoo-sources-2.6.17  Thanks for the patch though, I might use it when 2.6.18 is released.
Comment 5 Marti Raudsepp 2006-07-17 21:01:31 UTC
Indeed, gentoo-sources has apparently reverted this change from vanilla 2.6.17, thanks for noticing that.