Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 1 | SUMMARY = "Linux Trace Toolkit Userspace Tracer 2.x" |
| 2 | DESCRIPTION = "The LTTng UST 2.x package contains the userspace tracer library to trace userspace codes." |
| 3 | HOMEPAGE = "http://lttng.org/ust" |
| 4 | BUGTRACKER = "https://bugs.lttng.org/projects/lttng-ust" |
| 5 | |
| 6 | LICENSE = "LGPLv2.1+ & MIT & GPLv2" |
Andrew Geissler | 5199d83 | 2021-09-24 16:47:35 -0500 | [diff] [blame] | 7 | LIC_FILES_CHKSUM = "file://LICENSE;md5=a46577a38ad0c36ff6ff43ccf40c480f" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 8 | |
| 9 | PYTHON_OPTION = "am_cv_python_pyexecdir='${PYTHON_SITEPACKAGES_DIR}' \ |
| 10 | am_cv_python_pythondir='${PYTHON_SITEPACKAGES_DIR}' \ |
| 11 | PYTHON_INCLUDE='-I${STAGING_INCDIR}/python${PYTHON_BASEVERSION}${PYTHON_ABI}' \ |
| 12 | " |
| 13 | |
Andrew Geissler | 5199d83 | 2021-09-24 16:47:35 -0500 | [diff] [blame] | 14 | inherit autotools lib_package manpages python3native pkgconfig |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 15 | |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 16 | include lttng-platforms.inc |
| 17 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 18 | EXTRA_OECONF = "--disable-numa" |
| 19 | |
| 20 | DEPENDS = "liburcu util-linux" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 21 | RDEPENDS:${PN}-bin = "python3-core" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 22 | |
| 23 | # For backwards compatibility after rename |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 24 | RPROVIDES:${PN} = "lttng2-ust" |
| 25 | RREPLACES:${PN} = "lttng2-ust" |
| 26 | RCONFLICTS:${PN} = "lttng2-ust" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 27 | |
| 28 | PE = "2" |
| 29 | |
| 30 | SRC_URI = "https://lttng.org/files/lttng-ust/lttng-ust-${PV}.tar.bz2 \ |
| 31 | file://0001-python-lttngust-Makefile.am-Add-install-lib-to-setup.patch \ |
Andrew Geissler | 5199d83 | 2021-09-24 16:47:35 -0500 | [diff] [blame] | 32 | file://0001-lttng-ust-common-link-with-liburcu-explicitly.patch \ |
| 33 | file://0001-Makefile.am-update-rpath-link.patch \ |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 34 | " |
| 35 | |
Andrew Geissler | 5199d83 | 2021-09-24 16:47:35 -0500 | [diff] [blame] | 36 | SRC_URI[sha256sum] = "54e4c933679cf6a07971dc5861ce57fc4876ab740ab612407b30b5fc85371750" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 37 | |
| 38 | CVE_PRODUCT = "ust" |
| 39 | |
| 40 | PACKAGECONFIG[examples] = "--enable-examples, --disable-examples," |
| 41 | PACKAGECONFIG[manpages] = "--enable-man-pages, --disable-man-pages, asciidoc-native xmlto-native libxslt-native" |
| 42 | PACKAGECONFIG[python3-agent] = "--enable-python-agent ${PYTHON_OPTION}, --disable-python-agent, python3, python3" |
| 43 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 44 | FILES:${PN} += " ${PYTHON_SITEPACKAGES_DIR}/*" |
| 45 | FILES:${PN}-staticdev += " ${PYTHON_SITEPACKAGES_DIR}/*.a" |
| 46 | FILES:${PN}-dev += " ${PYTHON_SITEPACKAGES_DIR}/*.la" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 47 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 48 | do_install:append() { |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 49 | # Patch python tools to use Python 3; they should be source compatible, but |
| 50 | # still refer to Python 2 in the shebang |
| 51 | sed -i -e '1s,#!.*python.*,#!${bindir}/python3,' ${D}${bindir}/lttng-gen-tp |
| 52 | } |