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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C2B90138334 for ; Thu, 9 May 2019 22:26:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9C7F2E01B5; Thu, 9 May 2019 22:26:28 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7A99AE01B5 for ; Thu, 9 May 2019 22:26:28 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8F977343ECC for ; Thu, 9 May 2019 22:26:26 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7C26F1BA for ; Thu, 9 May 2019 22:26:24 +0000 (UTC) From: "Sergei Trofimovich" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sergei Trofimovich" Message-ID: <1557440777.711700db3988f31876e62f67fe2a5d6db0614d7c.slyfox@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/rr/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/rr/rr-5.2.0-r1.ebuild X-VCS-Directories: dev-util/rr/ X-VCS-Committer: slyfox X-VCS-Committer-Name: Sergei Trofimovich X-VCS-Revision: 711700db3988f31876e62f67fe2a5d6db0614d7c X-VCS-Branch: master Date: Thu, 9 May 2019 22:26:24 +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: e7d69fee-f3cc-4239-914a-8ebdf7685964 X-Archives-Hash: 2b0d0a46b7007d1298822c1d2dd6bf19 commit: 711700db3988f31876e62f67fe2a5d6db0614d7c Author: Sergei Trofimovich gentoo org> AuthorDate: Thu May 9 22:25:54 2019 +0000 Commit: Sergei Trofimovich gentoo org> CommitDate: Thu May 9 22:26:17 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=711700db dev-util/rr: ass IUSE=multilib, bug #636786 rr has a support to replay both 32-bit and 64-bit binaries on amd64. For that it probes toolchain with -m32 support. On non-multilib profiles -m32 does not work as we don't have 32-bit glibc anf libgcc. Guard the autodetection behing USE=multilib. Reported-by: Alexander Sergeyev Reported-by: Quentin Minster Closes: https://bugs.gentoo.org/636786 Package-Manager: Portage-2.3.66, Repoman-2.3.12 Signed-off-by: Sergei Trofimovich gentoo.org> dev-util/rr/rr-5.2.0-r1.ebuild | 60 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/dev-util/rr/rr-5.2.0-r1.ebuild b/dev-util/rr/rr-5.2.0-r1.ebuild new file mode 100644 index 00000000000..dd2d726b004 --- /dev/null +++ b/dev-util/rr/rr-5.2.0-r1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python2_7 ) +CMAKE_BUILD_TYPE=Release + +inherit cmake-utils linux-info python-single-r1 + +DESCRIPTION="Record and Replay Framework" +HOMEPAGE="https://rr-project.org/" +SRC_URI="https://github.com/mozilla/${PN}/archive/${PV}.tar.gz -> mozilla-${P}.tar.gz" + +LICENSE="MIT BSD-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="multilib test" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +DEPEND=" + sys-libs/zlib + dev-libs/capnproto + ${PYTHON_DEPS}" +RDEPEND="${DEPEND} + sys-devel/gdb[xml]" +# Add all the deps needed only at build/test time. +DEPEND+=" + test? ( + dev-python/pexpect[${PYTHON_USEDEP}] + sys-devel/gdb[xml] + )" + +PATCHES=( + "${FILESDIR}"/${P}-ucontext_t.patch + "${FILESDIR}"/${P}-c++14.patch +) + +pkg_setup() { + if use kernel_linux; then + CONFIG_CHECK="SECCOMP" + linux-info_pkg_setup + fi + python-single-r1_pkg_setup +} + +src_prepare() { + cmake-utils_src_prepare + + sed -i 's:-Werror::' CMakeLists.txt || die #609192 +} + +src_configure() { + local mycmakeargs=( + -DBUILD_TESTS=$(usex test) + -Ddisable32bit=$(usex !multilib) #636786 + ) + + cmake-utils_src_configure +}