Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 278255 - media-tv/v4l2-ctl - New package (Split from ivtv-utils)
Summary: media-tv/v4l2-ctl - New package (Split from ivtv-utils)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Television related Applications in Gentoo's Portage
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2009-07-18 11:00 UTC by Dominique Michel
Modified: 2010-11-05 22:45 UTC (History)
1 user (show)

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


Attachments
v4l2-ctl-1.3.0 ebuild (v4l2-ctl-1.3.0.ebuild,1.94 KB, text/plain)
2009-07-18 11:01 UTC, Dominique Michel
Details
Renamed patch from ivtv-utils-1.3.0-r1 (v4l2-ctl-1.3.0-2.6.27.patch,4.90 KB, text/plain)
2009-07-18 11:02 UTC, Dominique Michel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dominique Michel 2009-07-18 11:00:26 UTC
v4l2-ctl will work with any v4l2 video or radio card. Normally, ivtv-utils provide it, but this ebuild will fail when the ivtv related kernel option is not present.

I made an ebuild that will compile and install only v4l2-ctl from the ivtv-utils tarball.

Reproducible: Always

Steps to Reproduce:
1. emerge ivtv-utils
2.
3.

Actual Results:  
Didn't find the IVTV kernel option. It is normal because I don't own such hardware.

The consequence is that v4l2-ctl is not installed when I need it in order to easily switch between mono and stereo sound with my radio card (haupauge hvr-4000).

Expected Results:  
Install v4l2-ctl.

My kernel is a 2.6.29-gentoo-r4, so it have no CONFIG_VIDEO_V4L1 option when CONFIG_VIDEO_V4L2=m is selected, but a CONFIG_VIDEO_V4L1_COMPAT option.

I took the ivtv-utils ebuild as basis for this ebuild. Another way would be to hack ivtv-utils ebuild, but it is maybe more complicated and more confusing.

DEPEND="!media-tv/v4l2-ctl" into ivtv-utils ebuild would be necessary if v4l2-ctl get its way into portage.
Comment 1 Dominique Michel 2009-07-18 11:01:30 UTC
Created attachment 198404 [details]
v4l2-ctl-1.3.0 ebuild
Comment 2 Dominique Michel 2009-07-18 11:02:30 UTC
Created attachment 198405 [details]
Renamed patch from ivtv-utils-1.3.0-r1
Comment 3 Steve Dibb (RETIRED) gentoo-dev 2009-07-28 21:01:19 UTC
(In reply to comment #0)
> v4l2-ctl will work with any v4l2 video or radio card. Normally, ivtv-utils
> provide it, but this ebuild will fail when the ivtv related kernel option is
> not present.

I like the idea, but why not just make having IVTV possibly dependent instead?  Or am I missing something.

Comment 4 Dominique Michel 2009-07-29 15:21:58 UTC
If I understand what you mean by possibly dependent, it would be an USE flag into ivtv-utils live "v4l2ctl-only" that will compile and install only v4l2-ctl from the sources.

Also, I was not able to compile the ivtv related part of the package with emerge, make was failing even before the ivtv utils part, during the compilation of v4l2-debug (but it was OK when compiling by hand directly from the sources, it doesn't compile v4l2-debug and even the ivtv parts was compiling.), that even after changing the dependencies in order to force it to compile. It is why I stated to make another ebuild.

Anyway, It make no sens that someone that doesn't have an ivtv card install everything.
Comment 5 Steve Dibb (RETIRED) gentoo-dev 2010-05-21 01:51:50 UTC
Added to tree

Dominique, will you test and see if it's working for you
Comment 6 Dominique Michel 2010-05-22 21:38:45 UTC
Thank you Steve,

it work fine here on amd64.
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2010-11-05 22:45:52 UTC
ivtv-ctl and v4l2-ctl are now in v4l-utils