1*4882a593SmuzhiyunSUMMARY = "Linux Trace Toolkit Userspace Tracer 2.x" 2*4882a593SmuzhiyunDESCRIPTION = "The LTTng UST 2.x package contains the userspace tracer library to trace userspace codes." 3*4882a593SmuzhiyunHOMEPAGE = "http://lttng.org/ust" 4*4882a593SmuzhiyunBUGTRACKER = "https://bugs.lttng.org/projects/lttng-ust" 5*4882a593Smuzhiyun 6*4882a593SmuzhiyunLICENSE = "LGPL-2.1-or-later & MIT & GPL-2.0-only" 7*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://LICENSE;md5=a46577a38ad0c36ff6ff43ccf40c480f" 8*4882a593Smuzhiyun 9*4882a593SmuzhiyunPYTHON_OPTION = "am_cv_python_pyexecdir='${PYTHON_SITEPACKAGES_DIR}' \ 10*4882a593Smuzhiyun am_cv_python_pythondir='${PYTHON_SITEPACKAGES_DIR}' \ 11*4882a593Smuzhiyun PYTHON_INCLUDE='-I${STAGING_INCDIR}/python${PYTHON_BASEVERSION}${PYTHON_ABI}' \ 12*4882a593Smuzhiyun" 13*4882a593Smuzhiyun 14*4882a593Smuzhiyuninherit autotools lib_package manpages python3native pkgconfig 15*4882a593Smuzhiyun 16*4882a593Smuzhiyuninclude lttng-platforms.inc 17*4882a593Smuzhiyun 18*4882a593SmuzhiyunEXTRA_OECONF = "--disable-numa" 19*4882a593SmuzhiyunCPPFLAGS:append:arm = "${@oe.utils.vartrue('DEBUG_BUILD', '-DUATOMIC_NO_LINK_ERROR', '', d)}" 20*4882a593Smuzhiyun 21*4882a593SmuzhiyunDEPENDS = "liburcu util-linux" 22*4882a593SmuzhiyunRDEPENDS:${PN}-bin = "python3-core" 23*4882a593Smuzhiyun 24*4882a593Smuzhiyun# For backwards compatibility after rename 25*4882a593SmuzhiyunRPROVIDES:${PN} = "lttng2-ust" 26*4882a593SmuzhiyunRREPLACES:${PN} = "lttng2-ust" 27*4882a593SmuzhiyunRCONFLICTS:${PN} = "lttng2-ust" 28*4882a593Smuzhiyun 29*4882a593SmuzhiyunPE = "2" 30*4882a593Smuzhiyun 31*4882a593SmuzhiyunSRC_URI = "https://lttng.org/files/lttng-ust/lttng-ust-${PV}.tar.bz2 \ 32*4882a593Smuzhiyun file://0001-python-lttngust-Makefile.am-Add-install-lib-to-setup.patch \ 33*4882a593Smuzhiyun file://0001-lttng-ust-common-link-with-liburcu-explicitly.patch \ 34*4882a593Smuzhiyun file://0001-Makefile.am-update-rpath-link.patch \ 35*4882a593Smuzhiyun " 36*4882a593Smuzhiyun 37*4882a593SmuzhiyunSRC_URI[sha256sum] = "f1d7bb4984a3dc5dacd3b7bcb4c10c04b041b0eecd7cba1fef3d8f86aff02bd6" 38*4882a593Smuzhiyun 39*4882a593SmuzhiyunCVE_PRODUCT = "ust" 40*4882a593Smuzhiyun 41*4882a593SmuzhiyunPACKAGECONFIG[examples] = "--enable-examples, --disable-examples," 42*4882a593SmuzhiyunPACKAGECONFIG[manpages] = "--enable-man-pages, --disable-man-pages, asciidoc-native xmlto-native libxslt-native" 43*4882a593SmuzhiyunPACKAGECONFIG[python3-agent] = "--enable-python-agent ${PYTHON_OPTION}, --disable-python-agent, python3, python3" 44*4882a593Smuzhiyun 45*4882a593SmuzhiyunFILES:${PN} += " ${PYTHON_SITEPACKAGES_DIR}/*" 46*4882a593SmuzhiyunFILES:${PN}-staticdev += " ${PYTHON_SITEPACKAGES_DIR}/*.a" 47*4882a593SmuzhiyunFILES:${PN}-dev += " ${PYTHON_SITEPACKAGES_DIR}/*.la" 48*4882a593Smuzhiyun 49*4882a593Smuzhiyundo_install:append() { 50*4882a593Smuzhiyun # Patch python tools to use Python 3; they should be source compatible, but 51*4882a593Smuzhiyun # still refer to Python 2 in the shebang 52*4882a593Smuzhiyun sed -i -e '1s,#!.*python.*,#!${bindir}/python3,' ${D}${bindir}/lttng-gen-tp 53*4882a593Smuzhiyun} 54