diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2018-12-14 13:32:07 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2018-12-15 19:54:05 +0100 |
commit | 3182bba241b637d071fea02aefed8e2ffb42c021 (patch) | |
tree | 673c12c9fa8144606f70e52c2edf35a49564aa24 /patches/collectd-5.8.1 | |
parent | 6acdb6db486c6cbd7cd4d43a10394055a28f0328 (diff) | |
download | ptxdist-3182bba241b637d071fea02aefed8e2ffb42c021.tar.gz ptxdist-3182bba241b637d071fea02aefed8e2ffb42c021.tar.xz |
collectd: version bump 5.7.2 -> 5.8.1
Also, add uUpstream patch to fix building with lm-sensors 3.5.0.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'patches/collectd-5.8.1')
-rw-r--r-- | patches/collectd-5.8.1/0001-sensors-Removed-checks-for-upper-limit-of-SENSORS_AP.patch | 82 | ||||
-rw-r--r-- | patches/collectd-5.8.1/series | 4 |
2 files changed, 86 insertions, 0 deletions
diff --git a/patches/collectd-5.8.1/0001-sensors-Removed-checks-for-upper-limit-of-SENSORS_AP.patch b/patches/collectd-5.8.1/0001-sensors-Removed-checks-for-upper-limit-of-SENSORS_AP.patch new file mode 100644 index 000000000..33b81b9ec --- /dev/null +++ b/patches/collectd-5.8.1/0001-sensors-Removed-checks-for-upper-limit-of-SENSORS_AP.patch @@ -0,0 +1,82 @@ +From: Pavel Rochnyack <pavel2000@ngs.ru> +Date: Mon, 3 Dec 2018 18:34:14 +0700 +Subject: [PATCH] sensors: Removed checks for upper limit of + SENSORS_API_VERSION + +That makes no more sense after lm-sensors got new maintainers. + +Issue: #3006 +--- + src/sensors.c | 17 ++++++----------- + 1 file changed, 6 insertions(+), 11 deletions(-) + +diff --git a/src/sensors.c b/src/sensors.c +index f4ecda5e49e0..33982e061a99 100644 +--- a/src/sensors.c ++++ b/src/sensors.c +@@ -149,7 +149,7 @@ typedef struct featurelist { + static char *conffile = SENSORS_CONF_PATH; + /* #endif SENSORS_API_VERSION < 0x400 */ + +-#elif (SENSORS_API_VERSION >= 0x400) && (SENSORS_API_VERSION < 0x500) ++#elif (SENSORS_API_VERSION >= 0x400) + typedef struct featurelist { + const sensors_chip_name *chip; + const sensors_feature *feature; +@@ -159,11 +159,6 @@ typedef struct featurelist { + + static char *conffile = NULL; + static _Bool use_labels = 0; +-/* #endif (SENSORS_API_VERSION >= 0x400) && (SENSORS_API_VERSION < 0x500) */ +- +-#else /* if SENSORS_API_VERSION >= 0x500 */ +-#error "This version of libsensors is not supported yet. Please report this " \ +- "as bug." + #endif + + static featurelist_t *first_feature = NULL; +@@ -223,7 +218,7 @@ static int sensors_config(const char *key, const char *value) { + if (IS_TRUE(value)) + ignorelist_set_invert(sensor_list, 0); + } +-#if (SENSORS_API_VERSION >= 0x400) && (SENSORS_API_VERSION < 0x500) ++#if (SENSORS_API_VERSION >= 0x400) + else if (strcasecmp(key, "UseLabels") == 0) { + use_labels = IS_TRUE(value) ? 1 : 0; + } +@@ -353,7 +348,7 @@ static int sensors_load_conf(void) { + } /* while sensors_get_detected_chips */ + /* #endif SENSORS_API_VERSION < 0x400 */ + +-#elif (SENSORS_API_VERSION >= 0x400) && (SENSORS_API_VERSION < 0x500) ++#elif (SENSORS_API_VERSION >= 0x400) + chip_num = 0; + while ((chip = sensors_get_detected_chips(NULL, &chip_num)) != NULL) { + const sensors_feature *feature; +@@ -410,7 +405,7 @@ static int sensors_load_conf(void) { + } /* while (subfeature) */ + } /* while (feature) */ + } /* while (chip) */ +-#endif /* (SENSORS_API_VERSION >= 0x400) && (SENSORS_API_VERSION < 0x500) */ ++#endif /* (SENSORS_API_VERSION >= 0x400) */ + + if (first_feature == NULL) { + sensors_cleanup(); +@@ -485,7 +480,7 @@ static int sensors_read(void) { + } /* for fl = first_feature .. NULL */ + /* #endif SENSORS_API_VERSION < 0x400 */ + +-#elif (SENSORS_API_VERSION >= 0x400) && (SENSORS_API_VERSION < 0x500) ++#elif (SENSORS_API_VERSION >= 0x400) + for (featurelist_t *fl = first_feature; fl != NULL; fl = fl->next) { + double value; + int status; +@@ -528,7 +523,7 @@ static int sensors_read(void) { + + sensors_submit(plugin_instance, type, type_instance, value); + } /* for fl = first_feature .. NULL */ +-#endif /* (SENSORS_API_VERSION >= 0x400) && (SENSORS_API_VERSION < 0x500) */ ++#endif /* (SENSORS_API_VERSION >= 0x400) */ + + return 0; + } /* int sensors_read */ diff --git a/patches/collectd-5.8.1/series b/patches/collectd-5.8.1/series new file mode 100644 index 000000000..6c62916d3 --- /dev/null +++ b/patches/collectd-5.8.1/series @@ -0,0 +1,4 @@ +# generated by git-ptx-patches +#tag:base --start-number 1 +0001-sensors-Removed-checks-for-upper-limit-of-SENSORS_AP.patch +# a026b401edf10fcf730f4c8aa06eb97e - git-ptx-patches magic |