cottsay pushed to lttng-tools (epel9). "Add python subpackage"
by notificationsï¼ fedoraproject.org
Notification time stamped 2022-06-29 22:38:49 UTC
From 53ca627a9cf7ff2bf62b252d07d48618f75adc65 Mon Sep 17 00:00:00 2001
From: Scott K Logan <logans(a)cottsay.net>
Date: Oct 21 2019 21:07:43 +0000
Subject: Add python subpackage
---
diff --git a/lttng-tools.spec b/lttng-tools.spec
index 08d55a9..b2bfd07 100644
--- a/lttng-tools.spec
+++ b/lttng-tools.spec
@@ -1,6 +1,6 @@
Name: lttng-tools
Version: 2.10.7
-Release: 2%{?dist}
+Release: 3%{?dist}
License: GPLv2 and LGPLv2
URL: http://lttng.org
Summary: LTTng control and utility programs
@@ -37,6 +37,15 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
This package provides the development files to
implement trace control in external applications
+%package -n python%{python3_pkgversion}-lttng
+Summary: Python bindings for LTTng
+%{?python_provide:%python_provide python%{python3_pkgversion}-lttng}
+BuildRequires: swig
+BuildRequires: python%{python3_pkgversion}-devel
+
+%description -n python%{python3_pkgversion}-lttng
+This package provides Python bindings for LTTng
+
%prep
%autosetup -p1
@@ -45,7 +54,7 @@ implement trace control in external applications
autoreconf -vif
touch doc/man/*.1 doc/man/*.3 doc/man/*.8
-%configure --disable-static
+%configure --disable-static --enable-python-bindings
make %{?_smp_mflags} V=1
@@ -59,6 +68,9 @@ install -D -m644 %{SOURCE1} %{buildroot}%{_unitdir}/lttng-sessiond.service
# Install upstream bash auto completion for lttng
install -D -m644 extras/lttng-bash_completion %{buildroot}%{_sysconfdir}/bash_completion.d/lttng
+# Fix the Python module install location
+mv %{buildroot}%{python3_sitelib}/* %{buildroot}%{python3_sitearch}
+
%pre
getent group tracing >/dev/null || groupadd -r tracing
exit 0
@@ -122,14 +134,23 @@ exit 0
%files -n %{name}-devel
%{_mandir}/man3/lttng-health-check.3.gz
-%{_defaultdocdir}/%{name}/python-howto.txt
%{_defaultdocdir}/%{name}/live-reading-protocol.txt
%{_defaultdocdir}/%{name}/valgrind-howto.txt
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/lttng-ctl.pc
+%files -n python%{python3_pkgversion}-lttng
+%{_defaultdocdir}/%{name}/python-howto.txt
+%{python3_sitearch}/lttng.py
+%{python3_sitearch}/_lttng.la
+%{python3_sitearch}/_lttng.so*
+%{python3_sitearch}/__pycache__/lttng.cpython-%{python3_version_nodots}*.pyc
+
%changelog
+* Mon Oct 21 2019 Scott K Logan <logans(a)cottsay.net> - 2.10.7-3
+- Add python subpackage
+
* Thu Jul 25 2019 Fedora Release Engineering <releng(a)fedoraproject.org> - 2.10.7-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
https://src.fedoraproject.org/rpms/lttng-tools/c/53ca627a9cf7ff2bf62b252d...
1Â year, 10Â months
cottsay pushed to lttng-tools (epel9). "New upstream release 2.10.7"
by notificationsï¼ fedoraproject.org
Notification time stamped 2022-06-29 22:38:49 UTC
From 371a7a4dc3fdffeee4e787e76c530b9174518db7 Mon Sep 17 00:00:00 2001
From: Michael Jeanson <mjeanson(a)efficios.com>
Date: Jun 03 2019 19:02:57 +0000
Subject: New upstream release 2.10.7
---
diff --git a/.gitignore b/.gitignore
index 69a37ec..8c4f75c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -21,3 +21,4 @@
/lttng-tools-2.10.3.tar.bz2
/lttng-tools-2.10.4.tar.bz2
/lttng-tools-2.10.5.tar.bz2
+/lttng-tools-2.10.7.tar.bz2
diff --git a/0001-Fix-namespace-our-gettid-wrapper.patch b/0001-Fix-namespace-our-gettid-wrapper.patch
new file mode 100644
index 0000000..80c5ea4
--- /dev/null
+++ b/0001-Fix-namespace-our-gettid-wrapper.patch
@@ -0,0 +1,71 @@
+From 28bdc78d537266bf33e3f3b56c1b50dce5a22c6b Mon Sep 17 00:00:00 2001
+From: Michael Jeanson <mjeanson(a)efficios.com>
+Date: Mon, 3 Jun 2019 14:59:08 -0400
+Subject: [PATCH] Fix: namespace our gettid wrapper
+
+Since glibc 2.30, a gettid wrapper was added that conflicts with our
+static declaration. Namespace our wrapper so there is no conflict,
+we'll add support for the glibc provided wrapper in a further commit.
+
+Signed-off-by: Michael Jeanson <mjeanson(a)efficios.com>
+---
+ src/common/compat/tid.h | 12 +++++++-----
+ src/common/error.h | 4 ++--
+ 2 files changed, 9 insertions(+), 7 deletions(-)
+
+diff --git a/src/common/compat/tid.h b/src/common/compat/tid.h
+index 40f562f9..15f9fdc7 100644
+--- a/src/common/compat/tid.h
++++ b/src/common/compat/tid.h
+@@ -29,23 +29,25 @@
+ #include <syscall.h>
+ #endif
+
+-#if defined(_syscall0)
+-_syscall0(pid_t, gettid)
+-#elif defined(__NR_gettid)
++#if defined(__NR_gettid)
++
+ #include <unistd.h>
+-static inline pid_t gettid(void)
++static inline pid_t lttng_gettid(void)
+ {
+ return syscall(__NR_gettid);
+ }
++
+ #else
++
+ #include <sys/types.h>
+ #include <unistd.h>
+
+ /* Fall-back on getpid for tid if not available. */
+-static inline pid_t gettid(void)
++static inline pid_t lttng_gettid(void)
+ {
+ return getpid();
+ }
++
+ #endif
+
+ #endif /* LTTNG_TID_H */
+diff --git a/src/common/error.h b/src/common/error.h
+index c90c4ae0..3fe742c0 100644
+--- a/src/common/error.h
++++ b/src/common/error.h
+@@ -151,11 +151,11 @@ static inline void __lttng_print_check_abort(enum lttng_error_level type)
+ /* Three level of debug. Use -v, -vv or -vvv for the levels */
+ #define _ERRMSG(msg, type, fmt, args...) __lttng_print(type, msg \
+ " - %s [%ld/%ld]: " fmt " (in %s() at " __FILE__ ":" XSTR(__LINE__) ")\n", \
+- log_add_time(), (long) getpid(), (long) gettid(), ## args, __func__)
++ log_add_time(), (long) getpid(), (long) lttng_gettid(), ## args, __func__)
+
+ #define _ERRMSG_NO_LOC(msg, type, fmt, args...) __lttng_print(type, msg \
+ " - %s [%ld/%ld]: " fmt "\n", \
+- log_add_time(), (long) getpid(), (long) gettid(), ## args)
++ log_add_time(), (long) getpid(), (long) lttng_gettid(), ## args)
+
+ #define MSG(fmt, args...) \
+ __lttng_print(PRINT_MSG, fmt "\n", ## args)
+--
+2.22.0.rc2
+
diff --git a/lttng-tools.spec b/lttng-tools.spec
index 9421dbf..8a6bcb4 100644
--- a/lttng-tools.spec
+++ b/lttng-tools.spec
@@ -1,11 +1,12 @@
Name: lttng-tools
-Version: 2.10.5
-Release: 2%{?dist}
+Version: 2.10.7
+Release: 1%{?dist}
License: GPLv2 and LGPLv2
URL: http://lttng.org
Summary: LTTng control and utility programs
Source0: http://lttng.org/files/lttng-tools/%{name}-%{version}.tar.bz2
Source1: lttng-sessiond.service
+Patch0: 0001-Fix-namespace-our-gettid-wrapper.patch
BuildRequires: libuuid-devel popt-devel libtool systemd-units
BuildRequires: lttng-ust-devel >= 2.10.0
@@ -37,7 +38,7 @@ This package provides the development files to
implement trace control in external applications
%prep
-%setup -q
+%autosetup -p1
%build
# Reinitialize libtool with the fedora version to remove Rpath
@@ -129,6 +130,9 @@ exit 0
%{_libdir}/pkgconfig/lttng-ctl.pc
%changelog
+* Mon Jun 03 2019 Michael Jeanson <mjeanson(a)efficios.com> - 2.10.7-1
+- New upstream release
+
* Fri Feb 01 2019 Fedora Release Engineering <releng(a)fedoraproject.org> - 2.10.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
diff --git a/sources b/sources
index 6a0bc82..0186bf4 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (lttng-tools-2.10.5.tar.bz2) = 30689be92331fb3421ecb67150dab29c182c2febd5db77113dc0439c2289cdadb645043bbbbb4a95c6da40dbf8bbc258dd775e22b908e9514fbeffc450312a5b
+SHA512 (lttng-tools-2.10.7.tar.bz2) = 1151f8f251d05959e7ec597dfcece2a968887c4551cfb238d30447b0d93b25d23a1cfbc4f3a6651a8c2c7dd95119a0d8886bbe43ff50b28c6c9ca9f4f109d3b7
https://src.fedoraproject.org/rpms/lttng-tools/c/371a7a4dc3fdffeee4e787e7...
1Â year, 10Â months
cottsay pushed to lttng-tools (epel9). "New upstream release 2.10.5"
by notificationsï¼ fedoraproject.org
Notification time stamped 2022-06-29 22:38:49 UTC
From 72b2b62a25722ee55e7c78f8b5a5c31a2edd4e8b Mon Sep 17 00:00:00 2001
From: Michael Jeanson <mjeanson(a)efficios.com>
Date: Jul 24 2018 19:39:50 +0000
Subject: New upstream release 2.10.5
---
diff --git a/.gitignore b/.gitignore
index a32e52f..69a37ec 100644
--- a/.gitignore
+++ b/.gitignore
@@ -20,3 +20,4 @@
/lttng-tools-2.10.2.tar.bz2
/lttng-tools-2.10.3.tar.bz2
/lttng-tools-2.10.4.tar.bz2
+/lttng-tools-2.10.5.tar.bz2
diff --git a/lttng-tools.spec b/lttng-tools.spec
index 4f88b98..121031f 100644
--- a/lttng-tools.spec
+++ b/lttng-tools.spec
@@ -1,6 +1,6 @@
Name: lttng-tools
-Version: 2.10.4
-Release: 2%{?dist}
+Version: 2.10.5
+Release: 1%{?dist}
License: GPLv2 and LGPLv2
URL: http://lttng.org
Group: Development/Tools
@@ -131,6 +131,9 @@ exit 0
%{_libdir}/pkgconfig/lttng-ctl.pc
%changelog
+* Tue Jul 24 2018 Michael Jeanson <mjeanson(a)efficios.com> - 2.10.5-1
+- New upstream release
+
* Fri Jul 13 2018 Fedora Release Engineering <releng(a)fedoraproject.org> - 2.10.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
diff --git a/sources b/sources
index c35c060..6a0bc82 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (lttng-tools-2.10.4.tar.bz2) = 7de3d9623db6e9dc734360ca7cabd6e7419ad55d43cf24333f59a7bc9cb5b85ba0a9d07baea2900e3f56816b553baf0f3546d77512e853049abacca521c53ccd
+SHA512 (lttng-tools-2.10.5.tar.bz2) = 30689be92331fb3421ecb67150dab29c182c2febd5db77113dc0439c2289cdadb645043bbbbb4a95c6da40dbf8bbc258dd775e22b908e9514fbeffc450312a5b
https://src.fedoraproject.org/rpms/lttng-tools/c/72b2b62a25722ee55e7c78f8...
1Â year, 10Â months
cottsay pushed to lttng-tools (epel9). "New upstream release 2.10.3"
by notificationsï¼ fedoraproject.org
Notification time stamped 2022-06-29 22:38:49 UTC
From e9277607effee3bb43c7d435fabb88a60d0e8c37 Mon Sep 17 00:00:00 2001
From: Michael Jeanson <mjeanson(a)efficios.com>
Date: Mar 27 2018 19:30:38 +0000
Subject: New upstream release 2.10.3
---
diff --git a/.gitignore b/.gitignore
index 8e34ba6..b616164 100644
--- a/.gitignore
+++ b/.gitignore
@@ -18,3 +18,4 @@
/lttng-tools-2.10.0.tar.bz2
/lttng-tools-2.10.1.tar.bz2
/lttng-tools-2.10.2.tar.bz2
+/lttng-tools-2.10.3.tar.bz2
diff --git a/lttng-tools.spec b/lttng-tools.spec
index beb36ff..a2745ab 100644
--- a/lttng-tools.spec
+++ b/lttng-tools.spec
@@ -1,5 +1,5 @@
Name: lttng-tools
-Version: 2.10.2
+Version: 2.10.3
Release: 1%{?dist}
License: GPLv2 and LGPLv2
URL: http://lttng.org
@@ -131,6 +131,9 @@ exit 0
%{_libdir}/pkgconfig/lttng-ctl.pc
%changelog
+* Tue Mar 27 2018 Michael Jeanson <mjeanson(a)efficios.com> - 2.10.3-1
+- New upstream release
+
* Tue Feb 13 2018 Michael Jeanson <mjeanson(a)efficios.com> - 2.10.2-1
- New upstream release
diff --git a/sources b/sources
index 6d89609..ed23bde 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (lttng-tools-2.10.2.tar.bz2) = 6151ed2348e42b46039383f2e28efd06d83165bda85feb22798bc1690dfb3d850fb23dcacb392c4f08539a5d0bb313b2f0b28db6cfe546069697d45c7974a4f0
+SHA512 (lttng-tools-2.10.3.tar.bz2) = 7178de8b859050128c021b2d563ced22c7b82d8ebcf183efcadc3d162fd677a4d533308fcb23782207fac754233fce78ed44359b5769477471698a383e735b6b
https://src.fedoraproject.org/rpms/lttng-tools/c/e9277607effee3bb43c7d435...
1Â year, 10Â months
cottsay pushed to lttng-tools (epel9). "New upstream release 2.10.4"
by notificationsï¼ fedoraproject.org
Notification time stamped 2022-06-29 22:38:49 UTC
From d2ae54cc82ca7f89def97d32c0426e83cb3801c1 Mon Sep 17 00:00:00 2001
From: Michael Jeanson <mjeanson(a)efficios.com>
Date: May 29 2018 18:07:47 +0000
Subject: New upstream release 2.10.4
---
diff --git a/.gitignore b/.gitignore
index b616164..a32e52f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -19,3 +19,4 @@
/lttng-tools-2.10.1.tar.bz2
/lttng-tools-2.10.2.tar.bz2
/lttng-tools-2.10.3.tar.bz2
+/lttng-tools-2.10.4.tar.bz2
diff --git a/lttng-tools.spec b/lttng-tools.spec
index a2745ab..ace267e 100644
--- a/lttng-tools.spec
+++ b/lttng-tools.spec
@@ -1,5 +1,5 @@
Name: lttng-tools
-Version: 2.10.3
+Version: 2.10.4
Release: 1%{?dist}
License: GPLv2 and LGPLv2
URL: http://lttng.org
@@ -131,6 +131,9 @@ exit 0
%{_libdir}/pkgconfig/lttng-ctl.pc
%changelog
+* Tue May 29 2018 Michael Jeanson <mjeanson(a)efficios.com> - 2.10.4-1
+- New upstream release
+
* Tue Mar 27 2018 Michael Jeanson <mjeanson(a)efficios.com> - 2.10.3-1
- New upstream release
diff --git a/sources b/sources
index ed23bde..c35c060 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (lttng-tools-2.10.3.tar.bz2) = 7178de8b859050128c021b2d563ced22c7b82d8ebcf183efcadc3d162fd677a4d533308fcb23782207fac754233fce78ed44359b5769477471698a383e735b6b
+SHA512 (lttng-tools-2.10.4.tar.bz2) = 7de3d9623db6e9dc734360ca7cabd6e7419ad55d43cf24333f59a7bc9cb5b85ba0a9d07baea2900e3f56816b553baf0f3546d77512e853049abacca521c53ccd
https://src.fedoraproject.org/rpms/lttng-tools/c/d2ae54cc82ca7f89def97d32...
1Â year, 10Â months
cottsay pushed to lttng-tools (epel9). "New upstream release 2.10.2"
by notificationsï¼ fedoraproject.org
Notification time stamped 2022-06-29 22:38:49 UTC
From 01a7c5216bad4d8bd8d79d19f4089fa2bb80ac47 Mon Sep 17 00:00:00 2001
From: Michael Jeanson <mjeanson(a)efficios.com>
Date: Feb 13 2018 18:50:13 +0000
Subject: New upstream release 2.10.2
---
diff --git a/.gitignore b/.gitignore
index f2710c7..8e34ba6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -17,3 +17,4 @@
/lttng-tools-2.9.5.tar.bz2
/lttng-tools-2.10.0.tar.bz2
/lttng-tools-2.10.1.tar.bz2
+/lttng-tools-2.10.2.tar.bz2
diff --git a/lttng-tools.spec b/lttng-tools.spec
index 5b95ebe..beb36ff 100644
--- a/lttng-tools.spec
+++ b/lttng-tools.spec
@@ -1,6 +1,6 @@
Name: lttng-tools
-Version: 2.10.1
-Release: 2%{?dist}
+Version: 2.10.2
+Release: 1%{?dist}
License: GPLv2 and LGPLv2
URL: http://lttng.org
Group: Development/Tools
@@ -131,6 +131,9 @@ exit 0
%{_libdir}/pkgconfig/lttng-ctl.pc
%changelog
+* Tue Feb 13 2018 Michael Jeanson <mjeanson(a)efficios.com> - 2.10.2-1
+- New upstream release
+
* Thu Feb 08 2018 Fedora Release Engineering <releng(a)fedoraproject.org> - 2.10.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
diff --git a/sources b/sources
index 86b4b46..6d89609 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (lttng-tools-2.10.1.tar.bz2) = e225798a909c0b3d481db87b700671756689017bab68563f242b03e684814fa30e62f9641ab82d18cbd58bcc4785275421eb91d0043222e17ad70f156931bbb8
+SHA512 (lttng-tools-2.10.2.tar.bz2) = 6151ed2348e42b46039383f2e28efd06d83165bda85feb22798bc1690dfb3d850fb23dcacb392c4f08539a5d0bb313b2f0b28db6cfe546069697d45c7974a4f0
https://src.fedoraproject.org/rpms/lttng-tools/c/01a7c5216bad4d8bd8d79d19...
1Â year, 10Â months