Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 207874 - media-tv/ivtv-1.0.3-r2 does not compile with 2.6.24 kernel
Summary: media-tv/ivtv-1.0.3-r2 does not compile with 2.6.24 kernel
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Television related Applications in Gentoo's Portage
URL:
Whiteboard:
Keywords:
: 210626 213459 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-01-28 12:16 UTC by Daan de Beer
Modified: 2008-07-01 14:51 UTC (History)
8 users (show)

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


Attachments
check for kernel ivtvfb and don't build the packaged fb on 2.6.24 (ivtv-1.0.3-r2-fbcon-2_6_24.patch,1.08 KB, patch)
2008-04-26 18:43 UTC, Lucas S. Bickel
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daan de Beer 2008-01-28 12:16:21 UTC
The current ivtv ebuild does not compile on 2.6.24 kernels, due to the fact the kernel check does not validate that kernel.

if ! ( kernel_is 2 6 22 || kernel_is 2 6 23 ); then

should be changed to

if ! ( kernel_is 2 6 22 || kernel_is 2 6 23 || kernel_is 2 6 24 ); then



Reproducible: Always

Steps to Reproduce:
1. Emerge 2.6.24
2. Try to emerge ivtv
3.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2008-01-28 12:24:19 UTC
(In reply to comment #0)
> should be changed to
> if ! ( kernel_is 2 6 22 || kernel_is 2 6 23 || kernel_is 2 6 24 ); then

No, this version isn't intended for 2.6.24 and there's no newer one available ATM.

http://www.ivtvdriver.org/index.php/Download
Comment 2 Doug Goldstein (RETIRED) gentoo-dev 2008-01-28 14:56:02 UTC
Have you actually successfully made that change and had it compile? As far as I remember, some kernel headers are being changed and a few v4l ioctls are being changed which requires a newer version of the ivtv userspace bits. I believe there's going to be a 1.1.x for this purpose.
Comment 3 Jiri Tyr 2008-01-28 21:47:00 UTC
(In reply to comment #2)
> Have you actually successfully made that change and had it compile? As far as I
> remember, some kernel headers are being changed and a few v4l ioctls are being
> changed which requires a newer version of the ivtv userspace bits. I believe
> there's going to be a 1.1.x for this purpose.

Doesn't matter, but the above hack works well for me. Maybe something have been changed but TV, radio, IR works well. It's better to have some limitation (not working some ioctls) than don't have working whole ivtv. I propose to publish ebuild with the hack for kernel 2.6.24.
Comment 4 Doug Goldstein (RETIRED) gentoo-dev 2008-01-28 22:39:47 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > Have you actually successfully made that change and had it compile? As far as I
> > remember, some kernel headers are being changed and a few v4l ioctls are being
> > changed which requires a newer version of the ivtv userspace bits. I believe
> > there's going to be a 1.1.x for this purpose.
> 
> Doesn't matter, 

It matters 100% since that's the scope of the question. Does the change above ACTUALLY work for you on a 2.6.24 kernel. That's the question.

The ivtv package is not required to use ivtv. It's merely for the userspace utils. cat /dev/video0 > file.mpg is all that's necessary to use this driver. The driver exists purely in the kernel.
Comment 5 Helmut Eberharter 2008-01-29 08:43:14 UTC
1.0.3-r2 compiles fine on 2.6.24, and during a quick check i could watch TV without problems.
Comment 6 Doug Goldstein (RETIRED) gentoo-dev 2008-01-29 14:55:23 UTC
(In reply to comment #5)
> 1.0.3-r2 compiles fine on 2.6.24, and during a quick check i could watch TV
> without problems.
> 

Thank you. That's the info I was looking for.

Fixed in 1.0.3-r2
Comment 7 Doug Goldstein (RETIRED) gentoo-dev 2008-02-18 22:47:04 UTC
*** Bug 210626 has been marked as a duplicate of this bug. ***
Comment 8 Doug Goldstein (RETIRED) gentoo-dev 2008-02-18 22:47:43 UTC
per bug #210626, I'm re-opening and reverting the change requested by the original poster.
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2008-03-15 07:06:44 UTC
*** Bug 213459 has been marked as a duplicate of this bug. ***
Comment 10 subs 2008-03-15 16:10:09 UTC
Since you marked my bug as a dup, can you add these to the stablereq 

dev-perl/Video-Frequencies-0.03
dev-perl/Video-ivtv-0.13

because they are required for ivtv-1.0.3-r2
Comment 11 Alan Hourihane 2008-03-24 20:45:45 UTC
ivtvfb doesn't compile on 2.6.24.....

created ivtv-svnversion.h
make -C /usr/src/linux M=/var/tmp/portage/media-tv/ivtv-1.0.3-r2/work/ivtv-1.0.3/driver modules
make[1]: Entering directory `/usr/src/linux-2.6.24-gentoo-r3'
  CC [M]  /var/tmp/portage/media-tv/ivtv-1.0.3-r2/work/ivtv-1.0.3/driver/ivtvfb.o
In file included from /var/tmp/portage/media-tv/ivtv-1.0.3-r2/work/ivtv-1.0.3/driver/ivtvfb.c:50:
/var/tmp/portage/media-tv/ivtv-1.0.3-r2/work/ivtv-1.0.3/driver/ivtv-driver.h:68:24: error: media/ivtv.h: No such file or directory
make[2]: *** [/var/tmp/portage/media-tv/ivtv-1.0.3-r2/work/ivtv-1.0.3/driver/ivtvfb.o] Error 1
make[1]: *** [_module_/var/tmp/portage/media-tv/ivtv-1.0.3-r2/work/ivtv-1.0.3/driver] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.24-gentoo-r3'
make: *** [all] Error 2
 * 
 * ERROR: media-tv/ivtv-1.0.3-r2 failed.
 * Call stack:
Comment 12 Garth 2008-03-30 08:10:43 UTC
I got the same prob as #11.

Having USE="-fbcon" solved this.
From what I understand, fbcon only made the ivtv ebuild build the ivtvfb driver, which is now located inside the kernel.

Dunno if ivtvfb output work with -fbcon and the kernel's ivtvfb (just recently switched to an other output mode). But if it does work, I'd suggest that the ebuild do as if -fbcon was used for kernel >=2.6.24.
Comment 13 Jesse Adelman 2008-04-14 00:26:26 UTC
Same as #11 here, too.
Comment 14 Lucas S. Bickel 2008-04-26 18:43:36 UTC
Created attachment 151058 [details, diff]
check for kernel ivtvfb and don't build the packaged fb on 2.6.24

everything here seems to work like it should with this patch. the ivtvfb from the kernel loads and works. 

i haven't looked into checking if ivtvfbctl works as of yet
Comment 15 Sander Sweers 2008-04-27 13:35:04 UTC
(In reply to comment #14)
> i haven't looked into checking if ivtvfbctl works as of yet

It should work but I am not the expert ;-)

I will ping Hans if he can release ivtv 1.1 for kernel 2.6.24 and up.
Comment 16 Sander Sweers 2008-05-07 12:13:55 UTC
(In reply to comment #15)
> I will ping Hans if he can release ivtv 1.1 for kernel 2.6.24 and up.

There should be a release as soon as Hans has some time.

All tools from 1.0.3 will keep working for kernel 2.6.24 and 2.6.25. So the proposed change in the ebuild will "fix" the compilation problems. But then make it include any future kernel versions or at least 2.6.25.
Comment 17 Sander Sweers 2008-05-24 13:15:43 UTC
(In reply to comment #16)
> There should be a release as soon as Hans has some time.

2 new versions have just been released. ivtv-1.1 for kernel 2.6.24 and ivtv-1.2 for kernel 2.6.25.
Comment 18 subs 2008-06-21 05:28:44 UTC
Is there any update to this, we are going on a month since its release and no updated ebuild.
Comment 19 Sander Sweers 2008-06-22 21:56:49 UTC
ok what is happening with this. Kernel 2.6.24 is stable and without a properly working ivtv ebuild.....?
Comment 20 Doug Goldstein (RETIRED) gentoo-dev 2008-06-23 14:31:32 UTC
chill out.  if things arent getting fixed fast enough for your taste, sign up
and help out.  or just wait patiently and quietly.

None of the media-tv devs use kernels this new. If we can't test it, we can't commit it.
Comment 21 Doug Goldstein (RETIRED) gentoo-dev 2008-07-01 14:51:26 UTC
newer packages are in the tree