From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id EC65615838C for ; Tue, 30 Jan 2024 15:26:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E14882BC06A; Tue, 30 Jan 2024 15:26:01 +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 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C010D2BC06A for ; Tue, 30 Jan 2024 15:26:01 +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 075CF343090 for ; Tue, 30 Jan 2024 15:26:01 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 66BCC14B6 for ; Tue, 30 Jan 2024 15:25:59 +0000 (UTC) From: "Guilherme Amadio" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Guilherme Amadio" Message-ID: <1706628334.70d3e0e2fd20857968ba3ea7ddbf9292144b22ed.amadio@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/perf/, dev-util/perf/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/perf/files/perf-6.7-expr.patch dev-util/perf/perf-6.7.ebuild X-VCS-Directories: dev-util/perf/ dev-util/perf/files/ X-VCS-Committer: amadio X-VCS-Committer-Name: Guilherme Amadio X-VCS-Revision: 70d3e0e2fd20857968ba3ea7ddbf9292144b22ed X-VCS-Branch: master Date: Tue, 30 Jan 2024 15:25:59 +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: e09e4bce-7e88-4351-81d9-44ce328f7a9f X-Archives-Hash: a945786763dbd5d0ffaaba0da89520e2 commit: 70d3e0e2fd20857968ba3ea7ddbf9292144b22ed Author: Guilherme Amadio gentoo org> AuthorDate: Tue Jan 30 15:04:56 2024 +0000 Commit: Guilherme Amadio gentoo org> CommitDate: Tue Jan 30 15:25:34 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=70d3e0e2 dev-util/perf: fix bugs #917559 and #921197 Closes: https://bugs.gentoo.org/917559 Closes: https://bugs.gentoo.org/921197 Co-authored-by: Peter Volkov gmail.com> Signed-off-by: Guilherme Amadio gentoo.org> dev-util/perf/files/perf-6.7-expr.patch | 24 ++++++++++++++++++++++++ dev-util/perf/perf-6.7.ebuild | 33 +++++++++++++++++---------------- 2 files changed, 41 insertions(+), 16 deletions(-) diff --git a/dev-util/perf/files/perf-6.7-expr.patch b/dev-util/perf/files/perf-6.7-expr.patch new file mode 100644 index 000000000000..84f90c9b9008 --- /dev/null +++ b/dev-util/perf/files/perf-6.7-expr.patch @@ -0,0 +1,24 @@ +Ensure versions of libtraceevent and libtracefs have 3 components. + +Fixes: https://bugs.gentoo.org/917559 + +--- a/tools/perf/Makefile.config ++++ b/tools/perf/Makefile.config +@@ -1163,7 +1163,7 @@ ifneq ($(NO_LIBTRACEEVENT),1) + ifeq ($(feature-libtraceevent), 1) + CFLAGS += -DHAVE_LIBTRACEEVENT + EXTLIBS += -ltraceevent +- LIBTRACEEVENT_VERSION := $(shell $(PKG_CONFIG) --modversion libtraceevent) ++ LIBTRACEEVENT_VERSION := $(shell $(PKG_CONFIG) --modversion libtraceevent).0 + LIBTRACEEVENT_VERSION_1 := $(word 1, $(subst ., ,$(LIBTRACEEVENT_VERSION))) + LIBTRACEEVENT_VERSION_2 := $(word 2, $(subst ., ,$(LIBTRACEEVENT_VERSION))) + LIBTRACEEVENT_VERSION_3 := $(word 3, $(subst ., ,$(LIBTRACEEVENT_VERSION))) +@@ -1177,7 +1177,7 @@ ifneq ($(NO_LIBTRACEEVENT),1) + $(call feature_check,libtracefs) + ifeq ($(feature-libtracefs), 1) + EXTLIBS += -ltracefs +- LIBTRACEFS_VERSION := $(shell $(PKG_CONFIG) --modversion libtracefs) ++ LIBTRACEFS_VERSION := $(shell $(PKG_CONFIG) --modversion libtracefs).0 + LIBTRACEFS_VERSION_1 := $(word 1, $(subst ., ,$(LIBTRACEFS_VERSION))) + LIBTRACEFS_VERSION_2 := $(word 2, $(subst ., ,$(LIBTRACEFS_VERSION))) + LIBTRACEFS_VERSION_3 := $(word 3, $(subst ., ,$(LIBTRACEFS_VERSION))) diff --git a/dev-util/perf/perf-6.7.ebuild b/dev-util/perf/perf-6.7.ebuild index 45ad2f3ededd..cc5b677f7e20 100644 --- a/dev-util/perf/perf-6.7.ebuild +++ b/dev-util/perf/perf-6.7.ebuild @@ -56,7 +56,7 @@ BDEPEND=" RDEPEND=" audit? ( sys-process/audit ) - babeltrace? ( dev-util/babeltrace ) + babeltrace? ( dev-util/babeltrace:0/1 ) bpf? ( dev-libs/libbpf dev-util/bpftool @@ -95,20 +95,6 @@ DEPEND="${RDEPEND} S_K="${WORKDIR}/linux-${LINUX_VER}" S="${S_K}/tools/perf" -CONFIG_CHECK=" - ~DEBUG_INFO - ~FTRACE - ~FTRACE_SYSCALLS - ~FUNCTION_TRACER - ~KALLSYMS - ~KALLSYMS_ALL - ~KPROBES - ~KPROBE_EVENTS - ~PERF_EVENTS - ~UPROBES - ~UPROBE_EVENTS -" - QA_FLAGS_IGNORED=( 'usr/bin/perf-read-vdso32' # not linked with anything except for libc 'usr/libexec/perf-core/dlfilters/.*' # plugins @@ -123,6 +109,20 @@ pkg_pretend() { } pkg_setup() { + local CONFIG_CHECK=" + ~DEBUG_INFO + ~FTRACE + ~FTRACE_SYSCALLS + ~FUNCTION_TRACER + ~KALLSYMS + ~KALLSYMS_ALL + ~KPROBES + ~KPROBE_EVENTS + ~PERF_EVENTS + ~UPROBES + ~UPROBE_EVENTS + " + use bpf && llvm_pkg_setup # We enable python unconditionally as libbpf always generates # API headers using python script @@ -140,7 +140,7 @@ pkg_setup() { src_unpack() { local paths=( kernel/bpf tools/{arch,bpf,build,include,lib,perf,scripts} - scripts include lib "arch/*/lib" arch/arm64/tools + scripts include lib "arch/*/lib" "arch/*/tools" ) # We expect the tar implementation to support the -j option (both @@ -176,6 +176,7 @@ src_prepare() { pushd "${S_K}" >/dev/null || die eapply "${FILESDIR}"/perf-6.4-libtracefs.patch + eapply "${FILESDIR}"/perf-6.7-expr.patch popd || die # Drop some upstream too-developer-oriented flags and fix the