mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-17 14:49:30 -07:00
dev-debug/rr: rename dev-util/rr
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
2
dev-debug/rr/Manifest
Normal file
2
dev-debug/rr/Manifest
Normal file
@@ -0,0 +1,2 @@
|
||||
DIST mozilla-rr-5.8.0.tar.gz 1734617 BLAKE2B 75fcd99da89dc4acc033d033abc91ff61500ad1429702641888c628ad0e70f1dfb61309aa76092f34d3314086572a6af334970e5f4abb4d7c812800b23e64869 SHA512 98f0c970fad5c3a2c5d7c17f40c454db072d31053425ffc308a66a643e2f36ede04f33ab8b13f94c42c60a3b00e18a790783467f99a97e421551c498df313a6b
|
||||
DIST mozilla-rr-5.9.0.tar.gz 1801696 BLAKE2B b87d0a33201a513a692e8deb20ada38f235ce7a3e41dd806d0dba9a1a73f2c3dbf71d7f95b7cb0b284c7e38a4a19ea58f9ddef31d2e9b92efc686b24a8e551e7 SHA512 796d9b0b64e3993dfc14cf488e5e598b1de4828da415b1f97435598d62c1c133fc268d7838601275a00f59f05bf53d0bb796380418f4cb6cdfdda2c50207f996
|
||||
23
dev-debug/rr/files/rr-5.7.0-no-force-lto.patch
Normal file
23
dev-debug/rr/files/rr-5.7.0-no-force-lto.patch
Normal file
@@ -0,0 +1,23 @@
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -118,7 +118,6 @@ if(LOWERCASE_CMAKE_BUILD_TYPE STREQUAL "debug")
|
||||
set(RR_FLAGS "${RR_FLAGS_DEBUG} -g3 ")
|
||||
elseif(LOWERCASE_CMAKE_BUILD_TYPE STREQUAL "release")
|
||||
# CMake itself will add optimization flags
|
||||
- set(RR_FLAGS "${RR_FLAGS_RELEASE} -g3 -flto")
|
||||
endif()
|
||||
|
||||
set(LINKER_FLAGS "")
|
||||
@@ -675,12 +674,6 @@ endif()
|
||||
|
||||
# Add -flto option to linking step if release
|
||||
if(LOWERCASE_CMAKE_BUILD_TYPE STREQUAL "release")
|
||||
- CHECK_C_COMPILER_FLAG("-flto=auto" SUPPORTS_LTO_AUTO)
|
||||
- if(SUPPORTS_LTO_AUTO)
|
||||
- set(RR_MAIN_LINKER_FLAGS "${RR_MAIN_LINKER_FLAGS} -flto=auto")
|
||||
- else()
|
||||
- set(RR_MAIN_LINKER_FLAGS "${RR_MAIN_LINKER_FLAGS} -flto")
|
||||
- endif()
|
||||
endif()
|
||||
|
||||
if(LIBRT)
|
||||
15
dev-debug/rr/metadata.xml
Normal file
15
dev-debug/rr/metadata.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>toolchain@gentoo.org</email>
|
||||
<name>Gentoo Toolchain Project</name>
|
||||
</maintainer>
|
||||
<maintainer type="person">
|
||||
<email>lu_zero@gentoo.org</email>
|
||||
<name>Luca Barbato</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">rr-debugger/rr</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
94
dev-debug/rr/rr-5.8.0.ebuild
Normal file
94
dev-debug/rr/rr-5.8.0.ebuild
Normal file
@@ -0,0 +1,94 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{10..13} )
|
||||
CMAKE_BUILD_TYPE=Release
|
||||
|
||||
inherit cmake linux-info python-single-r1
|
||||
|
||||
DESCRIPTION="Record and Replay Framework"
|
||||
HOMEPAGE="https://rr-project.org/"
|
||||
|
||||
if [[ ${PV} == 9999 ]] ; then
|
||||
EGIT_REPO_URI="https://github.com/rr-debugger/rr"
|
||||
inherit git-r3
|
||||
else
|
||||
SRC_URI="https://github.com/rr-debugger/${PN}/archive/${PV}.tar.gz -> mozilla-${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
fi
|
||||
|
||||
# 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"
|
||||
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
|
||||
}
|
||||
100
dev-debug/rr/rr-5.9.0.ebuild
Normal file
100
dev-debug/rr/rr-5.9.0.ebuild
Normal file
@@ -0,0 +1,100 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{10..13} )
|
||||
CMAKE_BUILD_TYPE=Release
|
||||
|
||||
inherit cmake linux-info python-single-r1
|
||||
|
||||
DESCRIPTION="Record and Replay Framework"
|
||||
HOMEPAGE="https://rr-project.org/"
|
||||
|
||||
if [[ ${PV} == 9999 ]] ; then
|
||||
EGIT_REPO_URI="https://github.com/rr-debugger/rr"
|
||||
inherit git-r3
|
||||
else
|
||||
SRC_URI="https://github.com/rr-debugger/${PN}/archive/${PV}.tar.gz -> mozilla-${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
fi
|
||||
|
||||
# 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"
|
||||
IUSE="multilib test"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
DEPEND="
|
||||
${PYTHON_DEPS}
|
||||
app-arch/zstd:=
|
||||
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 # bug #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) # bug #636786
|
||||
)
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
|
||||
# Upstream's CMake avoids stripping librrpreload at least, and
|
||||
# Fedora avoids stripping all libraries. Treat it like Valgrind
|
||||
# and play it safe.
|
||||
dostrip -x "/usr/$(get_libdir)/rr"
|
||||
|
||||
python_fix_shebang "${ED}"/usr/bin/rr-collect-symbols.py
|
||||
python_newscript scripts/zen_workaround.py rr-zen_workaround.py
|
||||
}
|
||||
100
dev-debug/rr/rr-9999.ebuild
Normal file
100
dev-debug/rr/rr-9999.ebuild
Normal file
@@ -0,0 +1,100 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{10..13} )
|
||||
CMAKE_BUILD_TYPE=Release
|
||||
|
||||
inherit cmake linux-info python-single-r1
|
||||
|
||||
DESCRIPTION="Record and Replay Framework"
|
||||
HOMEPAGE="https://rr-project.org/"
|
||||
|
||||
if [[ ${PV} == 9999 ]] ; then
|
||||
EGIT_REPO_URI="https://github.com/rr-debugger/rr"
|
||||
inherit git-r3
|
||||
else
|
||||
SRC_URI="https://github.com/rr-debugger/${PN}/archive/${PV}.tar.gz -> mozilla-${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
fi
|
||||
|
||||
# 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"
|
||||
IUSE="multilib test"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
DEPEND="
|
||||
${PYTHON_DEPS}
|
||||
app-arch/zstd:=
|
||||
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 # bug #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) # bug #636786
|
||||
)
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
|
||||
# Upstream's CMake avoids stripping librrpreload at least, and
|
||||
# Fedora avoids stripping all libraries. Treat it like Valgrind
|
||||
# and play it safe.
|
||||
dostrip -x "/usr/$(get_libdir)/rr"
|
||||
|
||||
python_fix_shebang "${ED}"/usr/bin/rr-collect-symbols.py
|
||||
python_newscript scripts/zen_workaround.py rr-zen_workaround.py
|
||||
}
|
||||
Reference in New Issue
Block a user