Ebuild checks kernel .config for CONFIG_I2C_SENSOR that doesn't exist in recent mm -kernels anymore and thus fails to merge. Quick and dirty solution is to add that in bottom of .config by hand to get it merged or optionally edit ebuild not to check this value. Reproducible: Always Steps to Reproduce: 1. Put .config from mm-kernel to /usr/src/$(uname -r)/.config 2. emerge -av lm_sensors Actual Results: ebuilds fails to merge because it can't find correct value from .config Expected Results: ebuilds merges, and lm_sensors work. this has been reproduced and is clear as crystal :-)
mm-sources is not a supported kernel - see http://www.gentoo.org/doc/en/gentoo-kernel.xml#doc_chap2
*** Bug 108355 has been marked as a duplicate of this bug. ***
All Kernel >2.6.13 will fail.
please reopen this one. This affects not only -mm kernels but also vanilla-sources >2.6.13 (has has been mentioned). It fails to compile with the official kernel sources. Thanks for considering.
I can confirm this issue with vanilla-2.6.13 and vanilla-2.6.14_rc4
Fixed in sys-apps/lm_sensors-2.9.2.
It seems this fix has broken the ebuild for kernel versions >2.6 and < 2.6.14 which are configured correctly. Looking at the ebuild, there should be a check for >= 2.6.14 on line 45. * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found sources for kernel version: * 2.6.12-gentoo-r10 * * lm_sensors-2.9.2 requires CONFIG_HWMON to be enabled for 2.6.14+ kernels. * !!! ERROR: sys-apps/lm_sensors-2.9.2 failed. !!! Function pkg_setup, Line 49, Exitcode 0 !!! CONFIG_HWMON not detected !!! If you need support, post the topmost build error, NOT this status message.
Thanks, fixed.
*** Bug 110220 has been marked as a duplicate of this bug. ***
for some reason this DOES NOT work here: * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found sources for kernel version: * 2.6.11-hardened-r15-pkpc43-012 * * lm_sensors-2.9.2 requires CONFIG_HWMON to be enabled for 2.6.14+ kernels. * clearly, it is NOT 2.6.14+
What does `grep Header /usr/portage/sys-apps/lm_sensors/lm_sensors-2.9.2.ebuild` say on your system? It needs to say at least "# $Header: /var/cvsroot/gentoo-x86/sys-apps/lm_sensors/lm_sensors-2.9.2.ebuild,v 1.2 2005/10/21 15:19:45 brix Exp $" If it's an earlier version: wait a few hours, `emerge --sync` and try again.
Maybe this bug need reopening(?). For some reason, the same problem occurs for me, with the supported gentoo-2.6.13 kernel. Details below: #uname -a Linux Ghans 2.6.13-gentoo-r3 #4 Mon Oct 24 14:35:03 CEST 2005 i686 AMD Athlon(TM) XP 1700+ AuthenticAMD GNU/Linux lm_sensors: # $Header: /var/cvsroot/gentoo-x86/sys-apps/lm_sensors/lm_sensors-2.9.2.ebuild,v 1.5 2005/10/23 13:30:18 brix Exp $ Emerge lm_sensors: * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found sources for kernel version: * 2.6.13-gentoo-r3 * * lm_sensors-2.9.1 requires CONFIG_I2C_SENSOR to be enabled for non-2.4.x kernels. * !!! ERROR: sys-apps/lm_sensors-2.9.1-r1 failed. Manually enabling CONFIG_I2C_SENSOR doesn't help either, it is reset to "is not set" by the kernel-make process.
emerge --sync and try again, see version 2.9.1-r1 you are trying to merge but latest is 2.9.2.
Oh sorry, tried to merge 2.9.1 instead of 2.9.2. 2.9.2 works fine. Mea culpa!
Now this is annoying. I installed everything I need for sensors to work in kernel, and no, CONFIG_I2C_CHARDEV is not required for sensors to work. Here, see for yourself: And please don't tell me I have to include useless (for me) stuff into kernel to emerge package that works fine without it! drac ~ # emerge -av lm_sensors These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] sys-apps/lm_sensors-2.9.2 -sensord 840 kB Total size of downloads: 840 kB Do you want me to merge these packages? [Yes/No] y >>> emerge (1 of 1) sys-apps/lm_sensors-2.9.2 to / >>> Downloading http://trumpetti.atm.tut.fi/gentoo/distfiles/lm_sensors-2.9.2. tar.gz --22:03:09-- http://trumpetti.atm.tut.fi/gentoo/distfiles/lm_sensors-2.9.2.tar. gz => `/usr/portage/distfiles/lm_sensors-2.9.2.tar.gz' Resolving trumpetti.atm.tut.fi... 130.230.54.100, 2001:708:310:54::2 Connecting to trumpetti.atm.tut.fi|130.230.54.100|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 860,624 (840K) [application/x-tar] 100%[=================================================>] 860,624 294.47K/s 22:03:12 (293.77 KB/s) - `/usr/portage/distfiles/lm_sensors-2.9.2.tar.gz' saved [860624/860624] >>> md5 files ;-) lm_sensors-2.9.2.ebuild >>> md5 files ;-) lm_sensors-2.9.1-r1.ebuild >>> md5 files ;-) files/rc >>> md5 files ;-) files/lm_sensors-2.9.2-sensord-conf.d >>> md5 files ;-) files/lm_sensors-2.9.1-sensors-detect-gentoo.patch >>> md5 files ;-) files/lm_sensors-2.9.2-sensord-init.d >>> md5 files ;-) files/lm_sensors-2.9.1-sensord-conf.d >>> md5 files ;-) files/lm_sensors-2.9.1-lm_sensors-init.d >>> md5 files ;-) files/lm_sensors-2.9.1-sensord-init.d >>> md5 files ;-) files/lm_sensors-2.9.1-pwmconfig.patch >>> md5 files ;-) files/digest-lm_sensors-2.9.1-r1 >>> md5 files ;-) files/digest-lm_sensors-2.9.2 >>> md5 files ;-) files/lm_sensors-2.9.2-lm_sensors-init.d >>> md5 files ;-) files/lm_sensors-2.9.2-sensors-detect-gentoo.patch >>> md5 src_uri ;-) lm_sensors-2.9.2.tar.gz * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found sources for kernel version: * 2.6.14-rc5-git3 * * lm_sensors-2.9.2 requires CONFIG_I2C_CHARDEV to be enabled for non-2.4.x kernels. * !!! ERROR: sys-apps/lm_sensors-2.9.2 failed. !!! Function pkg_setup, Line 56, Exitcode 0 !!! CONFIG_I2C_CHARDEV not detected !!! If you need support, post the topmost build error, NOT this status message. drac ~ # grep CHARDEV /usr/src/linux/.config # CONFIG_I2C_CHARDEV is not set drac@drac ~ $ sensors w83697hf-isa-0290 Adapter: ISA adapter VCore: +1.60 V (min = +0.50 V, max = +1.01 V) ALARM +3.3V: +3.30 V (min = +0.88 V, max = +2.00 V) ALARM +5V: +5.00 V (min = +5.70 V, max = +5.08 V) ALARM +12V: +12.40 V (min = +12.52 V, max = +7.66 V) ALARM -12V: -12.20 V (min = +4.50 V, max = +5.16 V) ALARM -5V: -5.10 V (min = +0.08 V, max = +5.10 V) ALARM V5SB: +5.38 V (min = +3.17 V, max = +6.42 V) VBat: +3.38 V (min = +3.02 V, max = +1.76 V) ALARM fan1: 4927 RPM (min = 5314 RPM, div = 2) ALARM fan2: 0 RPM (min = 2657 RPM, div = 4) ALARM temp1: +35
Now this is annoying. I installed everything I need for sensors to work in kernel, and no, CONFIG_I2C_CHARDEV is not required for sensors to work. Here, see for yourself: And please don't tell me I have to include useless (for me) stuff into kernel to emerge package that works fine without it! drac ~ # emerge -av lm_sensors These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] sys-apps/lm_sensors-2.9.2 -sensord 840 kB Total size of downloads: 840 kB Do you want me to merge these packages? [Yes/No] y >>> emerge (1 of 1) sys-apps/lm_sensors-2.9.2 to / >>> Downloading http://trumpetti.atm.tut.fi/gentoo/distfiles/lm_sensors-2.9.2. tar.gz --22:03:09-- http://trumpetti.atm.tut.fi/gentoo/distfiles/lm_sensors-2.9.2.tar. gz => `/usr/portage/distfiles/lm_sensors-2.9.2.tar.gz' Resolving trumpetti.atm.tut.fi... 130.230.54.100, 2001:708:310:54::2 Connecting to trumpetti.atm.tut.fi|130.230.54.100|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 860,624 (840K) [application/x-tar] 100%[=================================================>] 860,624 294.47K/s 22:03:12 (293.77 KB/s) - `/usr/portage/distfiles/lm_sensors-2.9.2.tar.gz' saved [860624/860624] >>> md5 files ;-) lm_sensors-2.9.2.ebuild >>> md5 files ;-) lm_sensors-2.9.1-r1.ebuild >>> md5 files ;-) files/rc >>> md5 files ;-) files/lm_sensors-2.9.2-sensord-conf.d >>> md5 files ;-) files/lm_sensors-2.9.1-sensors-detect-gentoo.patch >>> md5 files ;-) files/lm_sensors-2.9.2-sensord-init.d >>> md5 files ;-) files/lm_sensors-2.9.1-sensord-conf.d >>> md5 files ;-) files/lm_sensors-2.9.1-lm_sensors-init.d >>> md5 files ;-) files/lm_sensors-2.9.1-sensord-init.d >>> md5 files ;-) files/lm_sensors-2.9.1-pwmconfig.patch >>> md5 files ;-) files/digest-lm_sensors-2.9.1-r1 >>> md5 files ;-) files/digest-lm_sensors-2.9.2 >>> md5 files ;-) files/lm_sensors-2.9.2-lm_sensors-init.d >>> md5 files ;-) files/lm_sensors-2.9.2-sensors-detect-gentoo.patch >>> md5 src_uri ;-) lm_sensors-2.9.2.tar.gz * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found sources for kernel version: * 2.6.14-rc5-git3 * * lm_sensors-2.9.2 requires CONFIG_I2C_CHARDEV to be enabled for non-2.4.x kernels. * !!! ERROR: sys-apps/lm_sensors-2.9.2 failed. !!! Function pkg_setup, Line 56, Exitcode 0 !!! CONFIG_I2C_CHARDEV not detected !!! If you need support, post the topmost build error, NOT this status message. drac ~ # grep CHARDEV /usr/src/linux/.config # CONFIG_I2C_CHARDEV is not set drac@drac ~ $ sensors w83697hf-isa-0290 Adapter: ISA adapter VCore: +1.60 V (min = +0.50 V, max = +1.01 V) ALARM +3.3V: +3.30 V (min = +0.88 V, max = +2.00 V) ALARM +5V: +5.00 V (min = +5.70 V, max = +5.08 V) ALARM +12V: +12.40 V (min = +12.52 V, max = +7.66 V) ALARM -12V: -12.20 V (min = +4.50 V, max = +5.16 V) ALARM -5V: -5.10 V (min = +0.08 V, max = +5.10 V) ALARM V5SB: +5.38 V (min = +3.17 V, max = +6.42 V) VBat: +3.38 V (min = +3.02 V, max = +1.76 V) ALARM fan1: 4927 RPM (min = 5314 RPM, div = 2) ALARM fan2: 0 RPM (min = 2657 RPM, div = 4) ALARM temp1: +35°C (high = -6°C, hyst = -5°C) sensor = thermistor ALARM temp2: +42.0°C (high = +80°C, hyst = +75°C) sensor = thermistor alarms: Chassis intrusion detection ALARM beep_enable: Sound alarm enabled drac@drac ~ $ eix lm_sensors * sys-apps/lm_sensors Available versions: 2.9.1-r1 2.9.2 Installed: 2.9.2 Homepage: http://secure.netroedge.com/~lm78/ Description: Hardware Monitoring user-space utilities drac@drac ~ $ uname -r 2.6.14-rc5-git3 Vanilla Kernel, should be supported. According to Gentoo Policy.
(In reply to comment #15) > Now this is annoying. I installed everything I need for sensors to work in > kernel, and no, CONFIG_I2C_CHARDEV is not required for sensors to work. Here, > see for yourself: > > And please don't tell me I have to include useless (for me) stuff into kernel > to emerge package that works fine without it! In the future, try being more polite. CONFIG_I2C_CHARDEV is required by `sensors-detect`. I have turned it into a soft dependency due to your rude bug report.
I'm sorry, didn't mean to be that so rude it looked.. Keep up the great work! Thanks, Samuli Suominen
Fixed, huh? >>> checksums src_uri ;-) lm_sensors-2.9.2.tar.gz * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found sources for kernel version: * 2.6.15-gentoo-r1 * * sensors-detect requires CONFIG_I2C_CHARDEV to be enabled for non-2.4.x kernels. * * * lm_sensors-2.9.2 requires CONFIG_I2C to be enabled for non-2.4.x kernels. * Portage 2.1_pre3-r1 (default-linux/amd64/2006.0, gcc-3.4.5, glibc-2.3.6-r2, 2.6.15-gentoo-r1 x86_64) ================================================================= System uname: 2.6.15-gentoo-r1 x86_64 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.12.0_pre14 dev-lang/python: 2.4.2 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="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=athlon64 -fomit-frame-pointer -pipe" CHOST="x86_64-pc-linux-gnu" 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/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon64 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp.linux.cz/pub/linux/gentoo http://mirror.gentoo.sk/pub http://distfiles.gentoo.org/" LANG="cs_CZ.UTF-8" LC_ALL="cs_CZ.UTF-8" LINGUAS="cs" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://mirror.gentoo.sk/gentoo-portage" USE="amd64 X aalib acpi adns alsa apache2 apm audiofile avi bash-completion bitmap-fonts bzip2 caps cdparanoia cdr cups curl curlwrappers dbus dga dio directfb divx4linux dts dvd dvdr dvdread emboss emul-linux-86 encode exif fbcon ffmpeg flac flash foomaticdb fortran ftp fuse gdbm gif gpm gstreamer gtk gtk2 hal i8x0 icq id3 id3v2 imagemagick imlib innodb ipv6 jabber javascript jpeg kde kdeenablefinal lame lcms libcaca lzw lzw-tiff mad matroska mbox mikmod mime ming mp3 mpeg mplayer mysql mysqli ncurses nls nowebdav nptl nptlonly nvidia ogg oggvorbis openal opengl osc oscar pcntl pcre pdflib perl php pic png posix ppds python qt quicktime readline sdl session skey slang slp sockets sox speex sqlite ssl subversion svg symlink tcpd theora tiff truetype truetype-fonts type1-fonts udev unicode usb userlocales utf8 vcd vorbis wmf xine xml xml2 xpm xv xvid zlib elibc_glibc kernel_linux linguas_cs userland_GNU" Unset: ASFLAGS, CTARGET, LDFLAGS
(In reply to comment #18) > Fixed, huh? > > * lm_sensors-2.9.2 requires CONFIG_I2C to be enabled for non-2.4.x kernels. Read the error message again - CONFIG_I2C _is_ a requirement.
I just `grep CONFIG_I2C_CHARDEV /usr/src/linux/.config` and... Sorry. ;)