On Thursday 22 March 2007, Jakob Buchgraber <[EMAIL PROTECTED]> wrote about '[gentoo-user] [Way OT] Kernel Symlink use or not use?': > I considered switching to LFS a while ago as this would be the only > Linux "distribution" fulfilling my requirements (besides Gentoo, of > course). So when reading the LFS Book there was a warning saying > > Quote from LFS Book 6.2:
I have never seen having the symlink cause a problem, unless the symlink was to the "wrong" kernel. I can't imagine a case where that would be true, so I'm dubious that this quote is based on any real issues. > The Gentoo Documentation however says: Are you using LFS or Gentoo? I guess you should follow the documentation for what you are actually using. Or, do you regularly consult your toaster's manual for how to operate your microwave? > But the $KERNEL_DIR/README says: This is an instruction for compiling userland programs. In particular userland shouldn't include headers from /usr/src/linux, EVER. Those files may change depending on what kernel is installed so they can't be accurately targeted by anything that doesn't closely track the kernel. (If it tracks the kernel that close, so that it has to be compiled for a specific kernel [and specific /configuration/ of that kernel], it should be a kernel module.) Instead your userland programs should use the /usr/include/linux area. (If they have need of linux-specific headers; standard POSIX / C99 / C++03 headers can be found elsewhere.) > So after reading this I searched groups.google.com and the forums about > this issue and found a different approach, which can be used instead of > the /usr/src/linux symlink. Just setting KERNEL_DIR should be enough, but I'm not sure if that will be supported by Gentoo, you should just use the symlink, as the docs say (and as many proprietary, out-of-tree modules expect). > So what's the best way and _why_? /usr/src/linux symlink to "current" (generally running) kernel. Because that's what the docs say so that's what Gentoo supports. -- Boyd Stephen Smith Jr. ,= ,-_-. =. [EMAIL PROTECTED] ((_/)o o(\_)) ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-' http://iguanasuicide.org/ \_/ New GPG Key! Old key expires 2007-03-25. Upgrade NOW!
pgpLRdS0XJCJD.pgp
Description: PGP signature