From 37db59c9335c4c5b0515962535b9f2d6103cfe07 Mon Sep 17 00:00:00 2001 From: Willer Moreira Date: Tue, 3 Nov 2009 22:14:23 -0300 Subject: [PATCH 074/118] systemtap: adding recipe Signed-off-by: Willer Moreira --- .../systemtap/systemtap/elfutils-vector-fix.patch | 11 +++++++ .../systemtap/systemtap/fix_elfutils_host.patch | 11 +++++++ recipes/systemtap/systemtap_git.bb | 31 ++++++++++++++++++++ 3 files changed, 53 insertions(+), 0 deletions(-) create mode 100644 recipes/systemtap/systemtap/elfutils-vector-fix.patch create mode 100644 recipes/systemtap/systemtap/fix_elfutils_host.patch create mode 100644 recipes/systemtap/systemtap_git.bb diff --git a/recipes/systemtap/systemtap/elfutils-vector-fix.patch b/recipes/systemtap/systemtap/elfutils-vector-fix.patch new file mode 100644 index 0000000..dc4f827 --- /dev/null +++ b/recipes/systemtap/systemtap/elfutils-vector-fix.patch @@ -0,0 +1,11 @@ +--- elfutils/libdwfl/dwfl_module_getdwarf.c 2007-11-11 19:29:00.000000000 +0000 ++++ elfutils/libdwfl/dwfl_module_getdwarf.c 2008-03-19 19:20:04.000000000 +0000 +@@ -263,7 +263,7 @@ + OFFS[*] start out zero and remain zero if unresolved. */ + static void + find_offsets (Elf *elf, const GElf_Ehdr *ehdr, size_t n, +- GElf_Addr addrs[n], GElf_Off offs[n]) ++ GElf_Addr *addrs, GElf_Off *offs) + { + size_t unsolved = n; + for (uint_fast16_t i = 0; i < ehdr->e_phnum; ++i) diff --git a/recipes/systemtap/systemtap/fix_elfutils_host.patch b/recipes/systemtap/systemtap/fix_elfutils_host.patch new file mode 100644 index 0000000..3be941a --- /dev/null +++ b/recipes/systemtap/systemtap/fix_elfutils_host.patch @@ -0,0 +1,11 @@ +--- src/configure.ac 2008-04-13 17:53:12.000000000 +0000 ++++ src/configure.ac.orig 2008-04-13 17:56:06.000000000 +0000 +@@ -228,6 +228,8 @@ + --libdir="${here}/lib-elfutils" \ + --exec-prefix="$exec_prefix" \ + --prefix="$prefix" \ ++ --host=${HOST_SYS} \ ++ --build=${BUILD_SYS} \ + CFLAGS="${CFLAGS/-Wall/}" \ + LDFLAGS="$LDFLAGS $elfutils_rpath" + ) diff --git a/recipes/systemtap/systemtap_git.bb b/recipes/systemtap/systemtap_git.bb new file mode 100644 index 0000000..1e51c1f --- /dev/null +++ b/recipes/systemtap/systemtap_git.bb @@ -0,0 +1,31 @@ +DESCRIPTION = "SystemTap provides a simple command line interface and scripting language for writing instrumentation for a live running kernel." +SECTION = "devel" +LICENSE = "GPLv2" +DEPENDS = "libcap" + +PV = "0.7+git${SRCREV}" +PR = "r0" + +SRC_URI = "git://sources.redhat.com/git/systemtap.git;protocol=git \ + file://fix_elfutils_host.patch;patch=1;pnum=1 \ + ftp://sources.redhat.com/pub/systemtap/elfutils/elfutils-0.131.tar.gz \ + ftp://sources.redhat.com/pub/systemtap/elfutils/elfutils-portability.patch \ + file://elfutils-vector-fix.patch" + +inherit autotools + +S = "${WORKDIR}/git" + +EXTRA_OECONF = " --with-elfutils=${WORKDIR}/elfutils-0.131 --disable-ssp HOST_SYS=${HOST_SYS} BUILD_SYS=${BUILD_SYS}" + +do_unpack2() { + cd "${WORKDIR}/elfutils-0.131" + patch -p1 ../elfutils-vector-fix.patch + patch -p1 ../elfutils-portability.patch +} + +addtask unpack2 after do_unpack before do_patch + +do_stage () { + autotools_stage_all +} -- 1.6.3.3