blob: 4ec92c0683ba8439c029c897bdaf9a8cd8afe6b9 [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001SUMMARY = "Linux Trace Toolkit Userspace Tracer 2.x"
2DESCRIPTION = "The LTTng UST 2.x package contains the userspace tracer library to trace userspace codes."
3HOMEPAGE = "http://lttng.org/ust"
4BUGTRACKER = "https://bugs.lttng.org/projects/lttng-ust"
5
6LICENSE = "LGPLv2.1+ & MIT & GPLv2"
Andrew Geissler5199d832021-09-24 16:47:35 -05007LIC_FILES_CHKSUM = "file://LICENSE;md5=a46577a38ad0c36ff6ff43ccf40c480f"
Andrew Geissler82c905d2020-04-13 13:39:40 -05008
9PYTHON_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 Geissler5199d832021-09-24 16:47:35 -050014inherit autotools lib_package manpages python3native pkgconfig
Andrew Geissler82c905d2020-04-13 13:39:40 -050015
Andrew Geisslerc9f78652020-09-18 14:11:35 -050016include lttng-platforms.inc
17
Andrew Geissler82c905d2020-04-13 13:39:40 -050018EXTRA_OECONF = "--disable-numa"
19
20DEPENDS = "liburcu util-linux"
Patrick Williams213cb262021-08-07 19:21:33 -050021RDEPENDS:${PN}-bin = "python3-core"
Andrew Geissler82c905d2020-04-13 13:39:40 -050022
23# For backwards compatibility after rename
Patrick Williams213cb262021-08-07 19:21:33 -050024RPROVIDES:${PN} = "lttng2-ust"
25RREPLACES:${PN} = "lttng2-ust"
26RCONFLICTS:${PN} = "lttng2-ust"
Andrew Geissler82c905d2020-04-13 13:39:40 -050027
28PE = "2"
29
30SRC_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 Geissler5199d832021-09-24 16:47:35 -050032 file://0001-lttng-ust-common-link-with-liburcu-explicitly.patch \
33 file://0001-Makefile.am-update-rpath-link.patch \
Andrew Geissler82c905d2020-04-13 13:39:40 -050034 "
35
Andrew Geissler5199d832021-09-24 16:47:35 -050036SRC_URI[sha256sum] = "54e4c933679cf6a07971dc5861ce57fc4876ab740ab612407b30b5fc85371750"
Andrew Geissler82c905d2020-04-13 13:39:40 -050037
38CVE_PRODUCT = "ust"
39
40PACKAGECONFIG[examples] = "--enable-examples, --disable-examples,"
41PACKAGECONFIG[manpages] = "--enable-man-pages, --disable-man-pages, asciidoc-native xmlto-native libxslt-native"
42PACKAGECONFIG[python3-agent] = "--enable-python-agent ${PYTHON_OPTION}, --disable-python-agent, python3, python3"
43
Patrick Williams213cb262021-08-07 19:21:33 -050044FILES:${PN} += " ${PYTHON_SITEPACKAGES_DIR}/*"
45FILES:${PN}-staticdev += " ${PYTHON_SITEPACKAGES_DIR}/*.a"
46FILES:${PN}-dev += " ${PYTHON_SITEPACKAGES_DIR}/*.la"
Andrew Geissler82c905d2020-04-13 13:39:40 -050047
Patrick Williams213cb262021-08-07 19:21:33 -050048do_install:append() {
Andrew Geissler82c905d2020-04-13 13:39:40 -050049 # 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}