marinez and I have talked about this in #gentoo and I must note that while the compile problem this was causing is indeed related to using nitro sources, the *actual problem at hand* is not. lirc still uses linux-`uname -r` in some m4 files (it appears the sed hack in the ebuild does not work well, as marinez has said) instead of the proper $KV_DIR. Reproducible: Always Steps to Reproduce: 1. boot a kernel such as 2.6.12-nitro5 2. link your /usr/src/linux to something like 2.6.13-gentoo 3. emerge lirc Actual Results: emerge lirc fails -- and you'll notice it's still building in the nitro environment Expected Results: successful build Suggested fix: add --with-kerneldir=${KV_DIR} to the econf line. Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-4.0.1, glibc-2.3.5.20050722-r0, 2.6.12-nitro5 i686) ================================================================= System uname: 2.6.12-nitro5 i686 Intel(R) Pentium(R) 4 CPU 3.20GHz Gentoo Base System version 1.12.0_pre8 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.3.4-r1, 2.4.1-r1 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium4 -pipe -ftracer -fomit-frame-pointer -fprefetch-loop-arrays -mfpmath=sse" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/fax /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control /var/spool/fax/etc" CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium4 -pipe -ftracer -fomit-frame-pointer -fprefetch-loop-arrays -mfpmath=sse" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 7zip X Xaw3d a52 aac acpi aim alsa apache apache2 arts audiofile avi bash-completion berkdb bitmap-fonts bzip2 cairo ccache cdda cddb cdio cdparanoia cdr cpudetection crypt cscope ctype cups curl dba dga divx4linux dvd dvdr eds emboss encode exif faad fam ffmpeg fftw firefox flac flash foomaticdb fortran freetype ftp gb gd gdbm gif gimp gimp-print gimpprint glx gnome gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal iconv icq imagemagick imlib inifile jabber java javascript joystick jpeg jpeg2k kde kdeenablefinal ladcca libg++ libwww lirc live lzw-tiff mad mbox mhash mikmod mmap mmx mmxext mng motif mozdevelop mozilla moznomail mozsvg mp3 mpeg msn mysql ncurses network nls nntp nptl nptlonly nsplugin nvidia objc offensive ogg oggvorbis opengl pam pcmcia pdflib perl php png posix ppds pthreads python qt quicktime readline real rtc rtsp samba scanner sdl session sharedmem silc slang sndfile sockets socks5 spell sqlite sse sse2 ssl svg tabs tcltk tcpd tga theora threads tidy tiff transcode truetype truetype-fonts trusted type1-fonts unicode usb userlocales utf8 v4l v4l2 visualization vorbis wifi win32codecs wmf wxwindows xft xine xml xml2 xmlrpc xmms xosd xpm xrandr xscreensaver xsl xv xvid yahoo zeroconf zlib zsh userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LDFLAGS, LINGUAS
I would agree that this should be done. In my case, trying to update a kernel (gentoo-sources) on a mythtv box, I'd also like to be able to update lirc without requiring a reboot beforehand. If I try to do this, I see an error about requiring kernel sources to be installed. If I add --with-kerneldir to the econf, lirc compiles.
Should be fixed in 0.8_pre3, reopen if it's not.