Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 84673 - LM_Sensors has unnecessary dependecy on i2c with kernel 2.5+ which can cause kernel panics
Summary: LM_Sensors has unnecessary dependecy on i2c with kernel 2.5+ which can cause ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High critical
Assignee: Mobile Herd (OBSOLETE)
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2005-03-09 15:36 UTC by Wiebe Cazemier
Modified: 2005-06-11 04:30 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wiebe Cazemier 2005-03-09 15:36:32 UTC
When trying to install lm_sensors, emerge wants to install a corresponding version of i2c with it. On kernel 2.5+ however, this is not necessary, as it says when installing lm_sensors (copied from ebuild): "For 2.5+ series kernels, use the support already in the kernel under 'Character devices' -> 'I2C support' and then merge this ebuild.". It's quite critical to be able to disable the ic2 dependency, because installing it results in kernel panics because it's incompatible with the kernels BTTV driver. The kernel panics should be gone with version 2.9.0 though (there's no warning message in the ic2-2.9.0 ebuild, like there is in the 2.8.7 one), but you should still be able to disable the installing of i2c.

Reproducible: Always
Steps to Reproduce:
Dependecy problem:
1) Install lm_sensors 2.8.7 or higher on a system with kernel 2.5+. The i2c dep should not be needed.

Kernel panic problem (description is from memory, from when lm_sensors 2.8.6 was still available in portage, which I installed after having these problems. I can't use a kernel panic right now):
1) enable i2c and bttv modules in the kernel and install them. Don't load modules yet.
2) install lm_sensors 2.8.7 and the i2c dep.
3) start lm_sensors, meaning you have to start /etc/init.d/lm_sensors. Also configure /etc/conf.d/lm_sensors to include modules for your hardware. I have:
MODULE_0=i2c-isa
MODULE_1=via686a
3) load the BTTV driver: modprobe bttv
Actual Results:  
I get a kernel panic.

Expected Results:  
As for the kernel panics, the BTTV module should load without errors and the
TV-card should work.

As for the dep on i2c, emerge (-p) lm_sensors on systems with 2.5+ kernels
should not have the i2c dep. Version 2.8.6 didn't have the i2c dep.

Portage 2.0.51.19 (default-linux/x86/2004.0, gcc-3.3.5, glibc-2.3.4.20040808-r1,
2.6.10-gentoo-r7 i686)
=================================================================
System uname: 2.6.10-gentoo-r7 i686 AMD Athlon(tm) XP 1600+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.2.3-r5,dev-lang/python-2.3.4-r1 [2.3.4
(#1, Feb  9 2005, 02:43:15)]
dev-lang/python:     2.2.3-r5, 2.3.4-r1
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.7.9-r1, 1.6.3, 1.5, 1.8.5-r3, 1.4_p6, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=i686 -mcpu=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=i686 -mcpu=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks fixpackages sandbox sfperms"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo
ftp://ftp.gentoo.mesh-solutions.com/gentoo/ http://ftp.easynet.nl/mirror/gentoo/
ftp://ftp.easynet.nl/mirror/gentoo/
http://ftp.snt.utwente.nl/pub/os/linux/gentoo
ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo
http://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/
ftp://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/
ftp://mirror.scarlet-internet.nl/pub/gentoo ftp://mirror.nutsmaas.nl/gentoo/
http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowex X alsa apache2 apm avi bash-completion berkdb
bitmap-fonts cdr crypt cups curl dga dvb dvd dvdr emboss encode f77 fam flac
font-server foomaticdb fortran gdbm gif gpm gstreamer gtk gtk2 imagemagick imap
imlib ipv6 java jpeg kde kerberos ldap libg++ libwww lirc mad mmx mmx2 mpeg msn
nas ncurses network oggvorbis openal opengl oss pam pdflib perl png python qt
quicktime readline rtc samba sasl sdl slang speex sse ssl svga tcltk tcpd tetex
theora tiff truetype truetype-fonts type1-fonts xml2 xmms xv xvid zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 1 Henrik Brix Andersen 2005-03-13 03:11:11 UTC
Yes, this will change soon - in the meantime you can safely install i2c on your 2.5+ kernel as the ebuild will detect this, and not install any modules.
Comment 2 Henrik Brix Andersen 2005-06-11 04:30:30 UTC
Fixed in sys-apps/lm_sensors-2.9.1. Thank you for reporting this.