dev-util/rtc-testbench - 5.5 (guru)

Search

Install

Install this version:

emerge -a =dev-util/rtc-testbench-5.5

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-util/rtc-testbench-5.5

Or alternatively:

emerge --autounmask-write -a =dev-util/rtc-testbench-5.5

Package Information

Description:
RTC Testbench is a set of tools for validating Ethernet networks
Homepage:
https://github.com/Linutronix/RTC-Testbench
License:
BSD-2

Ebuild Details

Version EAPI Keywords Slot
5.5 8 ~amd64 ~x86 0
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

LLVM_COMPAT=( {16..22} )
PYTHON_COMPAT=( python3_{12..15} )

inherit cmake python-single-r1 llvm-r2

DESCRIPTION="RTC Testbench is a set of tools for validating Ethernet networks"
HOMEPAGE="https://github.com/Linutronix/RTC-Testbench"
SRC_URI="https://github.com/Linutronix/RTC-Testbench/archive/refs/tags/v${PV}.tar.gz -> ${PN}-${PV}.tar.gz"
S="${WORKDIR}/RTC-Testbench-${PV}"

LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc mqtt test"
RESTRICT="!test? ( test )"

# Generated eBPF files
QA_PREBUILT="usr/lib*/rtc-testbench/ebpf/*.o"

REQUIRED_USE="
	${PYTHON_REQUIRED_USE}
"

BDEPEND="
	${PYTHON_DEPS}
	virtual/pkgconfig
	doc? (
		media-gfx/graphviz
		$(python_gen_cond_dep '
			dev-python/sphinx[${PYTHON_USEDEP}]
			dev-python/sphinx-rtd-theme[${PYTHON_USEDEP}]
		')
	)
	$(llvm_gen_dep '
		llvm-core/clang:${LLVM_SLOT}=[llvm_targets_BPF(-)]
	')
	test? ( dev-util/cmocka )
"
DEPEND="
	mqtt? ( app-misc/mosquitto )
	dev-libs/libyaml
	dev-libs/libbpf:=
	dev-libs/openssl:=
	net-libs/xdp-tools
"
RDEPEND="
	${PYTHON_DEPS}
	${DEPEND}
"

pkg_setup() {
	llvm-r2_pkg_setup
}

src_configure() {
	local mycmakeargs=(
		-DWITH_MQTT=$(usex mqtt)
		-DWITH_TESTS=$(usex test)
		-DRX_TIMESTAMP=TRUE
		-DTX_TIMESTAMP=TRUE
	)

	cmake_src_configure
}

src_compile() {
	cmake_src_compile
	use doc && emake -C "${S}/Documentation" html
}

src_install() {
	use doc && HTML_DOCS=( "${S}/Documentation/_build/html" )
	cmake_src_install
}

USE Flags

Manage flags for this package: euse -i <flag> -p dev-util/rtc-testbench | euse -E <flag> -p dev-util/rtc-testbench | euse -D <flag> -p dev-util/rtc-testbench

Global/Standard Flags

doc

Inherited Eclasses

Dependencies

DEPEND

	mqtt? ( app-misc/mosquitto )
	dev-libs/libyaml
	dev-libs/libbpf:=
	dev-libs/openssl:=
	net-libs/xdp-tools

RDEPEND

	
	
	mqtt? ( app-misc/mosquitto )
	dev-libs/libyaml
	dev-libs/libbpf:=
	dev-libs/openssl:=
	net-libs/xdp-tools

BDEPEND

	${PYTHON_DEPS}
	virtual/pkgconfig
	doc? (
		media-gfx/graphviz
		$(python_gen_cond_dep '
			dev-python/sphinx[${PYTHON_USEDEP}]
			dev-python/sphinx-rtd-theme[${PYTHON_USEDEP}]
		')
	)
	$(llvm_gen_dep '
		llvm-core/clang:${LLVM_SLOT}=[llvm_targets_BPF(-)]
	')
	test? ( dev-util/cmocka )

Manifest for 5.5

Type File Size Source URLs
DIST rtc-testbench-5.5.tar.gz 2156091 bytes https://github.com/Linutronix/RTC-Testbench/archive/refs/tags/v5.5.tar.gz