Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 35709 - Request for update: sys-apps/i2c-2,8.2 and sys-apps/lm-sensors-2.8.2
Summary: Request for update: sys-apps/i2c-2,8.2 and sys-apps/lm-sensors-2.8.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Tim Yamin (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-13 02:16 UTC by José Romildo Malaquias
Modified: 2004-02-07 14:44 UTC (History)
1 user (show)

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


Attachments
New initialization script (rc,1.91 KB, text/plain)
2003-12-16 13:12 UTC, Tim Yamin (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description José Romildo Malaquias 2003-12-13 02:16:45 UTC
New version of lm_sensors with support for 2.6 kernels!

From Freshmeat.net:

Changes: This release adds support for 2.6 kernels to the userspace tools. It adds support for the VT8237, FSC Hermes, ADM1032, and CSB6 chips. There are bugfixes and improvements for the AMD756, AMD8111, ASB100, NForce2, IT87xx, W83791D, W83627HF, and W83627THF chips.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Tim Yamin (RETIRED) gentoo-dev 2003-12-13 15:25:57 UTC
In CVS. Thanks. Testing would be appreciated.
Comment 2 José Romildo Malaquias 2003-12-14 01:36:29 UTC
I had problems installing lm-sensors-2.8.2 with gentoo-dev-sources-2.6.0_beta11-r2:

1) I see no way of installing only the user tools without editing the ebuild. Maybe there should be an USE option for that. I had to edit the ebuild and change the definition of UserModeOnly shell variable to true.

2) Even when installing only the user tools, the package still is dependent on >=sys-apps/i2c-2.8.0, which is wrong, at least for kernel 2.6.

3) Installation has an access violation:

[...]
install -o root -g root -m 755 prog/xeon/decode-xeon.pl /var/tmp/portage/lm-sensors-2.8.2/image//usr/bin
mkdir -p /etc
if [ ! -e /etc/sensors.conf ] ; then \
  install -o  root -g root -m 644 etc/sensors.conf.eg /etc/sensors.conf; \
fi
ACCESS DENIED  open_wr:   /etc/sensors.conf
install: cannot create regular file `/etc/sensors.conf': Permission denied
make: *** [install-etc] Error 1
 
!!! ERROR: sys-apps/lm-sensors-2.8.2 failed.
!!! Function src_install, Line 97, Exitcode 2
!!! Install failed!
 
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------LOG FILE = "/tmp/sandbox-lm-sensors-2.8.2-19592.log"
 
open_wr:   /etc/sensors.conf
--------------------------------------------------------------------------------C
Comment 3 Tim Yamin (RETIRED) gentoo-dev 2003-12-14 09:04:30 UTC
1: The kernel version detection stuff should do that. Why do you need only the user tools on a 2.4 kernel?

2: Ahem, I2C headers?

[ Quote `README' ]
    34	WARNING! You must have at least i2c-2.8.1.
    35	EVEN IF your kernel does contain i2c support!!!!!!!!!
    36	You may wish to get the latest i2c package, i2c-2.8.2,
[ End Quote ]

3: Should work now. I assume you got the error with a user-tools only build?
Comment 4 Scott Price 2003-12-15 11:23:06 UTC
I tried installing lm-sensors 2.8.2 using lm-sensors-2.8.2.ebuild that is currently in portage.  I looked at the ebuild, and it should allow installation of user space tools only (I am using 2.6.0-test11).  The problem is i2c-2.8.2 will not install with a 2.6 kernel.  It gives me an error.  Since I can't install i2c, I can't install lm-sensors.

What am I missing?

Thanks!

Scott  =)
Comment 5 Scott Price 2003-12-15 11:25:10 UTC
My apologies.  Reading over my last message I was rather vague.  Here is the error i2c gives me:

  * You are running:- 2.6.0-test11
  * Using kernel in /usr/src/linux:- 2.6.0-test11
  * Kernel version in /usr/src/linux is not 2.4.x
  * Please specify a 2.4.x kernel!


Scott  =)
Comment 6 José Romildo Malaquias 2003-12-16 06:07:45 UTC
About the problems I have mentioned:

1) I am running kernel 2.6.0-test11-gentoo-r2 and the ebuild correctly sets the shell script variable "UserModeOnly" in the ebuild to true. (The first time I have tried, this variable was not being set correctly.)

2) When running kernel 2.6 and installing only the user tools, the package should not dependent sys-apps/i2c, but should rely on the i2c in the kernel. This is in the README. The sys-apps/i2c dependency is needed for kernels prior to 2.6 only. In order to test the ebuild with this kernel I had to use the option "-O" in the emerge command so that it does not consider the dependencies.

3) Installation of the user tools does not work yet. The most important programs like sensors and sensors-detect are not being installed. The "mv" command in the src_install function in the ebuild is not working. It fails with the error message

  mv: cannot overwrite directory `/var/tmp/portage/lm-sensors-2.8.2/image/usr
Comment 7 Tim Yamin (RETIRED) gentoo-dev 2003-12-16 09:01:28 UTC
Looks like I2C does not support doing headers only. I've removed the I2C dependency in lm-sensors; please try things now.

Jos
Comment 8 Tim Yamin (RETIRED) gentoo-dev 2003-12-16 09:01:28 UTC
Looks like I2C does not support doing headers only. I've removed the I2C dependency in lm-sensors; please try things now.

José: I'm not sure why the 'mv' command was giving you errors, I've changed it to a forced 'cp' so it should work. For some reason lm-sensors must be generating different Makefile install actions for you.
Comment 9 José Romildo Malaquias 2003-12-16 10:35:51 UTC
The "cp" does work. Thanks.

# sensors-detect
No i2c device files found. Use prog/mkdev/mkdev.sh to create them.

What is missing? There is a bunch of i2c modules in the kernel module directory.
Should I really use prog/mkdev/mkdev.sh to create the device files, or the devfs tools should do it itself? Any comment on that?
Comment 10 Scott Price 2003-12-16 10:54:00 UTC
If you load the module i2c-core it will work.  That creates the devices.

The init script fails for me.  It seems I don't have the module i2c-proc.  Did I not enable it in the kernel, or is it not in 2.6?  I couldn't find an option for it in menuconfig.

Scott  =)
Comment 11 Tim Yamin (RETIRED) gentoo-dev 2003-12-16 12:57:43 UTC
Hmm. Looks like the init script needs re-writing. I2C-proc was the 2.4 /proc/... interface for I2C, it now uses sysfs in 2.6.
Comment 12 Tim Yamin (RETIRED) gentoo-dev 2003-12-16 13:12:05 UTC
Created attachment 22322 [details]
New initialization script
Comment 13 Tim Yamin (RETIRED) gentoo-dev 2004-02-07 14:44:43 UTC
Closing as this seems to be fixed along with the 2.6 script which is in Portage for a while now.