Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 87048 - ivtv-0.20_rc3-r3 fails to emerge for non-running kernel
Summary: ivtv-0.20_rc3-r3 fails to emerge for non-running kernel
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Television related Applications in Gentoo's Portage
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-28 16:30 UTC by Jeremiah Morris
Modified: 2005-04-26 16:24 UTC (History)
1 user (show)

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


Attachments
allows ebuild to succeed on my system (ivtv-0.2.0_rc3-r3.ebuild.patch,1.21 KB, patch)
2005-03-28 16:34 UTC, Jeremiah Morris
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremiah Morris 2005-03-28 16:30:47 UTC
When I emerge ivtv using KBUILD_OUTPUT to build objects in another location, the
process fails, ultimately producing the message "build of utils failed". I believe the
ebuild does not make appropriate use of KV_OUT_DIR in some situations.

In a related problem, the warning about builtin msp3400.ko uses `uname -r`
instead of KV_FULL to check for the module, so it is incorrect for installing into
non-running kernels.

Reproducible: Always
Steps to Reproduce:
1. set the KBUILD_OUTPUT environment variable to build ivtv elsewhere
2. compile a new kernel version, but don't reboot into it
3. emerge ivtv
Actual Results:  
emerge failed when building the utilities, with the following output:

Makefile:8: /usr/src/linux/.config: No such file or directory
make: *** No rule to make target `/usr/src/linux/.config'.  Stop.

!!! ERROR: media-tv/ivtv-0.2.0_rc3-r3 failed.
!!! Function src_compile, Line 52, Exitcode 2
!!! build of utils failed
!!! If you need support, post the topmost build error, NOT this status message.



Expected Results:  
emerge installs successfully, and warns when video/msp3400.ko is present
in the target kernel's modules directory
Comment 1 Jeremiah Morris 2005-03-28 16:34:34 UTC
Created attachment 54726 [details, diff]
allows ebuild to succeed on my system

With the following patch, ivtv emerges successfully on my system, and
correctly warns about msp3400.ko in my non-running kernel. Not sure
if this is totally correct (the change to the utils make line seems like a
hack), but it works for me.
Comment 2 Brian Jackson (RETIRED) gentoo-dev 2005-04-26 16:24:34 UTC
A. KBUILD_OUTPUT is to tell portage where your kernel's output dir is (i.e. you have a single kernel src tree, and multiple output trees)

B. The ivtv Makefile is what's kind of off here. It should be using O instead of KERNELDIR, but whatever.

The new ebuild will be in cvs tonight sometime.