summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/lttng/babeltrace2_2.0.3.bb
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2020-06-08 09:46:37 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-06-09 13:14:00 +0100
commita1b3536f18fbd3ca8174ade15afb4d93f93775c1 (patch)
treec605ef4b343d55352997fde5a6ddf660f80a9e3a /meta/recipes-kernel/lttng/babeltrace2_2.0.3.bb
parentfb2893bf2d5b980ac54fac8ce715eafced6df203 (diff)
downloadpoky-a1b3536f18fbd3ca8174ade15afb4d93f93775c1.tar.gz
babeltrace2: upgrade 2.0.2 -> 2.0.3
(From OE-Core rev: 2827f36db8a0f59555689ebfa5c5848b16ec9c11) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel/lttng/babeltrace2_2.0.3.bb')
-rw-r--r--meta/recipes-kernel/lttng/babeltrace2_2.0.3.bb93
1 files changed, 93 insertions, 0 deletions
diff --git a/meta/recipes-kernel/lttng/babeltrace2_2.0.3.bb b/meta/recipes-kernel/lttng/babeltrace2_2.0.3.bb
new file mode 100644
index 0000000000..c65882581d
--- /dev/null
+++ b/meta/recipes-kernel/lttng/babeltrace2_2.0.3.bb
@@ -0,0 +1,93 @@
1SUMMARY = "Babeltrace2 - Trace Format Babel Tower"
2DESCRIPTION = "Babeltrace provides trace read and write libraries in host side, as well as a trace converter, which used to convert LTTng 2.0 traces into human-readable log."
3HOMEPAGE = "http://babeltrace.org/"
4BUGTRACKER = "https://bugs.lttng.org/projects/babeltrace"
5LICENSE = "MIT & GPLv2 & LGPLv2.1 & BSD-2-Clause"
6LIC_FILES_CHKSUM = "file://LICENSE;md5=a6a458c13f18385b7bc5069a6d7b176e"
7
8DEPENDS = "glib-2.0 util-linux popt bison-native flex-native"
9
10SRC_URI = "git://git.efficios.com/babeltrace.git;branch=stable-2.0 \
11 file://run-ptest \
12 file://0001-tests-do-not-run-test-applications-from-.libs.patch \
13 file://0001-Make-manpages-multilib-identical.patch \
14 "
15SRCREV = "91d154476e66735d705adda9ca5cbf5b5eea5940"
16UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>2(\.\d+)+)$"
17
18S = "${WORKDIR}/git"
19
20inherit autotools pkgconfig ptest
21
22EXTRA_OECONF = "--disable-debug-info"
23
24PACKAGECONFIG ??= "manpages"
25PACKAGECONFIG[manpages] = ", --disable-man-pages, asciidoc-native xmlto-native"
26
27FILES_${PN}-staticdev += "${libdir}/babeltrace2/plugins/*.a"
28FILES_${PN} += "${libdir}/babeltrace2/plugins/*.so"
29
30ASNEEDED = ""
31
32RDEPENDS_${PN}-ptest += "bash gawk python3"
33
34do_compile_ptest () {
35 make -C tests all
36}
37
38do_install_ptest () {
39 install -d "${D}${PTEST_PATH}/tests"
40
41 # Copy required files from source directory
42 for d in $(find "${S}/tests" -type d -printf '%P ') ; do
43 install -d "${D}${PTEST_PATH}/tests/$d"
44 find "${S}/tests/$d" -maxdepth 1 -executable -type f \
45 -exec install -t "${D}${PTEST_PATH}/tests/$d" {} +
46 find "${S}/tests/$d" -maxdepth 1 -name *.sh \
47 -exec install -t "${D}${PTEST_PATH}/tests/$d" {} \;
48 find "${S}/tests/$d" -maxdepth 1 -name *.py \
49 -exec install -t "${D}${PTEST_PATH}/tests/$d" {} \;
50 find "${S}/tests/$d" -maxdepth 1 -name *.expect \
51 -exec install -t "${D}${PTEST_PATH}/tests/$d" {} \;
52 done
53 install -d "${D}${PTEST_PATH}/tests/data/ctf-traces/"
54 cp -a ${S}/tests/data/ctf-traces/* ${D}${PTEST_PATH}/tests/data/ctf-traces/
55
56 # Copy the tests directory tree and the executables and
57 # Makefiles found within.
58 install -D "${B}/tests/Makefile" "${D}${PTEST_PATH}/tests/"
59 for d in $(find "${B}/tests" -type d -not -name .libs -printf '%P ') ; do
60 install -d "${D}${PTEST_PATH}/tests/$d"
61 find "${B}/tests/$d" -maxdepth 1 -executable -type f \
62 -exec install -t "${D}${PTEST_PATH}/tests/$d" {} +
63 test -r "${B}/tests/$d/Makefile" && \
64 install -t "${D}${PTEST_PATH}/tests/$d" "${B}/tests/$d/Makefile"
65 find "${B}/tests/$d" -maxdepth 1 -name *.sh \
66 -exec install -t "${D}${PTEST_PATH}/tests/$d" {} \;
67 done
68
69 for d in $(find "${B}/tests" -type d -name .libs -printf '%P ') ; do
70 for f in $(find "${B}/tests/$d" -maxdepth 1 -executable -type f -printf '%P ') ; do
71 cp ${B}/tests/$d/$f ${D}${PTEST_PATH}/tests/`dirname $d`/$f
72 done
73 done
74
75 # Prevent attempts to update Makefiles during test runs, and
76 # silence "Making check in $SUBDIR" messages.
77 find "${D}${PTEST_PATH}" -name Makefile -type f -exec \
78 sed -i \
79 -e '/Makefile:/,/^$/d' \
80 -e '/%: %.in/,/^$/d' \
81 -e '/echo "Making $$target in $$subdir"; \\/d' \
82 -e 's/^srcdir = \(.*\)/srcdir = ./' \
83 -e 's/^builddir = \(.*\)/builddir = ./' \
84 -e 's/^all-am:.*/all-am:/' \
85 {} +
86
87 # Substitute links to installed binaries.
88 install -d "${D}${PTEST_PATH}/src/cli/"
89 ln -s "${bindir}/babeltrace2" ${D}${PTEST_PATH}/src/cli/
90
91 # Remove architechture specific testfiles
92 rm -rf ${D}${PTEST_PATH}/tests/data/plugins/flt.lttng-utils.debug-info/*
93}