Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 234756 - Please provide ebuild for ivtv-utils for kernel 2.6.26
Summary: Please provide ebuild for ivtv-utils for kernel 2.6.26
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Television related Applications in Gentoo's Portage
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 214296
  Show dependency tree
 
Reported: 2008-08-14 17:34 UTC by Eric Bosch
Modified: 2009-01-04 11:40 UTC (History)
2 users (show)

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


Attachments
ebuild for ivtv svn to allow install of ivtv utils on kernel 2.6.26 (ivtv-utils-1.3.0_alpha4128.ebuild,2.71 KB, text/plain)
2008-08-14 17:38 UTC, Eric Bosch
Details
ebuild for media-tv/ivtv-utils-1.3.0 (ivtv-utils-1.3.0.ebuild,2.35 KB, text/plain)
2008-09-12 07:55 UTC, simon
Details
Fix ebuild description, fix path for perl utils (fix_desc_and_path.patch,702 bytes, patch)
2008-10-23 14:44 UTC, Zoltan Karcagi
Details | Diff
Remove unneeded stuff (remove_unneded_stuff.patch,3.42 KB, patch)
2008-10-23 15:03 UTC, Zoltan Karcagi
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Bosch 2008-08-14 17:34:51 UTC
Currently, there is no ebuild in which to install ivtv tools/utilities when running gentoo-sources-2.6.26 with ivtv kernel module build into kernel.

Reproducible: Always

Steps to Reproduce:
1.Install Gentoo-sources 2.6.26
2.Attempt to emerge ivtv.
3.

Actual Results:  
ivtv fails due to kernel being 2.6.26.  I'm using built-in module for ivtv, however need the utils/test piece.

Expected Results:  
ivtv ebuild should have detected built-in kernel modules and installed the util/test programs.

Since all of the kernel modules are now integrated into the kernel, it makes sense to have an ebuild for ivtv-utils.  I have created one that has it working, but you may want to tweak it a bit.  I'll attach it below.
-------------------------------------------------------------------------------

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-tv/ivtv/ivtv-1.3.0_alpha.ebuild,v 1.2 2008/07/24 18:22:10 armin76 Exp $

inherit eutils linux-mod versionator subversion

DESCRIPTION="ivtv driver for Hauppauge PVR PCI cards"
HOMEPAGE="http://www.ivtvdriver.org"
ESVN_REPO_URI="http://ivtvdriver.org/svn/ivtv/trunk"
SRC_URI=""
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~ppc x86"
IUSE="perl"
RDEPEND=">=sys-fs/udev-103"
DEPEND="app-arch/unzip"
PDEPEND="media-tv/pvr-firmware
	perl? (
		dev-perl/Video-Frequencies
		dev-perl/Video-ivtv
		dev-perl/Config-IniFiles
		virtual/perl-Getopt-Long
		dev-perl/perl-tk )"

pkg_setup() {

	CONFIG_CHECK="EXPERIMENTAL KMOD HAS_IOMEM FW_LOADER I2C I2C_ALGOBIT
		VIDEO_DEV VIDEO_CAPTURE_DRIVERS VIDEO_V4L1 VIDEO_V4L2
		VIDEO_HELPER_CHIPS_AUTO VIDEO_IVTV"

	if ! ( kernel_is 2 6 26 ); then
		eerror "Each IVTV driver branch will only work with a specific"
		eerror "linux kernel branch."
		eerror ""
		eerror "You will need to either:"
		eerror "a) emerge a different kernel"
		eerror "b) emerge a different ivtv driver"
		eerror ""
		eerror "See http://ivtvdriver.org/ for more information"
		die "This only works on 2.6.26 kernels"
	fi

	ewarn ""
	ewarn "Make sure that your I2C and V4L kernel drivers are loaded as"
	ewarn "modules, and not compiled into the kernel, or IVTV will not"
	ewarn "work."
	ewarn ""

	BUILD_PARAMS="KDIR=${KV_DIR}"
	 ewarn ${KV_DIR}
}

src_unpack() {
	subversion_src_unpack 
}

src_compile() {
	cd "${S}"
	emake INCDIR="${KV_DIR}/include" || die "failed to build utils "
}

src_install() {
	cd "${S}"
	make DESTDIR="${D}" PREFIX="/usr" install || die "failed to install utils"
	use perl && dobin utils/perl/*.pl
	
	cd "${S}"
	dodoc README* doc/* ChangeLog*
	use perl && dodoc utils/perl/README.ptune
}

pkg_postinst() {

	elog ""
	elog "This version of the IVTV driver contains only ivtv utilities"
	elog "The driver itself in integral within the kernel"
	ewarn ""
	ewarn "IMPORTANT: In case of problems first read this page:"
	ewarn "http://www.ivtvdriver.org/index.php/Troubleshooting"
	ewarn ""
	ewarn "If any of these conditions match your setup, you may want to look at the"
	ewarn "README in /usr/share/doc/${PF}/"
	ewarn ""
	ewarn " - Using MythTV, a PVR-350 and the ivtvfb module"
	ewarn " - Using the ivtv X driver and the ivtvfb module"
	ewarn " - You want to manually build ivtv against v4l-dvb"
	ewarn ""
	ewarn "Also, the ivtv package comes with lots of documentation regarding setup,"
	ewarn "proper use and debugging utilities."
	ewarn "They are also located in /usr/share/doc/${PF}/"
	ewarn ""
	ewarn "For more information, see the IVTV driver homepage at:"
	ewarn "http://www.ivtvdriver.org/"
}
Comment 1 Eric Bosch 2008-08-14 17:38:37 UTC
Created attachment 162913 [details]
ebuild for ivtv svn to allow install of ivtv utils on kernel 2.6.26

This ebuild may need some minor tweaking, but as is installs everything I need.
Comment 2 simon 2008-09-12 07:55:02 UTC
Created attachment 165240 [details]
ebuild for media-tv/ivtv-utils-1.3.0

bump.

mods please reassign to component "ebuilds".

Attached new ebuild for stable upstream release (ivtv-utils-1.3.0).

Ebuild-Changelog: 
- Adjusted package description
- replaced svn source by regular source
- removed svn related stuff
- replaced eerror by ewarn when kernel version does not fit
- adjusted postinstall messages

Further tweaking may be appropriate. Works on x86.
Comment 3 G.K.MacGregor 2008-10-21 16:38:00 UTC
(In reply to comment #2)
> Created an attachment (id=165240) [edit]
> ebuild for media-tv/ivtv-utils-1.3.0
> 
> Further tweaking may be appropriate. Works on x86.

This ebuild works straight away on amd64 too.
Comment 4 Doug Goldstein (RETIRED) gentoo-dev 2008-10-21 21:49:53 UTC
there's an ivtv-utils package in the tree now. give it a whirl.
Comment 5 Zoltan Karcagi 2008-10-23 10:56:04 UTC
CONFIG_CHECK="!VIDEO_HELPER_CHIPS_AUTO" made the emerge of this ebuild fail for me, but that's now a valid config option for the in-kernel driver.

IMHO the real problem is that all the ivtv driver related stuff (dependencies and config checks) should be removed from this ebuild: they don't apply to these utilites themselves.

I can create a patch for that if needed.

 
Comment 6 Eric Bosch 2008-10-23 12:58:30 UTC
Well, from my perspective, as I only have pvr150 boards, it does prompt you to remove some unnecessary drivers from the kernel.  I too was using that, but after I got this error, I went back and reconfigured my kernel, removing the video_helper_chips_auto, and I cleared all of the additional modules that were being compiled, except for the IVTV one.  I was a bit worried about functionality, but it does work fine.  The other devices are unnecessary, unless you have capture cards that are supported only through the helper, BUT, you're probably right, the ebuild really doesn't need to check that.
Comment 7 Zoltan Karcagi 2008-10-23 14:44:17 UTC
Created attachment 169572 [details, diff]
Fix ebuild description, fix path for perl utils

First, here are two small fixes...
Comment 8 Zoltan Karcagi 2008-10-23 15:01:08 UTC
(In reply to comment #6)
> Well, from my perspective, as I only have pvr150 boards, it does prompt you to
> remove some unnecessary drivers from the kernel.  I too was using that, but
> after I got this error, I went back and reconfigured my kernel, removing the
> video_helper_chips_auto, and I cleared all of the additional modules that were
> being compiled, except for the IVTV one.  I was a bit worried about
> functionality, but it does work fine.  The other devices are unnecessary,
> unless you have capture cards that are supported only through the helper, BUT,
> you're probably right, the ebuild really doesn't need to check that.
> 

I have a pvr-250 and an another less known ivtv card (club3d zap-tv). They need the saa7115, msp3400, cx25840, cx23416 helper modules. However, selecting ivtv now forces all of them to be built regardless of VIDEO_HELPER_CHIPS_AUTO, so I admit it does not makes much sense, but it does (or should) not do any harm either.

Instead of fixing just that check, I still propose a more radical ebuild surgery. Patch follows shortly...

Comment 9 Zoltan Karcagi 2008-10-23 15:03:34 UTC
Created attachment 169576 [details, diff]
Remove unneeded stuff
Comment 10 Octavian 2008-12-01 06:46:38 UTC
Are there any plans for ivtv-utils unmasking?
Comment 11 G.K.MacGregor 2009-01-04 11:40:18 UTC
This ebuild prevents the new linux-headers-2.6.27-r2 from being merged, due to "collisions".


>>> Completed installing linux-headers-2.6.27-r2 into /var/tmp/portage/sys-kernel/linux-headers-2.6.27-r2/image/

>>> Installing sys-kernel/linux-headers-2.6.27-r2
* checking 591 files for package collisions
 * Messages for package sys-kernel/linux-headers-2.6.27-r2:

 * This package will overwrite one or more files that may belong to other
 * packages (see list below). You can use a command such as `portageq
 * owners / <filename>` to identify the installed package that owns a
 * file. If portageq reports that only one package owns a file then do
 * NOT file a bug report. A bug report is only useful if it identifies at
 * least two or more packages that are known to install the same file(s).
 * If a collision occurs and you can not explain where the file came from
 * then you should simply ignore the collision since there is not enough
 * information to determine if a real problem exists. Please do NOT file
 * a bug report at http://bugs.gentoo.org unless you report exactly which
 * two packages install the same file(s). Once again, please do NOT file
 * a bug report unless you have completely understood the above message.
 *
 * Detected file collision(s):
 *
 *      /usr/include/linux/ivtv.h
 *      /usr/include/linux/ivtvfb.h
 *
 * Searching all installed packages for file collisions...
 *
 * Press Ctrl-C to Stop
 *
 * media-tv/ivtv-utils-1.3.0
 *      /usr/include/linux/ivtv.h
 *      /usr/include/linux/ivtvfb.h
 *
 * Package 'sys-kernel/linux-headers-2.6.27-r2' NOT merged due to file
 * collisions. If necessary, refer to your elog messages for the whole
 * content of the above message.


Result of "portageq owners / /usr/include/linux/ivtv.h /usr/include/linux/ivtvfb.h"
media-tv/ivtv-utils-1.3.0
        /usr/include/linux/ivtv.h
        /usr/include/linux/ivtvfb.h