Click to See Complete Forum and Search --> : [gentoo] getting 2.6.6 kernel NOT -r1 howto:
gehidore
05-24-2004, 02:00 AM
again thanks to hayl for his time
mkdir /etc/portage
touch /etc/portage/package.keywords
echo 'sys-kernel/development-sources ~x86' >> /etc/portage/package.keywords
emerge =development-sources-2.6.6
ln -s /usr/src/linux-2.6.6 /usr/src/linux
you know the rest i hope.
FIXED!
FIXED AGAIN!
hammer123
05-24-2004, 04:48 AM
echo 'sys-kernel/development-sources ~x86' >> /etc/portage/package.keywords
i like quotes, am i paranoid? when i echo anything longer than one word and redirect the output i always use quotes
also if someone ran yours they could have lost all the depend atoms in the file, i used >> so that what gets echoed is appended rather than overwriting
bwkaz
05-24-2004, 08:41 PM
Originally posted by gehidore
ln -s /usr/src/linux /usr/src/linux-2.6.6 Making a symlink named linux-2.6.6 that points at /usr/src/linux?
How about ln -s linux-2.6.6 /usr/src/linux instead. That'll create a symlink named linux that points at linux-2.6.6, which should be right.
Actually, you don't even need /usr/src/linux -- and it breaks packages like cdrtools 2.00.3 when /usr/src/linux is kernel 2.6 (because userspace should NEVER be using the current kernel's headers, but rather the headers for the kernel that glibc was compiled against, or with 2.6 and up, a set of sanitized headers like the ones from PLD, or the ones from your distro if you don't use LFS). The only thing it might be useful for at all is kernel modules that live outside the main kernel tree, and those should be using /lib/modules/$(uname -r)/build instead of /usr/src/linux.
DSwain
05-24-2004, 08:50 PM
hmm, about the symlink bwkaz you're right obviously, but I have found when you don't have /usr/src/linux symlinked to the actual kernel directory things like NVIDIA Video drivers happen to not work either as they seem to need it, or act like they do at least. Also, i've never noticed any problem with CDRTOOLS w/the symlink. I guess you mean it breaks it after you make a new kernel from a different one? i usually just make one kernel instead of installing one from the distro.
but yeah, it should be ln -s /usr/src/linux-2.6.6 /usr/src/linux or linux-2.6.6 depending on where you are in the tree.
justlinux.com
Copyright 2007 Jupitermedia Corporation All Rights Reserved.