/usr vs /usr/local
Hi Axel,
A suggestion for the next time you package the sensors userspace tools. In sensors-detect, we suggest the user should run "/usr/local/bin/sensors -s". You should change that to "/usr/bin/sensors -s" since that's where you install that program. Could confuse the users...
Thanks.
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
Hi,
Quoted 5 lines · Jean Delvare
A suggestion for the next time you package the sensors userspace tools. In sensors-detect, we suggest the user should run "
/usr/local/bin/sensors-s". You should change that to "/usr/bin/sensors-s" since that's where you install that program. Could confuse the users...
Thanks, I just fixed that, repackaged and the new packages will appear at atrpms later.
I run a
find %{buildroot} -type f | xargs file | grep -E '(ASCII|Bourne shell)' | awk -F: '{print $1}' \
| xargs perl -pi -e's,/usr/local,/usr,'
over the installed files, to catch also documentation bits.
Signature · 8 lines
[email protected] -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20030819/59fdee5d/attachment.bin
Quoted 8 lines
Quoted 5 lines
A suggestion for the next time you package the sensors userspace tools. In sensors-detect, we suggest the user should run "
/usr/local/bin/sensors-s". You should change that to "/usr/bin/sensors-s" since that's where you install that program. Could confuse the users...Thanks, I just fixed that, repackaged and the new packages will appear at atrpms later.
OK, thanks.
Quoted 5 lines
I run a
find %{buildroot} -type f | xargs file | grep -E '(ASCII|Bourne shell)' | awk -F: '{print $1}' \
| xargs perl -pi -e's,/usr/local,/usr,'
over the installed files, to catch also documentation bits.
Interesting. It may give strange results however. I'm thinking of our sensors-detect here (but it should be OK since it's Perl, so neither ASCII nor Bourne shell). For example, the following line:
@dmidecode = ( '/usr/local/sbin/dmidecode', '/usr/sbin/dmidecode' );
would become:
@dmidecode = ( '/usr/sbin/dmidecode', '/usr/sbin/dmidecode' );
and produce the following output:
"Please provide one of the following:
/usr/sbin/dmidecode
/usr/sbin/dmidecode"
It's harmless but may confuse the user ;)
We may change that part however, so that your trick would work.
Another thing I'm thinking of, back to the initial problem, is that we could make the script detect where sensors is (we already do for device files, modules.conf and dmidecode) so that the script works whatever the configuration. In this case, you wouldn't have to do anything special on your side (and, even, doing something could harmlessly break the script).
Any opinion?
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
Hi,
Quoted 8 lines · Jean Delvare
Another thing I'm thinking of, back to the initial problem, is that we could make the script detect where sensors is (we already do for device files, modules.conf and dmidecode) so that the script works whatever the configuration. In this case, you wouldn't have to do anything special on your side (and, even, doing something could harmlessly break the script).
Any opinion?
This sounds a bit like an autoconf task. It would mean converting the lm_sensors checks into m4 chuncks, which probably isn't worth while for only defining the installation prefix.
Signature · 8 lines
[email protected] -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20030824/4bdc76eb/attachment.bin
Quoted 9 lines · Jean Delvare
Quoted 7 lines
Another thing I'm thinking of, back to the initial problem, is that we could make the script detect where sensors is (we already do for device files, modules.conf and dmidecode) so that the script works whatever the configuration. In this case, you wouldn't have to do anything special on your side (and, even, doing something could harmlessly break the script).
Quoted 5 lines
Quoted 1 line
Any opinion?
This sounds a bit like an autoconf task. It would mean converting the
lm_sensorschecks into m4 chuncks, which probably isn't worth while for only defining the installation prefix.
It's a bit more complex than that. Some parts (e.g. dmidecode) may be brought by external sources, so checking all possible locations sounds good. On the other hand, looking for files only in "our" prefix could prevent multiple versions conflicts (although conflicts can happen with modules, and there is no prefix for them).
We won't migrate to m4, that's sure.
All I want is to make packager's life easier, so that they don't need to maintain loads of patches for lm_sensors.
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
Hi,
Quoted 10 lines · Jean Delvare
Quoted 9 lines · Jean Delvare
Quoted 4 lines
Another thing I'm thinking of, back to the initial problem, is that we could make the script detect where sensors is (we already do for device files, modules.conf and dmidecode) so that the script works whatever the configuration.
This sounds a bit like an autoconf task. It would mean converting the
lm_sensorschecks into m4 chuncks, which probably isn't worth while for only defining the installation prefix.
Quoted 7 lines
It's a bit more complex than that. Some parts (e.g. dmidecode) may be brought by external sources, so checking all possible locations sounds good. On the other hand, looking for files only in "our" prefix could prevent multiple versions conflicts (although conflicts can happen with modules, and there is no prefix for them).
We won't migrate to m4, that's sure.
Maybe simply provide a fake configure with a couple of options? It could be made autoconfish like, e.g. have *.in files with @SOMETHING@ placeholders that the configure script simply seds (in the end effect, that's what autoconf also does).
Quoted 2 lines
All I want is to make packager's life easier, so that they don't need to maintain loads of patches for
lm_sensors.
On another note: It would be good to have some stable detection mechanism for i2c >= 2.8.0 in the kernel sources. Currently I am simply comparing the version string to 2.8.0, but this will break the moment the kernel will get to something greater. Do you have any nice shell construct for detecting that? Maybe reverse checking instead for 2.6.5 and 2.7.0?
Signature · 8 lines
[email protected] -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20030909/de8de00e/attachment.bin