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 671FF158042 for ; Wed, 8 Sep 2021 15:21:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E27F5E09A2; Wed, 8 Sep 2021 15:21:06 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 DB88EE0996 for ; Wed, 8 Sep 2021 15:21:04 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 BEBD4342AEA for ; Wed, 8 Sep 2021 15:21:02 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D2D26E5 for ; Wed, 8 Sep 2021 15:20:58 +0000 (UTC) From: "Arthur Zamarin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arthur Zamarin" Message-ID: <1631095770.f21d03ff3c0ce73b8be3da53cd309690fe9b2948.arthurzam@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: app-text/smu/ X-VCS-Repository: repo/proj/guru X-VCS-Files: app-text/smu/smu-1.5.ebuild app-text/smu/smu-9999.ebuild X-VCS-Directories: app-text/smu/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: f21d03ff3c0ce73b8be3da53cd309690fe9b2948 X-VCS-Branch: master Date: Wed, 8 Sep 2021 15:20:58 +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: ab65d11b-204a-4617-bd79-77e1f0c77444 X-Archives-Hash: f6dbe284ca5761e60f7ae3b123aefaf9 commit: f21d03ff3c0ce73b8be3da53cd309690fe9b2948 Author: Nickolas Raymond Kaczynski disroot org> AuthorDate: Wed Sep 8 10:07:12 2021 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Wed Sep 8 10:09:30 2021 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f21d03ff app-text/smu: fix calling CC directly Closes: https://bugs.gentoo.org/812116 Package-Manager: Portage-3.0.22, Repoman-3.0.3 Signed-off-by: Nickolas Raymond Kaczynski disroot.org> app-text/smu/smu-1.5.ebuild | 7 +++++++ app-text/smu/smu-9999.ebuild | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/app-text/smu/smu-1.5.ebuild b/app-text/smu/smu-1.5.ebuild index dee873a6c..d926d593e 100644 --- a/app-text/smu/smu-1.5.ebuild +++ b/app-text/smu/smu-1.5.ebuild @@ -3,6 +3,8 @@ EAPI=8 +inherit toolchain-funcs + if [[ ${PV} == 9999 ]]; then inherit git-r3 EGIT_REPO_URI="https://github.com/Gottox/${PN}.git" @@ -17,9 +19,14 @@ HOMEPAGE="https://github.com/Gottox/smu" LICENSE="MIT" SLOT="0" +pkg_setup() { + export CC="$(tc-getCC)" +} + src_prepare() { default sed -i \ + -e '/^CC/d' \ -e '/^CFLAGS/ s|-g -O0 ||;s|-Werror ||;s|^CFLAGS =|CFLAGS +=|;' \ -e '/^LDFLAGS/ s|^LDFLAGS =|LDFLAGS +=|' \ config.mk || die "sed failed" diff --git a/app-text/smu/smu-9999.ebuild b/app-text/smu/smu-9999.ebuild index 72ebfc1d5..318067044 100644 --- a/app-text/smu/smu-9999.ebuild +++ b/app-text/smu/smu-9999.ebuild @@ -3,6 +3,8 @@ EAPI=8 +inherit toolchain-funcs + if [[ ${PV} == 9999 ]]; then inherit git-r3 EGIT_REPO_URI="https://github.com/Gottox/smu.git" @@ -17,9 +19,14 @@ HOMEPAGE="https://github.com/Gottox/smu" LICENSE="MIT" SLOT="0" +pkg_setup() { + export CC="$(tc-getCC)" +} + src_prepare() { default sed -i \ + -e '/^CC/d' \ -e '/^CFLAGS/ s|-g -O0 ||;s|-Werror ||;s|^CFLAGS =|CFLAGS +=|;' \ -e '/^LDFLAGS/ s|^LDFLAGS =|LDFLAGS +=|' \ config.mk || die "sed failed"