Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 36243 - gentoo-sources-2.4.22-r2 i2c and lm-sensors version mismatch
Summary: gentoo-sources-2.4.22-r2 i2c and lm-sensors version mismatch
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Tim Yamin (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-21 09:36 UTC by Daniel Westermann-Clark
Modified: 2004-01-04 10:35 UTC (History)
4 users (show)

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 Daniel Westermann-Clark 2003-12-21 09:36:56 UTC
Using gentoo-sources-2.4.22-r2 causes a version mismatch with i2c and lm-sensors when using the x86 branch.  The gentoo-sources-2.4.22-r2 package appears to include i2c version 2.8.1 (based on what patches.txt says), while lm-sensors is still at version 2.7.0.  As a result, lm-sensors does not work for me when running 2.4.22-gentoo-r2 - it either segfaults or hangs.

Reproducible: Always
Steps to Reproduce:
1. emerge sync
2. emerge -u gentoo-sources
3. Reboot
4. emerge -u sys-apps/lm-sensors (which requires sys-apps/i2c-2.7.0)
5. Reboot
6. sensors

Actual Results:  
The sensors binary either segfaults or hangs.

Expected Results:  
The configured sensor readings should have been printed.

Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.4.20-gentoo-r9)
=================================================================
System uname: 2.4.20-gentoo-r9 i686 AMD Athlon(tm) XP 2000+
Gentoo Base System version 1.4.3.10p1
distcc 2.11.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=athlon-xp -O2 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-mcpu=athlon-xp -O2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs sandbox ccache userpriv"
GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo
ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://gentoo.oregonstate.edu"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 oss apm crypt foomaticdb gtk2 libg++ libwww mad mikmod nls quicktime
spell xmms zlib gdbm berkdb slang svga guile sdl gpm tcpd pam esd qt kde motif
mozilla 3dnow mmx aalib cdr cups fbcon maildir ncurses pda readline sasl ssl
perl python postgresql xml xml2 X xv gtk gtkhtml gnome -arts truetype gif imlib
jpeg pdflib png tiff avi dvd encode mpeg opengl oggvorbis"
Comment 1 Brian Jackson (RETIRED) gentoo-dev 2003-12-21 09:41:51 UTC
gentoo-sources-2.4.22 has lm_sensors inside the kernel, so you don't need to emerge it seperately.
Comment 2 Daniel Westermann-Clark 2003-12-21 10:09:05 UTC
If I'm not to emerge lm-sensors, where should I get the userspace tools?
Comment 3 Daniel Westermann-Clark 2003-12-24 22:33:42 UTC
I fail to understand how this is not an issue.  I understand that gentoo-sources-2.4.22-r2 includes i2c-2.8.1 and the _kernel drivers_ for lm-sensors-2.8.1.

However, if I want the userspace lm-sensors tools (e.g. sensors), I will need to emerge sys-apps/lm-sensors.  In the stable branch, the current version of this package is 2.7.0-r1, which has the following dependencies:

DEPEND="~sys-apps/i2c-2.7.0"

This obviously leads to problems with some of the lm-sensors modules not being the right version, which explains the segfaults I experienced after installing this package.

Again - I don't see any way to get the lm-sensors userspace tools from gentoo-sources-2.4.22-r2.  If I try to get them by installing sys-apps/lm-sensors, bad things happen.  Judging by the addition of CCs to this bug, others are having this problem.  I'm going to repoen it pending further clarification.
Comment 4 Tim Yamin (RETIRED) gentoo-dev 2003-12-26 02:26:59 UTC
Fixed - lm-sensors-2.8.1 is now stable on 'x86' and will also accept gentoo-sources-2.4.22 as a dependency instead of i2c-2.8.1.
Comment 5 Daniel Westermann-Clark 2004-01-04 09:59:32 UTC
Unless I'm missing something, lm-sensors is still uninstallable with gentoo-sources-2.4.22-r2.  It's still marked ~x86:

http://www.gentoo.org/cgi-bin/viewcvs.cgi/sys-apps/lm-sensors/lm-sensors-2.8.1.ebuild?rev=HEAD&content-type=text/vnd.viewcvs-markup

Additionally, both i2c and lm-sensors appear in /usr/portage/profiles/package.mask:

# John Mylchreest <johnm@gentoo.org> (14 August 2003)
# Headers have changed and break support with many video drivers such as
# bttv or zoran. Kernel patch is being worked on bt lm_sensor people afaik
>=sys-apps/lm-sensors-2.8
>=sys-apps/i2c-2.8
Comment 6 Tim Yamin (RETIRED) gentoo-dev 2004-01-04 10:35:46 UTC
Fixed - lm-sensors-2.8.1 is now stabilized on 'x86' and I've updated packages.mask from 2.8 to 2.8.2.