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 03C911581D3 for ; Sat, 25 May 2024 07:35:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4802BE29EA; Sat, 25 May 2024 07:35:17 +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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2706BE29E8 for ; Sat, 25 May 2024 07:35:17 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 31E2A33BF08 for ; Sat, 25 May 2024 07:35:16 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C7AE31B47 for ; Sat, 25 May 2024 07:35:14 +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: <1716622482.e12c46196df0be7a421793f954982a159a43b64e.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/rr/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/rr/Manifest dev-util/rr/rr-5.8.0.ebuild X-VCS-Directories: dev-util/rr/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: e12c46196df0be7a421793f954982a159a43b64e X-VCS-Branch: master Date: Sat, 25 May 2024 07:35:14 +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: af9f8211-dc12-470c-a2e6-fcec35da6b38 X-Archives-Hash: 6d7c3f05b40c2a523515018f63a8ad21 commit: e12c46196df0be7a421793f954982a159a43b64e Author: Sam James gentoo org> AuthorDate: Sat May 25 07:14:29 2024 +0000 Commit: Sam James gentoo org> CommitDate: Sat May 25 07:34:42 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e12c4619 dev-util/rr: add 5.8.0 Signed-off-by: Sam James gentoo.org> dev-util/rr/Manifest | 1 + dev-util/rr/rr-5.8.0.ebuild | 88 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 89 insertions(+) diff --git a/dev-util/rr/Manifest b/dev-util/rr/Manifest index a384f453eda3..3d378ac3764f 100644 --- a/dev-util/rr/Manifest +++ b/dev-util/rr/Manifest @@ -1 +1,2 @@ DIST mozilla-rr-5.7.0.tar.gz 1688069 BLAKE2B 613196a441b8c384765403838d4c89248eeb85af203b596ff01610fe65c62650cbeb7f8bde4c97ac4bb65f2bdcf7caa605ca1b6cb2f8f36b0355d816ed39a4f1 SHA512 e0e45f47a5f1de9e0e3f982e9eb5565699189ed23c52de03bf68b8215e7b8ac267619c04495c19e75a55aa8e0face08b9bb6c7f325650384c10a719c17ecf576 +DIST mozilla-rr-5.8.0.tar.gz 1734617 BLAKE2B 75fcd99da89dc4acc033d033abc91ff61500ad1429702641888c628ad0e70f1dfb61309aa76092f34d3314086572a6af334970e5f4abb4d7c812800b23e64869 SHA512 98f0c970fad5c3a2c5d7c17f40c454db072d31053425ffc308a66a643e2f36ede04f33ab8b13f94c42c60a3b00e18a790783467f99a97e421551c498df313a6b diff --git a/dev-util/rr/rr-5.8.0.ebuild b/dev-util/rr/rr-5.8.0.ebuild new file mode 100644 index 000000000000..4b3f96db0d10 --- /dev/null +++ b/dev-util/rr/rr-5.8.0.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} ) +CMAKE_BUILD_TYPE=Release + +inherit cmake linux-info python-single-r1 + +DESCRIPTION="Record and Replay Framework" +HOMEPAGE="https://rr-project.org/" +SRC_URI="https://github.com/rr-debugger/${PN}/archive/${PV}.tar.gz -> mozilla-${P}.tar.gz" + +# rr itself is MIT and BSD-2, but there's various bits under third-party too. +LICENSE="MIT BSD-2 GPL-2 ZLIB" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="multilib test" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +DEPEND=" + ${PYTHON_DEPS} + dev-libs/capnproto:= + sys-libs/zlib:= +" +RDEPEND=" + ${DEPEND} + dev-debug/gdb[xml] +" +# Add all the deps needed only at build/test time. +DEPEND+=" + test? ( + $(python_gen_cond_dep ' + dev-python/pexpect[${PYTHON_USEDEP}] + ') + dev-debug/gdb[xml] + )" + +QA_FLAGS_IGNORED=" + usr/lib.*/rr/librrpage.so + usr/lib.*/rr/librrpage_32.so +" + +RESTRICT="test" # toolchain and kernel version dependent + +PATCHES=( + "${FILESDIR}"/${PN}-5.7.0-no-force-lto.patch +) + +pkg_setup() { + if use kernel_linux; then + CONFIG_CHECK="SECCOMP" + linux-info_pkg_setup + fi + python-single-r1_pkg_setup +} + +src_prepare() { + cmake_src_prepare + + sed -i 's:-Werror::' CMakeLists.txt || die #609192 +} + +src_test() { + if has usersandbox ${FEATURES} ; then + ewarn "Test suite fails under FEATURES=usersandbox (bug #632394). Skipping." + return 0 + fi + + cmake_src_test +} + +src_configure() { + local mycmakeargs=( + -DBUILD_TESTS=$(usex test) + -Ddisable32bit=$(usex !multilib) #636786 + ) + + cmake_src_configure +} + +src_install() { + cmake_src_install + + python_fix_shebang "${ED}"/usr/bin/rr-collect-symbols.py + python_newscript scripts/zen_workaround.py rr-zen_workaround.py +}