From e9cf48e828e732c0be47373a2e6d104350058863 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 06:31:13 +0100 Subject: [PATCH] enable python agent and sdt [release 2.13.1-2mamba;Wed Jan 12 2022] --- lttng-ust-2.13.1-python3.patch | 9 +++++++ lttng-ust.spec | 48 ++++++++++++++++++++++++++++------ 2 files changed, 49 insertions(+), 8 deletions(-) create mode 100644 lttng-ust-2.13.1-python3.patch diff --git a/lttng-ust-2.13.1-python3.patch b/lttng-ust-2.13.1-python3.patch new file mode 100644 index 0000000..e49faa2 --- /dev/null +++ b/lttng-ust-2.13.1-python3.patch @@ -0,0 +1,9 @@ +diff -Naur lttng-ust-2.13.0.orig/tools/lttng-gen-tp lttng-ust-2.13.0/tools/lttng-gen-tp +--- lttng-ust-2.13.0.orig/tools/lttng-gen-tp 2021-07-16 10:26:39.000000000 -0400 ++++ lttng-ust-2.13.0/tools/lttng-gen-tp 2021-08-19 14:23:40.013453258 -0400 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + # + # SPDX-License-Identifier: GPL-2.0-only + # diff --git a/lttng-ust.spec b/lttng-ust.spec index 4781578..d0dd2ce 100644 --- a/lttng-ust.spec +++ b/lttng-ust.spec @@ -1,6 +1,6 @@ Name: lttng-ust -Version: 2.13.0 -Release: 1mamba +Version: 2.13.1 +Release: 2mamba Summary: Library allows any C/C++ application to be instrumented for and traced by LTTng Group: System/Libraries Vendor: openmamba @@ -8,13 +8,9 @@ Distribution: openmamba Packager: Silvan Calarco URL: https://lttng.org Source: http://lttng.org/files/lttng-ust/lttng-ust-%{version}.tar.bz2 +Patch0: lttng-ust-2.13.1-python3.patch License: LGPL, MIT ## AUTOBUILDREQ-BEGIN -#ld-linux-x86-64.so.2()(64bit): .so link not found -#ld-linux-x86-64.so.2(GLIBC_2.3)(64bit): .so link not found -#libdl.so.2()(64bit): /usr/lib64/libdl.so: file not owned by any package -#libpthread.so.0()(64bit): /usr/lib64/libpthread.so: file not owned by any package -#librt.so.1()(64bit): /usr/lib64/librt.so: file not owned by any package BuildRequires: glibc-devel BuildRequires: libnuma-devel ## AUTOBUILDREQ-END @@ -39,14 +35,38 @@ Requires: pkg-config %description -n lib%{name}-devel This package contains libraries and header files for developing applications that use %{name}. +%package -n python-lttngust +Group: System/Libraries/Python +Summary: Python bindings for %{name} +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description -n python-lttngust +This package contains libraries and header files for developing applications that use %{name}. %debug_package %prep %setup -q +%patch0 -p1 + +autoreconf -f -i %build -%configure +%ifarch arm aarch64 +export CPPFLAGS="-DUATOMIC_NO_LINK_ERROR" +%endif + +%configure \ + --disable-static \ + --enable-python-agent \ + --with-sdt \ + PYTHON=%{__python3} \ +%ifarch arm aarch64 + --disable-numa +%else + --enable-numa +%endif + %make %install @@ -88,7 +108,19 @@ This package contains libraries and header files for developing applications tha %{_mandir}/man3/tracepoint_enabled.3* %doc ChangeLog README.md +%files -n python-lttngust +%defattr(-,root,root) +%{python3_sitelib}/lttngust-%{version}-py*.egg-info +%dir %{python3_sitelib}/lttngust +%{python3_sitelib}/lttngust/* + %changelog +* Wed Jan 12 2022 Silvan Calarco 2.13.1-2mamba +- enable python agent and sdt + +* Sat Dec 11 2021 Automatic Build System 2.13.1-1mamba +- automatic version update by autodist + * Sun Aug 15 2021 Automatic Build System 2.13.0-1mamba - automatic version update by autodist