commit:     d1798083a2a89196960d9fde2d053cab9f6f991b
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Sat Jul  8 13:17:56 2017 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Sat Jul  8 13:18:12 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1798083

dev-lang/ghc: fix check-reqs usage

Apparently pkg_pretend / pkg_setup don't share global environment.

Package-Manager: Portage-2.3.6, Repoman-2.3.2

 dev-lang/ghc/ghc-8.0.2.ebuild | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/dev-lang/ghc/ghc-8.0.2.ebuild b/dev-lang/ghc/ghc-8.0.2.ebuild
index 4ba077cf90b..1fd964ad314 100644
--- a/dev-lang/ghc/ghc-8.0.2.ebuild
+++ b/dev-lang/ghc/ghc-8.0.2.ebuild
@@ -327,7 +327,7 @@ relocate_ghc() {
        rm "$gp_back"
 }
 
-pkg_pretend() {
+ghc-check-reqs() {
        # These are pessimistic values (slightly bigger than worst-case)
        # Worst case is UNREG USE=profile ia64. See bug #611866 for some
        # numbers on various arches.
@@ -336,11 +336,15 @@ pkg_pretend() {
        # USE=binary roughly takes
        use binary && CHECKREQS_DISK_BUILD=4G
 
-       check-reqs_pkg_pretend
+       "$@"
+}
+
+pkg_pretend() {
+       ghc-check-reqs check-reqs_pkg_pretend
 }
 
 pkg_setup() {
-       check-reqs_pkg_setup
+       ghc-check-reqs check-reqs_pkg_setup
 
        # quiet portage about prebuilt binaries
        use binary && QA_PREBUILT="*"

Reply via email to