Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 273578 - media-tv/linuxtv-dvb-headers-3.1 overwrites valid kernel headers in /usr/include/linux
Summary: media-tv/linuxtv-dvb-headers-3.1 overwrites valid kernel headers in /usr/incl...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo VDR Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-10 15:08 UTC by peter brouwer
Modified: 2009-06-14 20:03 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description peter brouwer 2009-06-10 15:08:30 UTC
On kernel 2.6.29-gentoo-r5
The package media-tv/mythtv pulls in the package media-tv//linuxtv-dvb-headers-3.1
The package overwrites newer version of dvb headers in /usr/include/linux/dvb.

Second problem
make headers_install does not correct the problem, neither does 
emerge --unmerge media-tv//linuxtv-dvb-headers-3.1




Reproducible: Always

Steps to Reproduce:
1 on a fresh system run make headers_install in /usr/src/linux
kernel being 2.6.29-r5
File /usr/include/linux/dvb/version.h shows version 5 .0
2. emerge mythtv
3. File /usr/include/linux/dvb/version.h shows version 3.2

Actual Results:  
The dvb include files installed by package media-tv//linuxtv-dvb-headers-3.1 downgrade the dvb include files in version

Expected Results:  
No need to pull in media-tv//linuxtv-dvb-headers-3.1 package
Change ebuild for mythtv to stop this for kernel versions 2.6.28 onwards

Secondly, please add a flag in make headers_install to force a reinstall of the kernel headers.


Mythtv is generated with variables with wrong structure layout used to call kernel dvb api functions!
Comment 1 peter brouwer 2009-06-10 15:11:08 UTC
Might be an idea to add a command in mythtv ebuild to execute a 
make headers_install in the /usr/src/linux directory
Comment 2 Matthias Schwarzott gentoo-dev 2009-06-10 15:23:53 UTC
If you had a look into linuxtv-dvb-headers-3.1.ebuild you see: It does not install any files!!
It uses
RDEPEND="|| (
        >=sys-kernel/linux-headers-2.6.11-r2
        media-tv/linuxtv-dvb
    )"

to get either linux-headers new enough for dvb-api version being at least 3.1 or linuxtv-dvb (in case someone still uses kernel 2.4).
So I guess linuxtv-dvb could be deprecated.

On your system linux/dvb/* should be provided by sys-kernel/linux-headers package.
So please provide the version of linux-headers on your system or better full emerge --info.

Why do you ever "run make headers_install in /usr/src/linux" and not just update linux-headers?
If some package overwrites the files of another one portage should abort emerge.

Comment 3 peter brouwer 2009-06-10 16:40:25 UTC
Output from emerge --search linux-headers
*  sys-kernel/linux-headers
      Latest version available: 2.6.27-r2
      Latest version installed: 2.6.27-r2
      Size of files: 3,508 kB
      Homepage:      http://www.kernel.org/ http://www.gentoo.org/
      Description:   Linux system headers
      License:       GPL-2

 emerge --search gentoo-sources
Searching...
[ Results for search key : gentoo-sources ]
[ Applications found : 1 ]

*  sys-kernel/gentoo-sources
      Latest version available: 2.6.29-r5
      Latest version installed: 2.6.29-r5
      Size of files: 55,375 kB

Sorry for the confusion,
This leaves the question for me why linux headers are out of sync with the distribution kernel i.e. 2.6.29-r5?
Or 
Comment 4 Matthias Schwarzott gentoo-dev 2009-06-10 16:53:25 UTC
You still miss "emerge --info".
Does the version of the dvb-headers care for mythtv?
If yes, we should create linuxtv-dvb-headers-5 depending on new enough linux-headers.
Comment 5 SpanKY gentoo-dev 2009-06-10 19:00:33 UTC
not sure why this is assigned to toolchain ... we dont have anything to do with media-tv/* ...
Comment 6 peter brouwer 2009-06-10 20:49:12 UTC
I don't think the problem is the dependency ov dvb headers version between mythtv and the headers but looking at the structure definitions it looks like some data structures have changed. Would that not imply a change in data structures in the dvb kernel API?
Comment 7 Matthias Schwarzott gentoo-dev 2009-06-14 20:03:22 UTC
There are just new structures used by new ioctls. But the old ones are kept as they were before, so old apps can keep working.
Closing this bug, as linuxtv-dvb-headers definitly installs no files, so cannot overwrite any.

Reopen if you think this issue is a valid problem.