summaryrefslogtreecommitdiffstats
path: root/package/lttng-tools/0001-Fix-snapshot-del-output-with-name-on-musl.patch
diff options
context:
space:
mode:
authorPhilippe Proulx <eeppeliteloop@gmail.com>2016-11-02 02:55:05 -0400
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-11-02 22:40:30 +0100
commitd6d3c7ad39b3eb6e51a3feec333a8fc84f7258f7 (patch)
treee8de0290a1c4cd1093648baf2e694d4c4a9b8953 /package/lttng-tools/0001-Fix-snapshot-del-output-with-name-on-musl.patch
parent36bd9a3cb45ef4ce59581eb9f9c557cf6ceef09b (diff)
downloadbuildroot-d6d3c7ad39b3eb6e51a3feec333a8fc84f7258f7.tar.gz
buildroot-d6d3c7ad39b3eb6e51a3feec333a8fc84f7258f7.zip
lttng-tools: bump to version 2.8.2
The current patches are dropped because they were merged upstream. The new patches exist to fix the build with musl. They were submitted on the lttng-dev mailing list, but not merged yet, or not merged in 2.8.2. LTTng-tools now has its man pages written in AsciiDoc and they get converted to troff at build time. This is not needed in a Buildroot image anyway. The --enable-lttng-ust/--disable-lttng-ust configure options are renamed to --with-lttng-ust/--without-lttng-ust in v2.8. Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/lttng-tools/0001-Fix-snapshot-del-output-with-name-on-musl.patch')
-rw-r--r--package/lttng-tools/0001-Fix-snapshot-del-output-with-name-on-musl.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/package/lttng-tools/0001-Fix-snapshot-del-output-with-name-on-musl.patch b/package/lttng-tools/0001-Fix-snapshot-del-output-with-name-on-musl.patch
new file mode 100644
index 0000000000..102a02bef5
--- /dev/null
+++ b/package/lttng-tools/0001-Fix-snapshot-del-output-with-name-on-musl.patch
@@ -0,0 +1,32 @@
+From: mjeanson@efficios.com Michael Jeanson
+Date: Wed, 15 Jun 2016 17:18:02 -0400
+Subject: [lttng-dev] [PATCH] Fix: snapshot del-output with name on musl
+
+Some implementations of strtol() like the one in musl will
+return EINVAL in perror when no valid number was found in
+the string.
+
+Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
+[Philippe: grabbed from the mailing list:
+ https://lists.lttng.org/pipermail/lttng-dev/2016-June/026192.html
+ and adapted to 2.8.2.]
+Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
+---
+ src/bin/lttng/commands/snapshot.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/bin/lttng/commands/snapshot.c b/src/bin/lttng/commands/snapshot.c
+index d948226..00aa5b7 100644
+--- a/src/bin/lttng/commands/snapshot.c
++++ b/src/bin/lttng/commands/snapshot.c
+@@ -447,7 +447,7 @@ static int cmd_del_output(int argc, const char **argv)
+
+ errno = 0;
+ id = strtol(argv[1], &name, 10);
+- if (id == 0 && errno == 0) {
++ if (id == 0 && (errno == 0 || errno == EINVAL)) {
+ if (lttng_opt_mi) {
+ ret = mi_del_output(UINT32_MAX, name);
+ } else {
+--
+2.7.4
OpenPOWER on IntegriCloud