diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2021-09-27 10:31:22 +0200 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2021-09-27 10:54:53 +0200 |
commit | e446106b37eda50346bc75b13b4df1152f238a4a (patch) | |
tree | 84a6099f18b44f0deeed742388e1e9b6e0ecbac1 /dev-util/rr/rr-5.5.0.ebuild | |
parent | dev-python/sphinx-testing: Keyword 1.0.1-r1 for ~m68k (diff) | |
download | gentoo-e446106b37eda50346bc75b13b4df1152f238a4a.tar.gz gentoo-e446106b37eda50346bc75b13b4df1152f238a4a.tar.bz2 gentoo-e446106b37eda50346bc75b13b4df1152f238a4a.zip |
dev-util/rr: Version bump
Lots of bugfixes, it might work on the most modern aarch64 and
some more AMD cpus with some additional setup.
Package-Manager: Portage-3.0.23, Repoman-3.0.3
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'dev-util/rr/rr-5.5.0.ebuild')
-rw-r--r-- | dev-util/rr/rr-5.5.0.ebuild | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/dev-util/rr/rr-5.5.0.ebuild b/dev-util/rr/rr-5.5.0.ebuild new file mode 100644 index 000000000000..73cc6777d148 --- /dev/null +++ b/dev-util/rr/rr-5.5.0.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{8,9,10} ) +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/mozilla/${PN}/archive/${PV}.tar.gz -> mozilla-${P}.tar.gz" + +LICENSE="MIT BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +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? ( + $(python_gen_cond_dep ' + dev-python/pexpect[${PYTHON_USEDEP}] + ') + sys-devel/gdb[xml] + )" + +RESTRICT="test" # toolchain and kernel version dependent + +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 +} |