From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C5A4D1382C5 for ; Wed, 3 Jun 2020 03:05:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CAF94E082F; Wed, 3 Jun 2020 03:05:52 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id ADDC0E082F for ; Wed, 3 Jun 2020 03:05:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0E97434DCEE for ; Wed, 3 Jun 2020 03:05:51 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2E24323B for ; Wed, 3 Jun 2020 03:05:48 +0000 (UTC) From: "Yixun Lan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Yixun Lan" Message-ID: <1591153512.539abe6b27b67042f2067b3e495b30748411f79a.dlan@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/crash/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/crash/crash-7.2.8-r1.ebuild X-VCS-Directories: dev-util/crash/ X-VCS-Committer: dlan X-VCS-Committer-Name: Yixun Lan X-VCS-Revision: 539abe6b27b67042f2067b3e495b30748411f79a X-VCS-Branch: master Date: Wed, 3 Jun 2020 03:05:48 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 5b25f4e0-c9a6-40f2-943c-fa6d902bee81 X-Archives-Hash: 249f60996100f3f1a8857d04a5d86c0c commit: 539abe6b27b67042f2067b3e495b30748411f79a Author: Yixun Lan gentoo org> AuthorDate: Wed Jun 3 02:57:13 2020 +0000 Commit: Yixun Lan gentoo org> CommitDate: Wed Jun 3 03:05:12 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=539abe6b dev-util/crash: respect CC/AR variables Closes: https://bugs.gentoo.org/724262 Package-Manager: Portage-2.3.100, Repoman-2.3.22 Signed-off-by: Yixun Lan gentoo.org> dev-util/crash/crash-7.2.8-r1.ebuild | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/dev-util/crash/crash-7.2.8-r1.ebuild b/dev-util/crash/crash-7.2.8-r1.ebuild new file mode 100644 index 00000000000..45bbff51590 --- /dev/null +++ b/dev-util/crash/crash-7.2.8-r1.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit toolchain-funcs + +DESCRIPTION="Red Hat crash utility; used for analyzing kernel core dumps" +HOMEPAGE="https://people.redhat.com/anderson/" +SRC_URI="https://people.redhat.com/anderson/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="-* ~alpha ~amd64 ~arm ~ia64 ~ppc64 ~s390 ~x86" +IUSE="" +# there is no "make test" target, but there is a test.c so the automatic +# make rules catch it and tests fail +RESTRICT="test" + +src_prepare() { + sed -i -e "s|ar -rs|\${AR} -rs|g" Makefile || die + default +} + +src_compile() { + emake \ + CC="$(tc-getCC)" \ + AR="$(tc-getAR)" \ + CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" +}