David Fellows wrote: > On Sun, 21 Jun 2009 17:55:15 -0400 > "John P. Burkett" wrote - >> Drake Donahue wrote: >>> Burkett asked: >>> >>> Should I back up any particular files before doing "emerge >>> =sys-kernel/gentoo-sources-2.6.22-r2"? You will simply be restoring the >>> bits that depclean removed. >>> >>> No files should need to backed up. >> Thank you David. Doing >> emerge =sys-kernel/gentoo-sources-2.6.22-r2 >> produced the following response >> emerge: there are no ebuilds to satisfy >> "=sys-kernel/gentoo-sources-2.6.22-r2" > > That is true. 2.6.22 has been removed from the portage tree. Your choices are: > 1) to find some one who still has the 2.6.22-r2 ebuild and the corrresponding > sources and patches and create an overlay from them, then use that to > emerge from. > > 2) find someone who still has the top level Makefile from 2.6.22-r2 who will > send it to you. And hope that that is all you are missing. Thank you David. On an x86 machine running kernel 2.6.17-gentoo-r4 I found /usr/src/linux-2.6.22-gentoo-r2/Makefile. I downloaded that Makefile to the /usr/src/linux-2.6.22-gentoo-r2 directory of my amd64 machine running 2.6.22-gentoo-r2. Doing "eix-sync" and "emerge ati-drivers" then produced the following response: * 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. * Call stack: * ebuild.sh, line 49: Called pkg_setup * ati-drivers-8.552-r2.ebuild, line 70: Called linux-mod_pkg_setup * linux-mod.eclass, line 578: Called linux-info_pkg_setup * linux-info.eclass, line 696: Called die * The specific snippet of code: * get_version || die "Unable to calculate Linux Kernel version" * The die message: * Unable to calculate Linux Kernel version * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/temp/die.env'. * >>> Failed to emerge x11-drivers/ati-drivers-8.552-r2, Log file: >>> '/var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/temp/build.log' * Messages for package x11-drivers/ati-drivers-8.552-r2: * 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. * Call stack: * ebuild.sh, line 49: Called pkg_setup * ati-drivers-8.552-r2.ebuild, line 70: Called linux-mod_pkg_setup * linux-mod.eclass, line 578: Called linux-info_pkg_setup * linux-info.eclass, line 696: Called die * The specific snippet of code: * get_version || die "Unable to calculate Linux Kernel version" * The die message: * Unable to calculate Linux Kernel version The build log and ebuild environment files are attached. Doing "ls -l" in my /usr/src/linux directory produces a list including the following line: -rw-r--r-- 1 john john 50411 Jun 22 09:09 Makefile I'd be grateful for ideas about how to help emerge detect the kernel version. Best regards, John > > 3) Upgrade to a newer kernel. Presumably the latest stable that is compatible > with your desired driver version. > > Realistically 3 is your only reasonable option. The downside is you will have > to do a kernel configuration that is consistent with your existing > configuration. > > You will want to read the kernel upgrade guide first. > http://www.gentoo.org/doc/en/kernel-upgrade.xml > > Remember that emerging a kernel source only installs the source files. > Compiling the kernel is another step. You may already have a suitable kernel > source emerged. eselect kernel list will show which are emerged as will > ls -l /usr/src > >> I also tried >> emerge -s gentoo-sources-2.6.22-r2-osmp >> and a few other variations without finding any ebuilds. > > The osmp is a local identifying tag specified by the person that built > your kernel. The smp probably means symetric multiprocessor. No idea > what the o stands for. > >> Ideas about how to emerge the sources would be very welcome. >> > > > Dave F > > -- John P. Burkett Department of Economics University of Rhode Island Kingston, RI 02881-0808 USA phone (401) 874-9195