Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 133015

Summary: ati-drivers does not accept vserver-sources as a valid kernel package
Product: Gentoo Linux Reporter: Hubert Mercier (RETIRED) <anigel>
Component: New packagesAssignee: X11 External Driver Maintainers <x11-drivers>
Status: RESOLVED DUPLICATE    
Severity: enhancement    
Priority: High    
Version: 2006.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: ati-drivers ebuild patch

Description Hubert Mercier (RETIRED) gentoo-dev 2006-05-11 06:36:16 UTC
Hi !

I'm currently using a test machine to run vservers, and I was about to configure X server on it when I realized portage was about to install gentoo-sources, while I was already running a 2.6.15-vserver.

I searched for a while, trying to understand how dependencies are dealed with in portage, and I think I found what happens :

ati-drivers : DEPEND=">=virtual/linux-sources-2.4

I looked at gentoo-sources and vserver-sources ebuilds, and I think the problem is located directly in the naming convention of the vserver-sources. More particularly, the kernel_is* functions of the kernel-2 eclass causes this behaviour.

vserver-sources ebuilds are named vservers-sources-2.0.1-rx, for example. So, major version number is 2, but minor one is 0. Neither the kernel_is_2_6 nor the kernel_is_2_4 function are able to understand that this is a real 2.6 kernel, despite the versionning.

The simpliest solution to this problem seems to patch the ati-drivers ebuilds as follows. An other way to deal with would be to name the vserver-sources series, following the kernel version thay are based on. but I guess there would be a very good reason not to do so ;-)
Comment 1 Hubert Mercier (RETIRED) gentoo-dev 2006-05-11 06:36:59 UTC
Created attachment 86610 [details, diff]
ati-drivers ebuild patch
Comment 2 Hubert Mercier (RETIRED) gentoo-dev 2006-06-22 06:42:03 UTC
Hi !

Is there a problem with this patch ? Maybe this is just not the way you wish to deal this problem with ? Let me know, to allow me to work on it ?

Thanks !
Comment 3 Benedikt Böhm (RETIRED) gentoo-dev 2006-10-24 02:53:57 UTC

*** This bug has been marked as a duplicate of 118442 ***