diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-08-19 14:12:42 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-08-21 10:29:56 +0100 |
| commit | fe518d0d10782c303a444f518d6e81a2594156ea (patch) | |
| tree | c7ec6265c637b20fc8db3650c1c679e270ad966a /meta/recipes-kernel | |
| parent | 08d87537b8766870e765965feccdd0dd5506b425 (diff) | |
| download | poky-fe518d0d10782c303a444f518d6e81a2594156ea.tar.gz | |
babeltrace: Remove in favour of babeltrace2
This version is deprecated and replaced by babeltrace2. Drop the older version
so we can focus efforts around the newer one.
(From OE-Core rev: d16a5e05b3f383d21a1970c6613494416a7503c2)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel')
| -rwxr-xr-x | meta/recipes-kernel/lttng/babeltrace/run-ptest | 9 | ||||
| -rw-r--r-- | meta/recipes-kernel/lttng/babeltrace_1.5.11.bb | 98 | ||||
| -rw-r--r-- | meta/recipes-kernel/lttng/lttng-tools_2.14.0.bb | 2 |
3 files changed, 1 insertions, 108 deletions
diff --git a/meta/recipes-kernel/lttng/babeltrace/run-ptest b/meta/recipes-kernel/lttng/babeltrace/run-ptest deleted file mode 100755 index f4b7ce11e2..0000000000 --- a/meta/recipes-kernel/lttng/babeltrace/run-ptest +++ /dev/null | |||
| @@ -1,9 +0,0 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | # use target=recheck if you want to recheck failing tests | ||
| 3 | [ "$target" = "" ] && target=check | ||
| 4 | |||
| 5 | # Without --ignore-exit, the tap harness causes any FAILs within a | ||
| 6 | # test plan to raise ERRORs; this is just noise. | ||
| 7 | makeargs="LOG_DRIVER_FLAGS=--ignore-exit top_srcdir=$PWD top_builddir=$PWD" | ||
| 8 | |||
| 9 | exec make -C tests -k -s $makeargs $target 2>/dev/null | ||
diff --git a/meta/recipes-kernel/lttng/babeltrace_1.5.11.bb b/meta/recipes-kernel/lttng/babeltrace_1.5.11.bb deleted file mode 100644 index 8ec80167a0..0000000000 --- a/meta/recipes-kernel/lttng/babeltrace_1.5.11.bb +++ /dev/null | |||
| @@ -1,98 +0,0 @@ | |||
| 1 | SUMMARY = "Babeltrace - Trace Format Babel Tower" | ||
| 2 | DESCRIPTION = "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." | ||
| 3 | HOMEPAGE = "http://babeltrace.org/" | ||
| 4 | BUGTRACKER = "https://bugs.lttng.org/projects/babeltrace" | ||
| 5 | LICENSE = "MIT & GPL-2.0-only & LGPL-2.1-only" | ||
| 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=76ba15dd76a248e1dd526bca0e2125fa" | ||
| 7 | |||
| 8 | DEPENDS = "glib-2.0 util-linux popt bison-native flex-native" | ||
| 9 | |||
| 10 | SRC_URI = "git://git.efficios.com/babeltrace.git;branch=stable-1.5;protocol=https \ | ||
| 11 | file://run-ptest \ | ||
| 12 | " | ||
| 13 | SRCREV = "91c00f70884887ff5c4849a8e3d47e311a22ba9d" | ||
| 14 | UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>1(\.\d+)+)$" | ||
| 15 | |||
| 16 | inherit autotools pkgconfig ptest | ||
| 17 | |||
| 18 | EXTRA_OECONF = "--disable-debug-info" | ||
| 19 | |||
| 20 | ASNEEDED = "" | ||
| 21 | |||
| 22 | RDEPENDS:${PN}-ptest += "bash gawk make" | ||
| 23 | |||
| 24 | addtask do_patch_ptest_path after do_patch before do_configure | ||
| 25 | do_patch_ptest_path () { | ||
| 26 | for f in $(grep -l -r abs_top_srcdir ${S}/tests); do | ||
| 27 | sed -i 's:\@abs_top_srcdir\@:${PTEST_PATH}:' ${f} | ||
| 28 | done | ||
| 29 | |||
| 30 | for f in $(grep -l -r abs_top_builddir ${S}/tests); do | ||
| 31 | sed -i 's:\@abs_top_builddir\@:${PTEST_PATH}:' ${f} | ||
| 32 | done | ||
| 33 | for f in $(grep -l -r GREP ${S}/tests); do | ||
| 34 | sed -i 's:\@GREP\@:grep:' ${f} | ||
| 35 | done | ||
| 36 | |||
| 37 | for f in $(grep -l -r SED ${S}/tests); do | ||
| 38 | sed -i 's:\@SED\@:sed:' ${f} | ||
| 39 | done | ||
| 40 | } | ||
| 41 | |||
| 42 | do_compile_ptest () { | ||
| 43 | make -C tests all | ||
| 44 | } | ||
| 45 | |||
| 46 | do_install_ptest () { | ||
| 47 | # Copy required files from source directory | ||
| 48 | for f in config/tap-driver.sh config/test-driver; do | ||
| 49 | install -D "${S}/$f" "${D}${PTEST_PATH}/$f" | ||
| 50 | done | ||
| 51 | install -d "$f" "${D}${PTEST_PATH}/tests/ctf-traces/" | ||
| 52 | cp -a ${S}/tests/ctf-traces/* ${D}${PTEST_PATH}/tests/ctf-traces/ | ||
| 53 | |||
| 54 | # Copy the tests directory tree and the executables and | ||
| 55 | # Makefiles found within. | ||
| 56 | install -D "${B}/tests/Makefile" "${D}${PTEST_PATH}/tests/" | ||
| 57 | for d in $(find "${B}/tests" -type d -not -name .libs -printf '%P ') ; do | ||
| 58 | install -d "${D}${PTEST_PATH}/tests/$d" | ||
| 59 | find "${B}/tests/$d" -maxdepth 1 -executable -type f \ | ||
| 60 | -exec install -t "${D}${PTEST_PATH}/tests/$d" {} + | ||
| 61 | test -r "${B}/tests/$d/Makefile" && \ | ||
| 62 | install -t "${D}${PTEST_PATH}/tests/$d" "${B}/tests/$d/Makefile" | ||
| 63 | find "${B}/tests/$d" -maxdepth 1 -name *.sh \ | ||
| 64 | -exec install -t "${D}${PTEST_PATH}/tests/$d" {} \; | ||
| 65 | done | ||
| 66 | |||
| 67 | for d in $(find "${B}/tests" -type d -name .libs -printf '%P ') ; do | ||
| 68 | for f in $(find "${B}/tests/$d" -maxdepth 1 -executable -type f -printf '%P ') ; do | ||
| 69 | cp ${B}/tests/$d/$f ${D}${PTEST_PATH}/tests/`dirname $d`/$f | ||
| 70 | done | ||
| 71 | done | ||
| 72 | |||
| 73 | install -D ${B}/formats/ctf/metadata/.libs/ctf-parser-test \ | ||
| 74 | ${D}${PTEST_PATH}/formats/ctf/metadata/ctf-parser-test | ||
| 75 | |||
| 76 | # Prevent attempts to update Makefiles during test runs, and | ||
| 77 | # silence "Making check in $SUBDIR" messages. | ||
| 78 | find "${D}${PTEST_PATH}" -name Makefile -type f -exec \ | ||
| 79 | sed -i \ | ||
| 80 | -e '/Makefile:/,/^$/d' \ | ||
| 81 | -e '/$(check_SCRIPTS)/s/^/#/' \ | ||
| 82 | -e '/%: %.in/,/^$/d' \ | ||
| 83 | -e '/echo "Making $$target in $$subdir"; \\/d' \ | ||
| 84 | -e 's/^srcdir = \(.*\)/srcdir = ./' \ | ||
| 85 | -e 's/^builddir = \(.*\)/builddir = ./' \ | ||
| 86 | -e 's/^all-am:.*/all-am:/' \ | ||
| 87 | {} + | ||
| 88 | |||
| 89 | # Remove path to babeltrace. | ||
| 90 | for f in $(grep -l -r "^BABELTRACE_BIN" ${D}${PTEST_PATH}); do | ||
| 91 | sed -i 's:^BABELTRACE_BIN.*:BABELTRACE_BIN=/usr/bin/babeltrace:' ${f} | ||
| 92 | done | ||
| 93 | for f in $(grep -l -r "^BTBIN" ${D}${PTEST_PATH}); do | ||
| 94 | sed -i 's:^BTBIN.*:BTBIN=/usr/bin/babeltrace:' ${f} | ||
| 95 | done | ||
| 96 | } | ||
| 97 | |||
| 98 | BBCLASSEXTEND = "nativesdk" | ||
diff --git a/meta/recipes-kernel/lttng/lttng-tools_2.14.0.bb b/meta/recipes-kernel/lttng/lttng-tools_2.14.0.bb index a3faf1e758..b3383accd9 100644 --- a/meta/recipes-kernel/lttng/lttng-tools_2.14.0.bb +++ b/meta/recipes-kernel/lttng/lttng-tools_2.14.0.bb | |||
| @@ -15,7 +15,7 @@ include lttng-platforms.inc | |||
| 15 | DEPENDS = "liburcu popt libxml2 util-linux bison-native babeltrace2" | 15 | DEPENDS = "liburcu popt libxml2 util-linux bison-native babeltrace2" |
| 16 | RDEPENDS:${PN} = "libgcc" | 16 | RDEPENDS:${PN} = "libgcc" |
| 17 | RRECOMMENDS:${PN} += "${LTTNGMODULES}" | 17 | RRECOMMENDS:${PN} += "${LTTNGMODULES}" |
| 18 | RDEPENDS:${PN}-ptest += "make perl bash gawk babeltrace procps perl-module-overloading coreutils util-linux kmod ${LTTNGMODULES} sed python3-core grep binutils" | 18 | RDEPENDS:${PN}-ptest += "make perl bash gawk procps perl-module-overloading coreutils util-linux kmod ${LTTNGMODULES} sed python3-core grep binutils" |
| 19 | RDEPENDS:${PN}-ptest:append:libc-glibc = " glibc-utils" | 19 | RDEPENDS:${PN}-ptest:append:libc-glibc = " glibc-utils" |
| 20 | RDEPENDS:${PN}-ptest:append:libc-musl = " musl-utils" | 20 | RDEPENDS:${PN}-ptest:append:libc-musl = " musl-utils" |
| 21 | # babelstats.pl wants getopt-long | 21 | # babelstats.pl wants getopt-long |
