Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 121980 - app-misc/lirc-0.8.0_pre3 configures "checking for Linux kernel sources" uses current kernel source
Summary: app-misc/lirc-0.8.0_pre3 configures "checking for Linux kernel sources" uses ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Heinrich Wendel (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: lirc-tracker
  Show dependency tree
 
Reported: 2006-02-07 06:37 UTC by Harm Geerts
Modified: 2006-02-20 00:44 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
corrects kerneldir in ebuild lirc-0.8.0_pre3 (lirc-0.8.0_pre3-kerneldir.diff,393 bytes, patch)
2006-02-17 11:41 UTC, Matthias Schwarzott
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Harm Geerts 2006-02-07 06:37:36 UTC
When compiling lirc for a new kernel configure uses the active linux kernel source directory instead. This can break lirc when there are differences between the the active kernel and the kernel lirc is build for.

# emerge lirc
<snipped>
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     2.6.15-gentoo-r3
<snipped>
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --localstatedir=/var --with-syslog=LOG_DAEMON --enable-sandboxed --with-kerneldir=//usr/src/2.6.15-gentoo-r3 --with-moduledir=//lib/modules/2.6.15-gentoo-r3/misc --disable-debug --without-X --with-driver=serial --build=i686-pc-linux-gnu
<snipped>
checking for Linux kernel sources... /lib/modules/2.6.15-gentoo-r2/build/

# uname -a
Linux freevo 2.6.15-gentoo-r2 #1 PREEMPT Thu Feb 2 16:48:28 CET 2006 i686 Pentium III (Coppermine) GenuineIntel GNU/Linux

# ls -l /lib/modules/2.6.15-gentoo-r2/build
lrwxrwxrwx 1 root root 31 feb  2 16:48 /lib/modules/2.6.15-gentoo-r2/build -> /usr/src/linux-2.6.15-gentoo-r2

# ls -l /usr/src/
total 8
lrwxrwxrwx  1 root root   23 feb  7 13:47 linux -> linux-2.6.15-gentoo-r3/
drwxr-xr-x 20 root root 4096 feb  7 15:00 linux-2.6.15-gentoo-r2
drwxr-xr-x 20 root root 4096 feb  7 14:04 linux-2.6.15-gentoo-r3

# emerge --info
Gentoo Base System version 1.12.0_pre15
Portage 2.1_pre4-r1 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.3.6-r2, 2.6.15-gentoo-r2 i686)
=================================================================
System uname: 2.6.15-gentoo-r2 i686 Pentium III (Coppermine)
dev-lang/python:     2.4.2-r1
sys-apps/sandbox:    1.2.17
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-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE=""
ARCH="x86"
AUTOCLEAN="yes"
BASH_ENV="/etc/spork/is/not/valid/profile.env"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -Os -pipe"
CHOST="i686-pc-linux-gnu"
CLEAN_DELAY="5"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CVS_RSH="ssh"
CXXFLAGS="-march=pentium3 -Os -pipe"
DCCC_PATH="/usr/lib/distcc/bin"
DISTCC_LOG=""
DISTCC_VERBOSE="0"
DISTDIR="/usr/portage/distfiles"
EDITOR="/bin/nano"
ELIBC="glibc"
EMERGE_WARNING_DELAY="10"
FEATURES="autoconfig distlocks sandbox sfperms strict"
FETCHCOMMAND="/usr/bin/wget -t 5 --passive-ftp -P ${DISTDIR} ${URI}"
GCC_SPECS=""
GDK_USE_XFT="1"
GENTOO_MIRRORS="ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/ ftp://mirror.scarlet-internet.nl/pub/gentoo"
G_BROKEN_FILENAMES="1"
HOME="/root"
HOSTNAME="freevo"
INFOPATH="/usr/share/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.16.1/info:/usr/share/gcc-data/i686-pc-linux-gnu/3.4.5/info"
INPUT_DEVICES="keyboard mouse"
KDEDIRS="/usr"
KERNEL="linux"
LANG="en_US.utf8"
LC_ADDRESS="nl_NL.utf8"
LC_COLLATE="nl_NL.utf8"
LC_CTYPE="nl_NL.utf8"
LC_IDENTIFICATION="nl_NL.utf8"
LC_MEASUREMENT="nl_NL.utf8"
LC_MESSAGES="en_US.utf8"
LC_MONETARY="nl_NL.utf8"
LC_NAME="nl_NL.utf8"
LC_NUMERIC="nl_NL.utf8"
LC_PAPER="nl_NL.utf8"
LC_TELEPHONE="nl_NL.utf8"
LC_TIME="nl_NL.utf8"
LESS="-R -M --shift 5"
LESSOPEN="|lesspipe.sh %s"
LIRC_OPTS="--with-driver=serial"
LOGNAME="root"
LS_COLORS="no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.qt=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.flac=01;35:*.mp3=01;35:*.mpc=00;36:*.ogg=00;36:*.wav=00;36:*.mid=00;36:*.midi=00;36:*.au=00;36:*.flac=00;36:*.aac=00;36:"
MAKEOPTS="-j2"
MANPATH="/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/i686-pc-linux-gnu/2.16.1/man:/usr/share/gcc-data/i686-pc-linux-gnu/3.4.5/man:/usr/qt/3/doc/man"
OLDPWD="/root"
OPENGL_PROFILE="nvidia"
PAGER="/usr/bin/less"
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.4.5:/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/usr/qt/3/bin"
PKGDIR="/usr/portage/packages"
PORTAGE_ARCHLIST="ppc s390 amd64 ppc64 m68k arm sparc sh mips ia64 alpha ppc-macos hppa x86"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_CALLER="emerge"
PORTAGE_GID="250"
PORTAGE_MASTER_PID="22614"
PORTAGE_NICENESS="15"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/etc/portage/overlay"
PRELINK_PATH=""
PRELINK_PATH_MASK="/usr/lib/klibc"
PWD="/usr/src"
PYTHONPATH="/usr/lib/portage/pym"
QMAKESPEC="linux-g++"
QTDIR="/usr/qt/3"
RESUMECOMMAND="/usr/bin/wget -c -t 5 --passive-ftp -P ${DISTDIR} ${URI}"
RPMDIR="/usr/portage/rpm"
RSYNC_RETRIES="3"
RSYNC_TIMEOUT="180"
SHELL="/bin/bash"
SHLVL="1"
SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage"
TERM="xterm"
USE="x86 X alsa apm avi bash-completion berkdb bitmap-fonts bzip2 crypt dvd eds emboss encode foomaticdb fortran gdbm gif gpm gstreamer gtk gtk2 imlib jpeg kde kdeenablefinal libg++ libwww lirc mad mikmod mmx motif mp3 mpeg ncurses nls ogg oggvorbis opengl pam pdflib perl png python qt quicktime readline sdl sqlite sse ssl tcpd tiff truetype truetype-fonts type1-fonts unicode vorbis xml2 xv zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_nvidia"
USER="root"
USERLAND="GNU"
USE_EXPAND="DVB_CARDS ELIBC FCDSL_CARDS FRITZCAPI_CARDS INPUT_DEVICES KERNEL LINGUAS USERLAND VIDEO_CARDS"
USE_EXPAND_HIDDEN=""
USE_ORDER="env:pkg:conf:defaults"
VIDEO_CARDS="nvidia"
XARGS="xargs -r"
_="/usr/bin/emerge"
Comment 1 Matthias Schwarzott gentoo-dev 2006-02-17 11:40:51 UTC
I also stepped over this bug, and found the cause.

In the ebuild econf gets --with-kerneldir=${ROOT}/usr/src/${KV_FULL} as parameter, but this directory does not exist (/usr/src/2.6.x vs /usr/src/linx-2.6.x).

The attached patch corrects the ebuild by using KV_DIR.
Comment 2 Matthias Schwarzott gentoo-dev 2006-02-17 11:41:49 UTC
Created attachment 80030 [details, diff]
corrects kerneldir in ebuild lirc-0.8.0_pre3
Comment 3 Heinrich Wendel (RETIRED) gentoo-dev 2006-02-20 00:44:29 UTC
thx, fixed in 0.8.0