Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/ghc/
Date: Sat, 08 Jul 2017 11:59:59
Message-Id: 1499515192.0dc53bf2e8d10a09a892b5427009412ced1d65b0.slyfox@gentoo
1 commit: 0dc53bf2e8d10a09a892b5427009412ced1d65b0
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jul 8 11:59:44 2017 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Sat Jul 8 11:59:52 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0dc53bf2
7
8 dev-lang/ghc: add check for disk space requirement, bug #611866
9
10 Reported-by: Mike Limansky
11 Bug: https://bugs.gentoo.org/611866
12 Package-Manager: Portage-2.3.6, Repoman-2.3.2
13
14 dev-lang/ghc/ghc-8.0.2.ebuild | 16 +++++++++++++++-
15 1 file changed, 15 insertions(+), 1 deletion(-)
16
17 diff --git a/dev-lang/ghc/ghc-8.0.2.ebuild b/dev-lang/ghc/ghc-8.0.2.ebuild
18 index 61c62ccf6fa..4ba077cf90b 100644
19 --- a/dev-lang/ghc/ghc-8.0.2.ebuild
20 +++ b/dev-lang/ghc/ghc-8.0.2.ebuild
21 @@ -16,7 +16,7 @@ fi
22
23 inherit autotools bash-completion-r1 eutils flag-o-matic ghc-package
24 inherit multilib pax-utils toolchain-funcs versionator prefix
25 -
26 +inherit check-reqs
27 DESCRIPTION="The Glasgow Haskell Compiler"
28 HOMEPAGE="http://www.haskell.org/ghc/"
29
30 @@ -327,7 +327,21 @@ relocate_ghc() {
31 rm "$gp_back"
32 }
33
34 +pkg_pretend() {
35 + # These are pessimistic values (slightly bigger than worst-case)
36 + # Worst case is UNREG USE=profile ia64. See bug #611866 for some
37 + # numbers on various arches.
38 + CHECKREQS_DISK_BUILD=8G
39 + CHECKREQS_DISK_USR=2G
40 + # USE=binary roughly takes
41 + use binary && CHECKREQS_DISK_BUILD=4G
42 +
43 + check-reqs_pkg_pretend
44 +}
45 +
46 pkg_setup() {
47 + check-reqs_pkg_setup
48 +
49 # quiet portage about prebuilt binaries
50 use binary && QA_PREBUILT="*"