From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7D1EA1581FD for ; Wed, 10 Sep 2025 22:48:12 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 647F0341349 for ; Wed, 10 Sep 2025 22:48:12 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id F135A110573; Wed, 10 Sep 2025 22:48:03 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id E8A5F110573 for ; Wed, 10 Sep 2025 22:48:03 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9E4B734107F for ; Wed, 10 Sep 2025 22:48:03 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D8F7D3973 for ; Wed, 10 Sep 2025 22:48:01 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1757544423.8c65a4bc5cd4ce3372f23bd94859f243ef966c61.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/lttng-tools/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/lttng-tools/Manifest dev-util/lttng-tools/lttng-tools-2.14.0.ebuild dev-util/lttng-tools/metadata.xml X-VCS-Directories: dev-util/lttng-tools/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 8c65a4bc5cd4ce3372f23bd94859f243ef966c61 X-VCS-Branch: master Date: Wed, 10 Sep 2025 22:48:01 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: de865bf1-92b4-4fa1-92c4-f0670d60eb58 X-Archives-Hash: 90ece5916a19edda45895b10dabf34d8 commit: 8c65a4bc5cd4ce3372f23bd94859f243ef966c61 Author: Alfred Wingate protonmail com> AuthorDate: Wed Jul 16 05:10:07 2025 +0000 Commit: Sam James gentoo org> CommitDate: Wed Sep 10 22:47:03 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c65a4bc dev-util/lttng-tools: add 2.14.0 * Add verify-sig support. * Handle kmod automagic. * Unrestrict tests with added timeouts for cases where tests might hang. Bug: https://bugs.gentoo.org/955783 Signed-off-by: Alfred Wingate protonmail.com> Part-of: https://github.com/gentoo/gentoo/pull/43735 Signed-off-by: Sam James gentoo.org> dev-util/lttng-tools/Manifest | 2 + dev-util/lttng-tools/lttng-tools-2.14.0.ebuild | 129 +++++++++++++++++++++++++ dev-util/lttng-tools/metadata.xml | 1 + 3 files changed, 132 insertions(+) diff --git a/dev-util/lttng-tools/Manifest b/dev-util/lttng-tools/Manifest index d3ec78714c33..ecf56acb300c 100644 --- a/dev-util/lttng-tools/Manifest +++ b/dev-util/lttng-tools/Manifest @@ -1,2 +1,4 @@ DIST lttng-tools-2.13.14.tar.bz2 1932238 BLAKE2B f079051502d01ffc67c4f8f0bbcdf3a4428546c652dcc352918c4908a37aeb510dd66309306cec835297c8d2f276e5cbd22ea4efef6866d3c0c0cf8651d68ef8 SHA512 61bdebb539cfb4eb61c9806e98742f39dc032d849b03d90cdb98d1891bd5bfbd0cb1f54bbc7bf79a11505ce7fee558497312d650bb41f11f739884e7cb8a750f DIST lttng-tools-2.13.15.tar.bz2 1934955 BLAKE2B 3942ef4a48995329300ddf926a590b5eafbd75847f100e739b4a54be0ddeae41f7acfff0e24243fc41c876dc57be6a13157958ba1fa65111e272d4a7d50280ee SHA512 0aaef9e298e5ec6f4c60d337277ca83aa86af17a1ebdeb976f000a68a8a99a1e4e0d1b88dae3c09171ca903d1ae1118819d4e3981fc4f9aade23b8370db2c367 +DIST lttng-tools-2.14.0.tar.bz2 3256087 BLAKE2B 954ec9563995e21ae05060136b0cb722e53b7c90aace1d45940577ee8dc69055817b5ce560e59c52ecd89cb6a92cdae6429472bfd1a8d167d462def43d8aa7ca SHA512 4027f8c4685976c6b04de1825e1b57dba720e10a055a62ff0b7384387167dce242915cc877022273fe76a9e0c4e907a1779c71354167ca26cf6a0ba332bf7598 +DIST lttng-tools-2.14.0.tar.bz2.asc 833 BLAKE2B 79527dc48e5fdd9b06030507d14ed42a427b98e93796acb3a71d5af6f17a6d2f5a335c4d0e694cb9dd8e774960af12009c138415b4ba72934fea934b5bbce867 SHA512 5104cc0baf02bee630a119ba0b45bd445209706b306ec28d11b7dcad50b6f972ec26537755fb55b603f21e90a03e478e79893d0b80a921bb47045f41613edffd diff --git a/dev-util/lttng-tools/lttng-tools-2.14.0.ebuild b/dev-util/lttng-tools/lttng-tools-2.14.0.ebuild new file mode 100644 index 000000000000..09c2608768de --- /dev/null +++ b/dev-util/lttng-tools/lttng-tools-2.14.0.ebuild @@ -0,0 +1,129 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{11..13} ) +inherit autotools flag-o-matic python-any-r1 verify-sig + +# Please bump the following packages together: +# dev-util/lttng-modules +# dev-util/lttng-tools +# dev-util/lttng-ust + +MY_P="${P/_rc/-rc}" +MY_SLOT="$(ver_cut 1-2)" + +DESCRIPTION="Linux Trace Toolkit - next generation" +HOMEPAGE="https://lttng.org" +SRC_URI=" + https://lttng.org/files/${PN}/${MY_P}.tar.bz2 + verify-sig? ( https://lttng.org/files/${PN}/${MY_P}.tar.bz2.asc ) +" +S="${WORKDIR}/${MY_P}" + +LICENSE="GPL-2" +SLOT="0/${MY_SLOT}" +KEYWORDS="~amd64 ~x86" +IUSE="kmod test +ust" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-libs/userspace-rcu-0.11.0:= + dev-libs/popt + >=dev-libs/libxml2-2.7.6:= + kmod? ( sys-apps/kmod ) + ust? ( >=dev-util/lttng-ust-${MY_SLOT}.0:= ) +" +DEPEND=" + ${RDEPEND} + test? ( + >=dev-libs/libpfm-4.0 + dev-util/babeltrace:2 + ) +" +BDEPEND=" + virtual/pkgconfig + test? ( + ${PYTHON_DEPS} + $(python_gen_any_dep ' + dev-util/babeltrace:2[python,${PYTHON_SINGLE_USEDEP}] + ') + ) + verify-sig? ( sec-keys/openpgp-keys-jeremiegalarneau ) +" + +VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/jeremiegalarneau.asc + +QA_CONFIG_IMPL_DECL_SKIP=( + pthread_get_name_np # different from pthread_getname_*, not on linux + pthread_set_name_np # different from pthread_setname_*, not on linux +) + +python_check_deps() { + python_has_version -d "dev-util/babeltrace:2[python,${PYTHON_SINGLE_USEDEP}]" +} + +pkg_setup() { + use test && python-any-r1_pkg_setup +} + +src_prepare() { + default + + # skip tests that appear to fail due to the sandbox + sed -e '/tools\/save-load\/test_autoload/d' \ + -e '/ust\/ust-app-ctl-paths\/test_blocking/d' \ + -e '/ust\/ust-app-ctl-paths\/test_path_separators/d' \ + -e '/ust\/ust-app-ctl-paths\/test_ust_app_ctl_paths/d' \ + -e '/tools\/metadata\/test_ust/d' \ + -i tests/regression/Makefile.am || die + + # skip tests which fail outside the ebuild as well + sed -e '/tools\/notification\/test_notification_ust_buffer_usage/d' \ + -e '/tools\/notification\/test_notification_notifier_discarded_count/d' \ + -e '/tools\/notification\/test_notification_multi_app/d' \ + -i tests/regression/Makefile.am || die + + eautoreconf +} + +src_configure() { + # bug 906928 + use elibc_musl && append-cppflags -D_LARGEFILE64_SOURCE + + local myeconfargs=( + $(use_with kmod) + $(use_with ust lttng-ust) + --disable-test-sdt-uprobe + --disable-python-bindings + --disable-Werror + $(use_enable test tests) + ) + + econf "${myeconfargs[@]}" +} + +src_test() { + # see tests/README.adoc + local -x LTTNG_ENABLE_DESTRUCTIVE_TESTS=0 + local -x LTTNG_TOOLS_DISABLE_KERNEL_TESTS=1 + + # Useful for cases like bug #762475 + local -x LTTNG_TEST_SERIAL_TEST_TIMEOUT_MINUTES=30 + + # Otherwise it will try to use the system installed binary (and fail if its not installed prior!) + local -x LTTNG_SESSIOND_PATH="${S}/src/bin/lttng-sessiond/lttng-sessiond" + + # Otherwise it tries to use /var/lib/portage/home + local -x LTTNG_HOME="${HOME}/lttng" + mkdir -p "${LTTNG_HOME}" || die + + # Tests misbehave if you are unlucky + emake check -j1 +} + +src_install() { + default + find "${ED}" -type f -name '*.la' -delete || die +} diff --git a/dev-util/lttng-tools/metadata.xml b/dev-util/lttng-tools/metadata.xml index 83683ac4848f..62518398e5b7 100644 --- a/dev-util/lttng-tools/metadata.xml +++ b/dev-util/lttng-tools/metadata.xml @@ -6,6 +6,7 @@ LTTng, the Linux Trace Toolkit Next Generation, is a project that aims at producing a highly efficient full system tracing solution + Enable kernel module loading via sys-apps/kmod Support LTTng-UST (Userspace Tracing)