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) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 01540158534 for ; Wed, 21 Aug 2024 05:00:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F04C0E2A54; Wed, 21 Aug 2024 05:00:22 +0000 (UTC) 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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D5375E2A54 for ; Wed, 21 Aug 2024 05:00:22 +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 DA2D83409EC for ; Wed, 21 Aug 2024 05:00:21 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 46CC81EF1 for ; Wed, 21 Aug 2024 05:00:20 +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: <1724216238.4d0a6ed89648091f6e250d6aa866cd2e7c1a29fe.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-debug/systemtap/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-debug/systemtap/systemtap-5.1.ebuild dev-debug/systemtap/systemtap-9999.ebuild X-VCS-Directories: dev-debug/systemtap/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 4d0a6ed89648091f6e250d6aa866cd2e7c1a29fe X-VCS-Branch: master Date: Wed, 21 Aug 2024 05:00:20 +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: 32e132f0-6eb2-449d-b578-d986faa9afbd X-Archives-Hash: 1483945093940564f898fcfea26e2812 commit: 4d0a6ed89648091f6e250d6aa866cd2e7c1a29fe Author: Sam James gentoo org> AuthorDate: Wed Aug 21 04:55:31 2024 +0000 Commit: Sam James gentoo org> CommitDate: Wed Aug 21 04:57:18 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d0a6ed8 dev-debug/systemtap: make tests more robust They failed for me with my usual CFLAGS otherwise (the sanity check / smoketest failed, even). Bug: https://bugs.gentoo.org/868408 Bug: https://bugs.gentoo.org/935333 Signed-off-by: Sam James gentoo.org> dev-debug/systemtap/systemtap-5.1.ebuild | 16 +++++++++++++++- dev-debug/systemtap/systemtap-9999.ebuild | 16 +++++++++++++++- 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/dev-debug/systemtap/systemtap-5.1.ebuild b/dev-debug/systemtap/systemtap-5.1.ebuild index 0bdad429da92..df5d1a5ea9c7 100644 --- a/dev-debug/systemtap/systemtap-5.1.ebuild +++ b/dev-debug/systemtap/systemtap-5.1.ebuild @@ -5,7 +5,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{10..12} pypy3 ) -inherit autotools linux-info python-single-r1 +inherit autotools flag-o-matic linux-info python-single-r1 toolchain-funcs DESCRIPTION="Linux trace/probe tool" HOMEPAGE="https://sourceware.org/systemtap/" @@ -132,6 +132,20 @@ src_configure() { CONFIG_SHELL="${BROOT}"/bin/bash PYTHON3="${PYTHON}" econf "${myeconfargs[@]}" } +src_test() { + # TODO: Install tests like dev-debug/dtrace[install-tests] and + # e.g. Fedora does. + ( + strip-flags + filter-flags '-fcf-protection=*' + filter-flags '-fdiagnostics-color=*' '-fdiagnostics-urls=*' + filter-flags '-g*' + filter-lto + tc-ld-force-bfd + emake -Onone -k check CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}" + ) +} + src_install() { default python_optimize diff --git a/dev-debug/systemtap/systemtap-9999.ebuild b/dev-debug/systemtap/systemtap-9999.ebuild index 0bdad429da92..df5d1a5ea9c7 100644 --- a/dev-debug/systemtap/systemtap-9999.ebuild +++ b/dev-debug/systemtap/systemtap-9999.ebuild @@ -5,7 +5,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{10..12} pypy3 ) -inherit autotools linux-info python-single-r1 +inherit autotools flag-o-matic linux-info python-single-r1 toolchain-funcs DESCRIPTION="Linux trace/probe tool" HOMEPAGE="https://sourceware.org/systemtap/" @@ -132,6 +132,20 @@ src_configure() { CONFIG_SHELL="${BROOT}"/bin/bash PYTHON3="${PYTHON}" econf "${myeconfargs[@]}" } +src_test() { + # TODO: Install tests like dev-debug/dtrace[install-tests] and + # e.g. Fedora does. + ( + strip-flags + filter-flags '-fcf-protection=*' + filter-flags '-fdiagnostics-color=*' '-fdiagnostics-urls=*' + filter-flags '-g*' + filter-lto + tc-ld-force-bfd + emake -Onone -k check CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}" + ) +} + src_install() { default python_optimize