On Mon, 22 Jun 2009 11:49:15 -0400 
"John P. Burkett" wrote -
> 
> Thank you, David.  The 2.6.22 Makefile I copied from another machine (as
> described in my previous note) starts as follows:
> VERSION = 2
> PATCHLEVEL = 6
> SUBLEVEL = 22
> EXTRAVERSION = -gentoo-r2
> NAME = Holy Dancing Manatees, Batman!
> 
> As reported in my last note, putting that in my linux-2.6.22-gentoo-r2
> directory does not suffice to let "emerge ati-drivers" succeed.
> 
> My latest experiment was editing the Makefile, changing the fourth line
> from EXTRAVERSION = -gentoo-r2
> to
> EXTRAVERSION = -gentoo-r2-osmp
> 
> After making that change, I again tried
> emerge ati-drivers
> 
> The response was the familiar
>  * Found kernel source directory:
>  *     /usr/src/linux
>  * Could not detect kernel version.
>  * Please ensure that /usr/src/linux points to a complete set of Linux
> sources.
>  *
>  * ERROR: x11-drivers/ati-drivers-8.552-r2 failed.
> 
> I wonder why "emerge ati-drivers" still does not detect the kernel version.
> 
Don't really know.

You have verified that /usr/src/linux is a symlink to linux-2.6.22-gentoo-r2
haven't you?

If the top level MAkefile is missing, there could be any number of other files 
missing.


You might look in /usr/portage/distfiles to see if you still have the 
distributioon files
ls linux* and look for 2.6.22    and ls genpat* and likewise.
If you do at least you could recreate the patched source tree manually.
First rename your existing linux-2.6.22-gentoo-r2 to something else.

After you unpack and apply patches, copy your .config file into the new.
make oldconfig,
make and so on. 
Install this kernel into /boot and update grub accordingly. Boot into it.
emerge your ati driver.

I am afreaid I have runn out of advice.

Dave F

Reply via email to