[oe] [PATCH] Fix compilation error of events.c in ltrace on i386 target
Guo Hongruan
camelguo at gmail.com
Thu Dec 24 08:17:00 UTC 2009
on qemux86/minimal, the compilation of ltrace error reporting lack of some macro started with PTRACE_EVENT, this patch fixes this problem.
---
.../files/ltrace-fix-ptrace-event-macros.patch | 12 ++++++++++++
recipes/ltrace/ltrace_0.5.3.bb | 4 ++++
2 files changed, 16 insertions(+), 0 deletions(-)
create mode 100644 recipes/ltrace/files/ltrace-fix-ptrace-event-macros.patch
diff --git a/recipes/ltrace/files/ltrace-fix-ptrace-event-macros.patch b/recipes/ltrace/files/ltrace-fix-ptrace-event-macros.patch
new file mode 100644
index 0000000..7232ca8
--- /dev/null
+++ b/recipes/ltrace/files/ltrace-fix-ptrace-event-macros.patch
@@ -0,0 +1,12 @@
+Index: ltrace-0.5.3/sysdeps/linux-gnu/events.c
+===================================================================
+--- ltrace-0.5.3.orig/sysdeps/linux-gnu/events.c 2009-12-24 15:58:24.000000000 +0800
++++ ltrace-0.5.3/sysdeps/linux-gnu/events.c 2009-12-24 15:58:41.000000000 +0800
+@@ -8,6 +8,7 @@
+ #include <signal.h>
+ #include <string.h>
+ #include <sys/ptrace.h>
++#include <linux/ptrace.h>
+
+ #include "common.h"
+
diff --git a/recipes/ltrace/ltrace_0.5.3.bb b/recipes/ltrace/ltrace_0.5.3.bb
index 4130c29..1f70878 100644
--- a/recipes/ltrace/ltrace_0.5.3.bb
+++ b/recipes/ltrace/ltrace_0.5.3.bb
@@ -4,6 +4,8 @@ SECTION = "devel"
DEPENDS = "libelf"
LICENSE = "GPLv2"
+PR = "r2"
+
SRC_URI = "\
${DEBIAN_MIRROR}/main/l/ltrace/ltrace_${PV}.orig.tar.gz \
${DEBIAN_MIRROR}/main/l/ltrace/ltrace_${PV}-2.diff.gz;patch=1 \
@@ -12,7 +14,9 @@ SRC_URI = "\
file://ltrace-mips-remove-CP.patch;patch=1 \
file://ltrace-mips.patch;patch=1 \
file://ltrace-ppc.patch;patch=1 \
+ file://ltrace-fix-ptrace-event-macros.patch;patch=1 \
"
+
inherit autotools
export TARGET_CFLAGS = "${SELECTED_OPTIMIZATION} -isystem ${STAGING_INCDIR}"
--
1.5.4.3
More information about the Openembedded-devel
mailing list