First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 35709
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Tim Yamin (RETIRED) <plasmaroo@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: José Romildo Malaquias <j.romildo@gmail.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
rc New initialization script text/plain Tim Yamin (RETIRED) 2003-12-16 13:12 0000 1.91 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 35709 depends on: Show dependency tree
Bug 35709 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2003-12-13 02:16 0000
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 From Tim Yamin (RETIRED) 2003-12-13 15:25:57 0000 -------
In CVS. Thanks. Testing would be appreciated.

------- Comment #2 From José Romildo Malaquias 2003-12-14 01:36:29 0000 -------
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 From Tim Yamin (RETIRED) 2003-12-14 09:04:30 0000 -------
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 From Scott Price 2003-12-15 11:23:06 0000 -------
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 From Scott Price 2003-12-15 11:25:10 0000 -------
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 From José Romildo Malaquias 2003-12-16 06:07:45 0000 -------
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 From Tim Yamin (RETIRED) 2003-12-16 09:01:28 0000 -------
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 From Tim Yamin (RETIRED) 2003-12-16 09:01:28 0000 -------
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 From José Romildo Malaquias 2003-12-16 10:35:51 0000 -------
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 From Scott Price 2003-12-16 10:54:00 0000 -------
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 From Tim Yamin (RETIRED) 2003-12-16 12:57:43 0000 -------
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 From Tim Yamin (RETIRED) 2003-12-16 13:12:05 0000 -------
Created an attachment (id=22322) [edit]
New initialization script

------- Comment #13 From Tim Yamin (RETIRED) 2004-02-07 14:44:43 0000 -------
Closing as this seems to be fixed along with the 2.6 script which is in Portage
for a while now.

First Last Prev Next    No search results available      Search page      Enter new bug