Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 1871 - linux-sources-2.4.[17-r5/19-r1].ebuild patch to integrate i2c & lm_sensors
Summary: linux-sources-2.4.[17-r5/19-r1].ebuild patch to integrate i2c & lm_sensors
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Bruce A. Locke (RETIRED)
URL: http://www.netroedge.com/~lm78
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-17 09:03 UTC by Troy Dack
Modified: 2003-02-04 19:42 UTC (History)
0 users

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


Attachments
diff against linux-sources-2.4.17-r5 to integrate i2c and lm_sensors (linux-sources-2.4.17-r5.ebuild.diff,1.61 KB, patch)
2002-04-17 09:05 UTC, Troy Dack
Details | Diff
diff against linux-sources-2.4.19-r1 to integrate i2c and lm_sensors (linux-sources-2.4.19-r1.ebuild.diff,1.63 KB, patch)
2002-04-17 09:06 UTC, Troy Dack
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Troy Dack 2002-04-17 09:03:28 UTC
Below are two diffs.

#1 against linux-sources-2.4.17-r5.ebuild
#2 against linux-sources-2.4.19-r1.ebuild

The changes to the linux-sources ebuild are as follows:

* adds i2c-2.6.3 and lm_sensors-2.6.3 to the SRC_URI
* checks for presence of "lm_sensors" USE flag
  * creates and applies i2c patch to kernel
  * creates and applies lm_sensors patch to kernel
  * adds more options to:
        Character Devices --> I2C Support

Patches must be created and applied in that order.

I am currently running 2.4.19-r1 with these patches.

The only problem that I have found is the "DEC Tsunami I2C interface" will not
build as a module for me.

Patching the kernel does *not* install the sensors-detect script that does some
automagic probing of a system in an attempt to determine what modules are
required. I didn't know if it was appropriate for the kernel sources to also be
installing utility scripts.

If these patches are incorporated bugs 902 & 903 should be marked as closed.
Comment 1 Troy Dack 2002-04-17 09:05:28 UTC
Created attachment 590 [details, diff]
diff against linux-sources-2.4.17-r5 to integrate i2c and lm_sensors
Comment 2 Troy Dack 2002-04-17 09:06:39 UTC
Created attachment 591 [details, diff]
diff against linux-sources-2.4.19-r1 to integrate i2c and lm_sensors
Comment 3 Seemant Kulleen (RETIRED) gentoo-dev 2002-04-17 15:47:22 UTC
in my own humble opinion, if there is a way to do this without touching the
kernel, we might better opt for that.  As it is, our kernels are patched with
some pretty hefty diffs. The USE flag idea for a kernel is interesting though...
Comment 4 Troy Dack 2002-04-17 23:24:53 UTC
"As it is, our kernels are patched with some pretty hefty diffs."

Fair enough.

I have tried to get the two required sources (i2c & lm_sensors) to build
individually, but the "make" (there is not ./configure for these) step
continually fails complaining about missing *.d files.

I think this is because of autoconf but really don't have the knowledge to work
out exactly what is going wrong.

I'll update the ebuild for i2c & lm_sensors to 2.6.3, but, fo me at least, they
won't work (while this way does).
Comment 5 Matthew Kennedy (RETIRED) gentoo-dev 2002-04-21 20:58:29 UTC
might have forgotten to assign this i2c bug to you. this one's a kernel diff
approach.
Comment 6 Bruce A. Locke (RETIRED) gentoo-dev 2002-04-27 19:13:46 UTC
This is too unmaintainable... the patch set we apply against the gentoo sources
list varys wildly, contains very large deltas, etc.  Also recent changes means
we'd have to patch several different trees.

This should be kept out of the kernel source package as much as possible to be
of use to as many people and not have it break every time kernel versions are
bumped.

Marking as invalid and I'm going to look at your i2c and lm_sensors package and
focus on the seperate module building option.