diff options
Diffstat (limited to 'meta/recipes-kernel/lttng/lttng-tools_git.bb')
| -rw-r--r-- | meta/recipes-kernel/lttng/lttng-tools_git.bb | 120 |
1 files changed, 0 insertions, 120 deletions
diff --git a/meta/recipes-kernel/lttng/lttng-tools_git.bb b/meta/recipes-kernel/lttng/lttng-tools_git.bb deleted file mode 100644 index 29fd75b217..0000000000 --- a/meta/recipes-kernel/lttng/lttng-tools_git.bb +++ /dev/null | |||
| @@ -1,120 +0,0 @@ | |||
| 1 | SECTION = "devel" | ||
| 2 | SUMMARY = "Linux Trace Toolkit Control" | ||
| 3 | DESCRIPTION = "The Linux trace toolkit is a suite of tools designed \ | ||
| 4 | to extract program execution details from the Linux operating system \ | ||
| 5 | and interpret them." | ||
| 6 | |||
| 7 | LICENSE = "GPLv2 & LGPLv2.1" | ||
| 8 | LIC_FILES_CHKSUM = "file://LICENSE;md5=01d7fc4496aacf37d90df90b90b0cac1 \ | ||
| 9 | file://gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | ||
| 10 | file://lgpl-2.1.txt;md5=0f0d71500e6a57fd24d825f33242b9ca" | ||
| 11 | |||
| 12 | DEPENDS = "liburcu popt libxml2 util-linux" | ||
| 13 | RDEPENDS_${PN} = "libgcc" | ||
| 14 | RDEPENDS_${PN}-ptest += "make perl bash gawk ${PN} babeltrace procps" | ||
| 15 | # babelstats.pl wants getopt-long | ||
| 16 | RDEPENDS_${PN}-ptest += "perl-module-getopt-long" | ||
| 17 | |||
| 18 | SRCREV = "d11e0dba0df9024b8613c51e167a379b91e8b20b" | ||
| 19 | PV = "2.8.1+git${SRCPV}" | ||
| 20 | |||
| 21 | PYTHON_OPTION = "am_cv_python_pyexecdir='${PYTHON_SITEPACKAGES_DIR}' \ | ||
| 22 | am_cv_python_pythondir='${PYTHON_SITEPACKAGES_DIR}' \ | ||
| 23 | PYTHON_INCLUDE='-I${STAGING_INCDIR}/python${PYTHON_BASEVERSION}${PYTHON_ABI}' \ | ||
| 24 | " | ||
| 25 | PACKAGECONFIG ??= "lttng-ust" | ||
| 26 | PACKAGECONFIG[python] = "--enable-python-bindings ${PYTHON_OPTION},,python3 swig-native" | ||
| 27 | PACKAGECONFIG[lttng-ust] = "--with-lttng-ust, --without-lttng-ust, lttng-ust" | ||
| 28 | PACKAGECONFIG[kmod] = "--enable-kmod, --disable-kmod, kmod" | ||
| 29 | PACKAGECONFIG[manpages] = "--enable-man-pages, --disable-man-pages, asciidoc-native xmlto-native libxslt-native" | ||
| 30 | PACKAGECONFIG_remove_libc-musl = "lttng-ust" | ||
| 31 | |||
| 32 | SRC_URI = "git://git.lttng.org/lttng-tools.git;branch=stable-2.8 \ | ||
| 33 | file://0001-Fix-error.h-common-error.h.patch \ | ||
| 34 | file://x32.patch \ | ||
| 35 | file://run-ptest" | ||
| 36 | |||
| 37 | S = "${WORKDIR}/git" | ||
| 38 | |||
| 39 | inherit autotools-brokensep ptest pkgconfig useradd python3-dir manpages | ||
| 40 | |||
| 41 | USERADD_PACKAGES = "${PN}" | ||
| 42 | GROUPADD_PARAM_${PN} = "tracing" | ||
| 43 | |||
| 44 | FILES_${PN} += "${libdir}/lttng/libexec/* ${datadir}/xml/lttng \ | ||
| 45 | ${PYTHON_SITEPACKAGES_DIR}/*" | ||
| 46 | FILES_${PN}-staticdev += "${PYTHON_SITEPACKAGES_DIR}/*.a" | ||
| 47 | FILES_${PN}-dev += "${PYTHON_SITEPACKAGES_DIR}/*.la" | ||
| 48 | |||
| 49 | # Since files are installed into ${libdir}/lttng/libexec we match | ||
| 50 | # the libexec insane test so skip it. | ||
| 51 | # Python module needs to keep _lttng.so | ||
| 52 | INSANE_SKIP_${PN} = "libexec dev-so" | ||
| 53 | INSANE_SKIP_${PN}-dbg = "libexec" | ||
| 54 | |||
| 55 | do_configure_prepend () { | ||
| 56 | # Delete a shipped m4 file that overrides our patched one | ||
| 57 | rm -f ${S}/m4/libxml.m4 | ||
| 58 | } | ||
| 59 | |||
| 60 | do_install_ptest () { | ||
| 61 | mkdir -p ${D}${PTEST_PATH} | ||
| 62 | |||
| 63 | cp -a -T ${B} ${D}${PTEST_PATH} | ||
| 64 | |||
| 65 | # Prevent attempts to update Makefiles during test runs, and | ||
| 66 | # silence "Making check in $SUBDIR" messages. | ||
| 67 | find ${D}${PTEST_PATH} -name Makefile -type f -exec \ | ||
| 68 | sed -i -e 's!^Makefile:!_Makefile:!' \ | ||
| 69 | -e '/echo "Making $$target in $$subdir"; \\/d' {} + | ||
| 70 | |||
| 71 | # Prevent attempts to update version.h during test runs. | ||
| 72 | sed -i -e '/^\.PHONY: version\.h$/d' ${D}${PTEST_PATH}/include/Makefile | ||
| 73 | |||
| 74 | # Silence "Making check in $SUBDIR" messages. | ||
| 75 | find ${D}${PTEST_PATH} -name Makefile -type f -exec \ | ||
| 76 | sed -i -e '/echo "Making $$target in $$subdir"; \\/d' {} + | ||
| 77 | |||
| 78 | # Substitute links to installed binaries. | ||
| 79 | for prog in lttng lttng-relayd lttng-sessiond lttng-consumerd ; do | ||
| 80 | orig="${D}${PTEST_PATH}/src/bin/${prog}/${prog}" | ||
| 81 | rm "$orig" | ||
| 82 | case "$prog" in | ||
| 83 | lttng-consumerd) | ||
| 84 | ln -s "${libdir}/lttng/libexec/$prog" "$orig" | ||
| 85 | ;; | ||
| 86 | *) | ||
| 87 | ln -s "${bindir}/$prog" "$orig" | ||
| 88 | ;; | ||
| 89 | esac | ||
| 90 | done | ||
| 91 | |||
| 92 | # Remove libtool artifacts. | ||
| 93 | find ${D}${PTEST_PATH} \( -name '*.l[ao]' -o -name '*.lai' \) -delete | ||
| 94 | |||
| 95 | # Remove object files and archives. | ||
| 96 | find ${D}${PTEST_PATH} -name '*.[oa]' -type f -delete | ||
| 97 | |||
| 98 | # Remove Makefile.am and Makefile.in. | ||
| 99 | find ${D}${PTEST_PATH} -name 'Makefile.*' -type f -delete | ||
| 100 | |||
| 101 | # Remove autom4te.cache. | ||
| 102 | rm -rf ${D}${PTEST_PATH}/autom4te.cache | ||
| 103 | |||
| 104 | # Replace libtool wrapper scripts (which won't work on the | ||
| 105 | # target) with their corresponding binaries. | ||
| 106 | for prog in unit/ini_config/ini_config \ | ||
| 107 | regression/tools/live/live_test \ | ||
| 108 | regression/tools/health/health_check ; do | ||
| 109 | basename=${prog##*/} | ||
| 110 | ldir=${D}${PTEST_PATH}/tests/${prog%/*} | ||
| 111 | mv -f ${ldir}/.libs/${basename} ${ldir} | ||
| 112 | done | ||
| 113 | |||
| 114 | # checkpatch.pl is unneeded on target and causes file-rdeps QA | ||
| 115 | # warnings. | ||
| 116 | rm -f ${D}${PTEST_PATH}/extras/checkpatch.pl | ||
| 117 | |||
| 118 | # Remove built libraries as they confuse the packages' runtime dependency resolution | ||
| 119 | rm -rf ${D}${PTEST_PATH}/src/lib/lttng-ctl/.libs/ | ||
| 120 | } | ||
