blob: 67b53cbbba77e7e370307336ee6c60123322cc75 [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"
7LIC_FILES_CHKSUM = "file://COPYING;md5=c963eb366b781252b0bf0fdf1624d9e9 \
8 file://snprintf/snprintf.c;endline=32;md5=d3d544959d8a3782b2e07451be0a903c \
9 file://snprintf/various.h;endline=31;md5=89f2509b6b4682c4fc95255eec4abe44"
10
11PYTHON_OPTION = "am_cv_python_pyexecdir='${PYTHON_SITEPACKAGES_DIR}' \
12 am_cv_python_pythondir='${PYTHON_SITEPACKAGES_DIR}' \
13 PYTHON_INCLUDE='-I${STAGING_INCDIR}/python${PYTHON_BASEVERSION}${PYTHON_ABI}' \
14"
15
16inherit autotools lib_package manpages python3native
17
Andrew Geisslerc9f78652020-09-18 14:11:35 -050018include lttng-platforms.inc
19
Andrew Geissler82c905d2020-04-13 13:39:40 -050020EXTRA_OECONF = "--disable-numa"
21
22DEPENDS = "liburcu util-linux"
23RDEPENDS_${PN}-bin = "python3-core"
24
25# For backwards compatibility after rename
26RPROVIDES_${PN} = "lttng2-ust"
27RREPLACES_${PN} = "lttng2-ust"
28RCONFLICTS_${PN} = "lttng2-ust"
29
30PE = "2"
31
32SRC_URI = "https://lttng.org/files/lttng-ust/lttng-ust-${PV}.tar.bz2 \
33 file://0001-python-lttngust-Makefile.am-Add-install-lib-to-setup.patch \
34 "
35
Andrew Geissler90fd73c2021-03-05 15:25:55 -060036SRC_URI[md5sum] = "11787d1df69b04dd7431614ab43b2e12"
37SRC_URI[sha256sum] = "48a3948b168195123a749d22818809bd25127bb5f1a66458c3c012b210d2a051"
Andrew Geissler82c905d2020-04-13 13:39:40 -050038
39CVE_PRODUCT = "ust"
40
41PACKAGECONFIG[examples] = "--enable-examples, --disable-examples,"
42PACKAGECONFIG[manpages] = "--enable-man-pages, --disable-man-pages, asciidoc-native xmlto-native libxslt-native"
43PACKAGECONFIG[python3-agent] = "--enable-python-agent ${PYTHON_OPTION}, --disable-python-agent, python3, python3"
44
45FILES_${PN} += " ${PYTHON_SITEPACKAGES_DIR}/*"
46FILES_${PN}-staticdev += " ${PYTHON_SITEPACKAGES_DIR}/*.a"
47FILES_${PN}-dev += " ${PYTHON_SITEPACKAGES_DIR}/*.la"
48
49do_install_append() {
50 # Patch python tools to use Python 3; they should be source compatible, but
51 # still refer to Python 2 in the shebang
52 sed -i -e '1s,#!.*python.*,#!${bindir}/python3,' ${D}${bindir}/lttng-gen-tp
53}