Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/rr/
Date: Thu, 09 May 2019 22:26:29
Message-Id: 1557440777.711700db3988f31876e62f67fe2a5d6db0614d7c.slyfox@gentoo
1 commit: 711700db3988f31876e62f67fe2a5d6db0614d7c
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 9 22:25:54 2019 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Thu May 9 22:26:17 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=711700db
7
8 dev-util/rr: ass IUSE=multilib, bug #636786
9
10 rr has a support to replay both 32-bit and 64-bit binaries
11 on amd64. For that it probes toolchain with -m32 support.
12
13 On non-multilib profiles -m32 does not work as we don't
14 have 32-bit glibc anf libgcc.
15
16 Guard the autodetection behing USE=multilib.
17
18 Reported-by: Alexander Sergeyev
19 Reported-by: Quentin Minster
20 Closes: https://bugs.gentoo.org/636786
21 Package-Manager: Portage-2.3.66, Repoman-2.3.12
22 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
23
24 dev-util/rr/rr-5.2.0-r1.ebuild | 60 ++++++++++++++++++++++++++++++++++++++++++
25 1 file changed, 60 insertions(+)
26
27 diff --git a/dev-util/rr/rr-5.2.0-r1.ebuild b/dev-util/rr/rr-5.2.0-r1.ebuild
28 new file mode 100644
29 index 00000000000..dd2d726b004
30 --- /dev/null
31 +++ b/dev-util/rr/rr-5.2.0-r1.ebuild
32 @@ -0,0 +1,60 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +PYTHON_COMPAT=( python2_7 )
39 +CMAKE_BUILD_TYPE=Release
40 +
41 +inherit cmake-utils linux-info python-single-r1
42 +
43 +DESCRIPTION="Record and Replay Framework"
44 +HOMEPAGE="https://rr-project.org/"
45 +SRC_URI="https://github.com/mozilla/${PN}/archive/${PV}.tar.gz -> mozilla-${P}.tar.gz"
46 +
47 +LICENSE="MIT BSD-2"
48 +SLOT="0"
49 +KEYWORDS="~amd64"
50 +IUSE="multilib test"
51 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
52 +
53 +DEPEND="
54 + sys-libs/zlib
55 + dev-libs/capnproto
56 + ${PYTHON_DEPS}"
57 +RDEPEND="${DEPEND}
58 + sys-devel/gdb[xml]"
59 +# Add all the deps needed only at build/test time.
60 +DEPEND+="
61 + test? (
62 + dev-python/pexpect[${PYTHON_USEDEP}]
63 + sys-devel/gdb[xml]
64 + )"
65 +
66 +PATCHES=(
67 + "${FILESDIR}"/${P}-ucontext_t.patch
68 + "${FILESDIR}"/${P}-c++14.patch
69 +)
70 +
71 +pkg_setup() {
72 + if use kernel_linux; then
73 + CONFIG_CHECK="SECCOMP"
74 + linux-info_pkg_setup
75 + fi
76 + python-single-r1_pkg_setup
77 +}
78 +
79 +src_prepare() {
80 + cmake-utils_src_prepare
81 +
82 + sed -i 's:-Werror::' CMakeLists.txt || die #609192
83 +}
84 +
85 +src_configure() {
86 + local mycmakeargs=(
87 + -DBUILD_TESTS=$(usex test)
88 + -Ddisable32bit=$(usex !multilib) #636786
89 + )
90 +
91 + cmake-utils_src_configure
92 +}