From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 1723A1386F1 for ; Mon, 10 Aug 2015 08:00:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1038914283; Mon, 10 Aug 2015 08:00:21 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 501B614289 for ; Mon, 10 Aug 2015 08:00:20 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7C358340812 for ; Mon, 10 Aug 2015 08:00:19 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 30DB114E for ; Mon, 10 Aug 2015 08:00:16 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1439193590.2f168392284fec294f9bfbb06d1c0a8a46f5a7d5.vapier@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-process/anacron/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-process/anacron/anacron-2.3-r3.ebuild X-VCS-Directories: sys-process/anacron/ X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: 2f168392284fec294f9bfbb06d1c0a8a46f5a7d5 X-VCS-Branch: master Date: Mon, 10 Aug 2015 08:00:16 +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-Archives-Salt: 02d2c3c7-3d09-4cc8-96da-d976d8584e35 X-Archives-Hash: 9bdf794f95bc565c5f6c35c0bca15c79 commit: 2f168392284fec294f9bfbb06d1c0a8a46f5a7d5 Author: Mike Frysinger gentoo org> AuthorDate: Mon Aug 10 07:39:36 2015 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Mon Aug 10 07:59:50 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f168392 anacron: improve CFLAGS/CC handling Rather than expand CFLAGS in the sed statement, pass it via the env later on when running make. Make sure we set up CC to a sane default. sys-process/anacron/anacron-2.3-r3.ebuild | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/sys-process/anacron/anacron-2.3-r3.ebuild b/sys-process/anacron/anacron-2.3-r3.ebuild index aa35863..202cfdd 100644 --- a/sys-process/anacron/anacron-2.3-r3.ebuild +++ b/sys-process/anacron/anacron-2.3-r3.ebuild @@ -4,7 +4,7 @@ EAPI="5" -inherit eutils +inherit eutils toolchain-funcs DESCRIPTION="a periodic command scheduler" HOMEPAGE="http://anacron.sourceforge.net/" @@ -21,7 +21,13 @@ RDEPEND="${RDEPEND} src_prepare() { epatch "${FILESDIR}"/${P}-compile-fix-from-debian.patch - sed -i "s:^CFLAGS =:CFLAGS = $CFLAGS:" Makefile + sed -i \ + -e '/^CFLAGS/{s:=:+=:;s:-O2::}' \ + Makefile || die +} + +src_configure() { + tc-export CC } src_install() {