lttng-tools: fixes a wrong header issue
PATCH 1/1 lttng-tools: fixes a wrong header issue
From: Ming Liu <[email protected]>
This fixes a following compiling issue:
| agent.c:33:19: fatal error: error.h: No such file or directory | #include "error.h"
it's back-ported from lttng-tools upstream, we need it in SRC_URI since 2.8 is still the latest release.
--- .../0001-Fix-error.h-common-error.h.patch | 33 ++++++++++++++++++++++ meta/recipes-kernel/lttng/lttng-tools_git.bb | 1 + 2 files changed, 34 insertions(+) create mode 100644 meta/recipes-kernel/lttng/lttng-tools/0001-Fix-error.h-common-error.h.patch
meta/recipes-kernel/lttng/lttng-tools/0001-Fix-error.h-common-error.h.patch new file +33 -0
@@ -0,0 +1,33 @@ +From 6712db617fe9155ea236f6840c2bd18dbec4c871 Mon Sep 17 00:00:00 2001 +From: Michael Jeanson <[email protected]> +Date: Wed, 15 Jun 2016 17:18:03 -0400 +Subject: [PATCH] Fix: error.h -> common/error.h +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Upstream-Status: Backport + +Signed-off-by: Michael Jeanson <[email protected]> +Signed-off-by: Jérémie Galarneau <[email protected]> +Signed-off-by: Peter Liu <[email protected]> +--- + src/bin/lttng-sessiond/agent.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/bin/lttng-sessiond/agent.c b/src/bin/lttng-sessiond/agent.c +index 7cbbbde..310a7e8 100644 +--- a/src/bin/lttng-sessiond/agent.c ++++ b/src/bin/lttng-sessiond/agent.c +@@ -29,7 +29,7 @@ + #include "agent.h" + #include "ust-app.h" + #include "utils.h" +-#include "error.h" ++#include "common/error.h" + + #define AGENT_RET_CODE_INDEX(code) (code - AGENT_RET_CODE_SUCCESS) + +-- +1.9.1 +
meta/recipes-kernel/lttng/lttng-tools_git.bb +1 -0
@@ -28,6 +28,7 @@ PACKAGECONFIG[manpages] = "--enable-man-pages, --disable-man-pages, asciidoc-nat PACKAGECONFIG_remove_libc-musl = "lttng-ust" SRC_URI = "git://git.lttng.org/lttng-tools.git;branch=stable-2.8 \ + file://0001-Fix-error.h-common-error.h.patch \ file://runtest-2.4.0.patch \ file://run-ptest"
Signature · 1 line
1.9.1
Quoted 9 lines · On 09/23/2016 05:58 AM, [email protected] wrote:
From: Ming Liu <[email protected]>
This fixes a following compiling issue:
| agent.c:33:19: fatal error:error.h: No such file or directory | #include "error.h"it's back-ported from lttng-tools upstream, we need it in
SRC_URIsince 2.8 is still the latest release.
[...]
Quoted 7 lines
+
src/bin/lttng-sessiond/agent.c| 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)meta/recipes-kernel/lttng/lttng-tools/0001-Fix-error.h-common-error.h.patch new file +5
-0+ +diff --git a/src/bin/lttng-sessiond/agent.c b/src/bin/lttng-sessiond/agent.c +index 7cbbbde..310a7e8 100644 +--- a/src/bin/lttng-sessiond/agent.c ++++ b/src/bin/lttng-sessiond/agent.c
meta/recipes-kernel/lttng/lttng-tools/0001-Fix-error.h-common-error.h.patch line 31
Quoted 10 lines
meta/recipes-kernel/lttng/lttng-tools/0001-Fix-error.h-common-error.h.patch new file +10
-0+@@ -29,7 +29,7 @@ + #include "agent.h" + #include "ust-app.h" + #include "utils.h" +-#include "error.h" ++#include "common/error.h" + + #define AGENT_RET_CODE_INDEX(code) (code - AGENT_RET_CODE_SUCCESS) + +--
This is fixing an issue that doesn't look like it would be configuration-dependent; how was the build error provoked? I've never seen it.