mkpatch testing...
did anybody test mkpatched kernels?
here's one ticket...
perhaps we should do some mkpatch testing before putting the announcement on freshmeat?
Quoted 6 lines
the trouble is that 'make install' on the i2c side puts the headers in
/usr/local/include... Especially now that we are requiring an upgrade to i2c-2.7.0, if we don't point to the same place on i2c andlm_sensors, then people couldn't compile i2c outside the kernel, they would have to mkpatch...
I definitely agree with this. As long as i2c installs to /usr/local by default, I think we should stick to looking for its headers at this place (at least if we choose to use a single default). Now, maybe some makefile or shell magic can let us know which headers to include. I have to admit that I didn't understand what the possibilities are and how to choose among them, but if you want to explain it to me, I can work on it.
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
That's how I did it (mkpatch'ed i2c against my kernel), although my sensors bin is segfaulting... ;') Keep in mind that the I2C header variable in the lm_sensors makefile is hardcoded to /usr/local/include, which is not great imho.
Phil
Quoted 7 lines · Mark Studebaker
did anybody test mkpatched kernels?
here's one ticket...
perhaps we should do some mkpatch testing before putting the announcement on freshmeat?
I just found and fixed a couple of things but nothing major. Khali did you have anything you wanted to test?
Also, Phil & Khali, any proposal on I2C_HEADERS?
Quoted 21 lines · Philip Edelbrock
That's how I did it (mkpatch'ed i2c against my kernel), although my sensors bin is segfaulting... ;') Keep in mind that the I2C header variable in the
lm_sensorsmakefile is hardcoded to/usr/local/include, which is not great imho.Phil
Quoted 7 lines · Mark Studebaker
did anybody test mkpatched kernels?
here's one ticket...
perhaps we should do some mkpatch testing before putting the announcement on freshmeat?
I would recommend that I2C_HEADERS be set to LINUX_HEADERS by default.
(basicly just swap the comment hash between the two lines in theMakefile.) I think it is odd to have it defaulted to /usr/local/include since that isn't the normal or usual place for it any more. Now, kernels have for some time had the i2c headers in them, so if you define the include search paths as including both kernel headers and /usr/local/include, there is a significant risk of having two seperate sets of i2c headers of different versions being referenced similtaniously. Right?
We could get fancy by checking if the kernel's i2c is compiled and used, and make that set of i2c headers the default if so? Probably not needed, though.
Phil
Quoted 30 lines · Mark Studebaker
I just found and fixed a couple of things but nothing major. Khali did you have anything you wanted to test?
Also, Phil & Khali, any proposal on
I2C_HEADERS?Quoted 21 lines · Philip Edelbrock
That's how I did it (mkpatch'ed i2c against my kernel), although my sensors bin is segfaulting... ;') Keep in mind that the I2C header variable in the
lm_sensorsmakefile is hardcoded to/usr/local/include, which is not great imho.Phil
Quoted 7 lines · Mark Studebaker
did anybody test mkpatched kernels?
here's one ticket...
perhaps we should do some mkpatch testing before putting the announcement on freshmeat?
the trouble is that 'make install' on the i2c side puts the headers in /usr/local/include... Especially now that we are requiring an upgrade to i2c-2.7.0, if we don't point to the same place on i2c and lm_sensors, then people couldn't compile i2c outside the kernel, they would have to mkpatch...
Quoted 52 lines · Philip Edelbrock
I would recommend that
I2C_HEADERSbe set toLINUX_HEADERSby default. (basicly just swap the comment hash between the two lines in theMakefile.) I think it is odd to have it defaulted to/usr/local/includesince that isn't the normal or usual place for it any more. Now, kernels have for some time had the i2c headers in them, so if you define the include search paths as including both kernel headers and/usr/local/include, there is a significant risk of having two seperate sets of i2c headers of different versions being referenced similtaniously. Right?We could get fancy by checking if the kernel's i2c is compiled and used, and make that set of i2c headers the default if so? Probably not needed, though.
Phil
Quoted 30 lines · Mark Studebaker
I just found and fixed a couple of things but nothing major. Khali did you have anything you wanted to test?
Also, Phil & Khali, any proposal on
I2C_HEADERS?Quoted 21 lines · Philip Edelbrock
That's how I did it (mkpatch'ed i2c against my kernel), although my sensors bin is segfaulting... ;') Keep in mind that the I2C header variable in the
lm_sensorsmakefile is hardcoded to/usr/local/include, which is not great imho.Phil
Quoted 7 lines · Mark Studebaker
did anybody test mkpatched kernels?
here's one ticket...
perhaps we should do some mkpatch testing before putting the announcement on freshmeat?
FYI, Hearing no objections, I just submitted the Freshmeat update. Let's try and figure out why the ali's arent' compiling in a mkpatched kernel.
Quoted 15 lines · Jean Delvare
Quoted 5 lines
the trouble is that 'make install' on the i2c side puts the headers in
/usr/local/include... Especially now that we are requiring an upgrade to i2c-2.7.0, if we don't point to the same place on i2c andlm_sensors, then people couldn't compile i2c outside the kernel, they would have to mkpatch...I definitely agree with this. As long as i2c installs to
/usr/localby default, I think we should stick to looking for its headers at this place (at least if we choose to use a single default). Now, maybe some makefile or shell magic can let us know which headers to include. I have to admit that I didn't understand what the possibilities are and how to choose among them, but if you want to explain it to me, I can work on it.