Gentoo Archives: gentoo-commits

From: Yixun Lan <dlan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/crash/
Date: Wed, 03 Jun 2020 03:05:53
Message-Id: 1591153512.539abe6b27b67042f2067b3e495b30748411f79a.dlan@gentoo
1 commit: 539abe6b27b67042f2067b3e495b30748411f79a
2 Author: Yixun Lan <dlan <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jun 3 02:57:13 2020 +0000
4 Commit: Yixun Lan <dlan <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 3 03:05:12 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=539abe6b
7
8 dev-util/crash: respect CC/AR variables
9
10 Closes: https://bugs.gentoo.org/724262
11 Package-Manager: Portage-2.3.100, Repoman-2.3.22
12 Signed-off-by: Yixun Lan <dlan <AT> gentoo.org>
13
14 dev-util/crash/crash-7.2.8-r1.ebuild | 30 ++++++++++++++++++++++++++++++
15 1 file changed, 30 insertions(+)
16
17 diff --git a/dev-util/crash/crash-7.2.8-r1.ebuild b/dev-util/crash/crash-7.2.8-r1.ebuild
18 new file mode 100644
19 index 00000000000..45bbff51590
20 --- /dev/null
21 +++ b/dev-util/crash/crash-7.2.8-r1.ebuild
22 @@ -0,0 +1,30 @@
23 +# Copyright 1999-2020 Gentoo Authors
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI="7"
27 +
28 +inherit toolchain-funcs
29 +
30 +DESCRIPTION="Red Hat crash utility; used for analyzing kernel core dumps"
31 +HOMEPAGE="https://people.redhat.com/anderson/"
32 +SRC_URI="https://people.redhat.com/anderson/${P}.tar.gz"
33 +
34 +LICENSE="GPL-3"
35 +SLOT="0"
36 +KEYWORDS="-* ~alpha ~amd64 ~arm ~ia64 ~ppc64 ~s390 ~x86"
37 +IUSE=""
38 +# there is no "make test" target, but there is a test.c so the automatic
39 +# make rules catch it and tests fail
40 +RESTRICT="test"
41 +
42 +src_prepare() {
43 + sed -i -e "s|ar -rs|\${AR} -rs|g" Makefile || die
44 + default
45 +}
46 +
47 +src_compile() {
48 + emake \
49 + CC="$(tc-getCC)" \
50 + AR="$(tc-getAR)" \
51 + CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
52 +}