Skip to contentSkip to conversation

Getting rid of LM_DATE

lm-sensors Jean Delvare 1 participant 3 messages Jul 3, 2007 – Jul 19, 2007

lore
Share & tools
lore
#0 lore raw

Hi all, hi Phil,

For lm-sensors 3.0.0, I think we could get rid of LM_DATE. It's only used in libsensors:

lib/data.c:const char *libsensors_date = LM_DATE;

And this symbol is not even advertised, so it is quite unlikely that anyone is using it. Even we don't use it. I think that this string is redundant with LM_VERSION anyway, so it's not very useful. So I propose to get rid of LM_DATE and libsensors_date. Any objection?

LM_VERSION is also only used in libsensors:

lib/data.c:const char *libsensors_version = LM_VERSION;

It is also not advertised, still we use it in sensors:

prog/sensors/main.c:extern const char *libsensors_version;
prog/sensors/main.c: printf("%s version %s with libsensors version %s\n", PROGRAM, VERSION, libsensors_version);

This needs to be cleaned up (I'll do.)

If we get rid of LM_DATE, then I also propose to get rid of the "version" target in the Makefile. Changing the version string directly in version.h seems rather easier. Phil, would that change be OK with you?

Thanks,

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#1 lore raw

Hi all, hi Phil,

Quoted 9 lines · Jean Delvare

For lm-sensors 3.0.0, I think we could get rid of LM_DATE. It's only used in libsensors:

lib/data.c:const char *libsensors_date = LM_DATE;

And this symbol is not even advertised, so it is quite unlikely that anyone is using it. Even we don't use it. I think that this string is redundant with LM_VERSION anyway, so it's not very useful. So I propose to get rid of LM_DATE and libsensors_date. Any objection?

No objection, so I proceeded with the deletion.

Quoted 10 lines

LM_VERSION is also only used in libsensors:

lib/data.c:const char *libsensors_version = LM_VERSION;

It is also not advertised, still we use it in sensors:

prog/sensors/main.c:extern const char *libsensors_version;
prog/sensors/main.c: printf("%s version %s with libsensors version %s\n", PROGRAM, VERSION, libsensors_version);

This needs to be cleaned up (I'll do.)

Done, libsensors_version is now properly advertised and documented.

Quoted 4 lines

If we get rid of LM_DATE, then I also propose to get rid of the "version" target in the Makefile. Changing the version string directly in version.h seems rather easier. Phil, would that change be OK with you?

And done too.

While doing these cleanups, I noticed that we have a "package" target in our Makefile, which seems to be outdated (it still assumes CVS instead of SVN). It appears to be redundant with the instructions in doc/developers/release_checklist, which _are_ up-to-date. So I suppose that Phil uses the checklist for releases and not the package target in the Makefile, meaning that the latter could be removed. Any objection?

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#2 lore raw
In reply to Jean Delvare
Quoted 6 lines · Jean Delvare

While doing these cleanups, I noticed that we have a "package" target in our Makefile, which seems to be outdated (it still assumes CVS instead of SVN). It appears to be redundant with the instructions in doc/developers/release_checklist, which _are_ up-to-date. So I suppose that Phil uses the checklist for releases and not the package target in the Makefile, meaning that the latter could be removed. Any objection?

Done.

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors