Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/rt-tests/
Date: Thu, 25 Jun 2020 08:08:37
Message-Id: 1593072463.95b5bf83b726413ebbe2dbe5374c1f79e0526471.juippis@gentoo
1 commit: 95b5bf83b726413ebbe2dbe5374c1f79e0526471
2 Author: Kurt Kanzenbach <kurt <AT> kmk-computers <DOT> de>
3 AuthorDate: Mon May 25 15:49:30 2020 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 25 08:07:43 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95b5bf83
7
8 dev-util/rt-tests: Allow to use different compilers
9
10 Currently CC and AR are hardcoded to gcc/ar. Allow compilation e.g. with clang.
11
12 Closes: https://bugs.gentoo.org/724246
13 Package-Manager: Portage-2.3.99, Repoman-2.3.22
14 Signed-off-by: Kurt Kanzenbach <kurt <AT> kmk-computers.de>
15 Closes: https://github.com/gentoo/gentoo/pull/15962
16 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
17
18 dev-util/rt-tests/rt-tests-1.8.ebuild | 6 +++++-
19 1 file changed, 5 insertions(+), 1 deletion(-)
20
21 diff --git a/dev-util/rt-tests/rt-tests-1.8.ebuild b/dev-util/rt-tests/rt-tests-1.8.ebuild
22 index 994e2f56115..f94e433d66c 100644
23 --- a/dev-util/rt-tests/rt-tests-1.8.ebuild
24 +++ b/dev-util/rt-tests/rt-tests-1.8.ebuild
25 @@ -5,7 +5,7 @@ EAPI=7
26
27 PYTHON_COMPAT=( python3_{6..8} )
28
29 -inherit python-single-r1
30 +inherit python-single-r1 toolchain-funcs
31
32 DESCRIPTION="A collection of latency testing tools for the linux(-rt) kernel"
33 HOMEPAGE="https://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git/about/"
34 @@ -27,6 +27,10 @@ src_prepare() {
35 use elibc_musl && eapply "${FILESDIR}/${P}-musl.patch"
36 }
37
38 +src_compile() {
39 + emake CC="$(tc-getCC)" AR="$(tc-getAR)"
40 +}
41 +
42 src_install() {
43 emake prefix=/usr DESTDIR="${D}" MAN_COMPRESSION=none install
44 python_fix_shebang "${ED}"