From 83b41f95c034da25f87946f1b490df7f03a0ba9c Mon Sep 17 00:00:00 2001 From: Andrey Utkin Date: Sun, 29 Jan 2017 17:02:12 +0000 Subject: [PATCH] sys-block/whdd: export CC to build system Use tc-export function from toolchain-funcs eclass to export CC as environment variable. This is needed because build system of whdd (>=3.0) has no configure script, but straight makefile and Portage doesn't automatically export CC and other build-related environment variables. --- sys-block/whdd/whdd-3.0.ebuild | 7 +++++++ sys-block/whdd/whdd-9999.ebuild | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/sys-block/whdd/whdd-3.0.ebuild b/sys-block/whdd/whdd-3.0.ebuild index 6c4ff079329a..822e0f269d4c 100644 --- a/sys-block/whdd/whdd-3.0.ebuild +++ b/sys-block/whdd/whdd-3.0.ebuild @@ -7,6 +7,8 @@ EAPI=6 DESCRIPTION="Diagnostic and recovery tool for block devices" HOMEPAGE="https://whdd.github.io" +inherit toolchain-funcs + if [[ ${PV} == 9999 ]] then EGIT_REPO_URI="https://github.com/${PN}/${PN}" @@ -26,3 +28,8 @@ DEPEND=" sys-libs/ncurses:0=[unicode]" RDEPEND="${DEPEND} sys-apps/smartmontools" + +src_compile() { + tc-export CC + default +} diff --git a/sys-block/whdd/whdd-9999.ebuild b/sys-block/whdd/whdd-9999.ebuild index 6c4ff079329a..822e0f269d4c 100644 --- a/sys-block/whdd/whdd-9999.ebuild +++ b/sys-block/whdd/whdd-9999.ebuild @@ -7,6 +7,8 @@ EAPI=6 DESCRIPTION="Diagnostic and recovery tool for block devices" HOMEPAGE="https://whdd.github.io" +inherit toolchain-funcs + if [[ ${PV} == 9999 ]] then EGIT_REPO_URI="https://github.com/${PN}/${PN}" @@ -26,3 +28,8 @@ DEPEND=" sys-libs/ncurses:0=[unicode]" RDEPEND="${DEPEND} sys-apps/smartmontools" + +src_compile() { + tc-export CC + default +} -- 2.26.2