diff options
author | Michał Górny <mgorny@gentoo.org> | 2013-08-02 09:30:59 +0000 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2013-08-02 09:30:59 +0000 |
commit | acdb521c80390ef33f26b645c83b4a2aada17840 (patch) | |
tree | cf86cc71ae6c45e82193850b66f040c593963b96 /sys-devel | |
parent | Drop old. (diff) | |
download | gentoo-2-acdb521c80390ef33f26b645c83b4a2aada17840.tar.gz gentoo-2-acdb521c80390ef33f26b645c83b4a2aada17840.tar.bz2 gentoo-2-acdb521c80390ef33f26b645c83b4a2aada17840.zip |
Introduce disk space checks. Bug #479356.
(Portage version: 2.2.0_alpha191/cvs/Linux x86_64, signed Manifest commit with key 9627F456F9DA7643!)
Diffstat (limited to 'sys-devel')
-rw-r--r-- | sys-devel/llvm/ChangeLog | 6 | ||||
-rw-r--r-- | sys-devel/llvm/llvm-3.3-r1.ebuild | 42 | ||||
-rw-r--r-- | sys-devel/llvm/llvm-9999.ebuild | 42 |
3 files changed, 85 insertions, 5 deletions
diff --git a/sys-devel/llvm/ChangeLog b/sys-devel/llvm/ChangeLog index 98c1738cda02..f06fa6a0b055 100644 --- a/sys-devel/llvm/ChangeLog +++ b/sys-devel/llvm/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for sys-devel/llvm # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/llvm/ChangeLog,v 1.127 2013/07/31 22:47:06 mgorny Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/llvm/ChangeLog,v 1.128 2013/08/02 09:30:59 mgorny Exp $ + + 02 Aug 2013; Michał Górny <mgorny@gentoo.org> llvm-3.3-r1.ebuild, + llvm-9999.ebuild: + Introduce disk space checks. Bug #479356. 31 Jul 2013; Michał Górny <mgorny@gentoo.org> -llvm-9999-r1.ebuild, llvm-9999.ebuild: diff --git a/sys-devel/llvm/llvm-3.3-r1.ebuild b/sys-devel/llvm/llvm-3.3-r1.ebuild index 9896ed593e41..8c818e8f7613 100644 --- a/sys-devel/llvm/llvm-3.3-r1.ebuild +++ b/sys-devel/llvm/llvm-3.3-r1.ebuild @@ -1,13 +1,13 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/llvm/llvm-3.3-r1.ebuild,v 1.7 2013/07/31 22:08:14 mgorny Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/llvm/llvm-3.3-r1.ebuild,v 1.8 2013/08/02 09:30:59 mgorny Exp $ EAPI=5 PYTHON_COMPAT=( python{2_5,2_6,2_7} pypy{1_9,2_0} ) inherit eutils flag-o-matic multilib multilib-minimal \ - python-r1 toolchain-funcs pax-utils + python-r1 toolchain-funcs pax-utils check-reqs DESCRIPTION="Low Level Virtual Machine" HOMEPAGE="http://llvm.org/" @@ -61,7 +61,45 @@ REQUIRED_USE="${PYTHON_REQUIRED_USE} S=${WORKDIR}/${P}.src +pkg_pretend() { + # in megs + # !clang !debug !multitarget -O2 400 + # !clang !debug multitarget -O2 550 + # clang !debug !multitarget -O2 950 + # clang !debug multitarget -O2 1200 + # !clang debug multitarget -O2 5G + # clang !debug multitarget -O0 -g 12G + # clang debug multitarget -O2 16G + # clang debug multitarget -O0 -g 14G + + local build_size=550 + use clang && build_size=1200 + + if use debug; then + ewarn "USE=debug is known to increase the size of package considerably" + ewarn "and cause the tests to fail." + ewarn + + (( build_size *= 14 )) + elif is-flagq -g || is-flagq -ggdb; then + ewarn "The C++ compiler -g option is known to increase the size of the package" + ewarn "considerably. If you run out of space, please consider removing it." + ewarn + + (( build_size *= 10 )) + fi + + # Multiply by number of ABIs :). + local abis=( $(multilib_get_enabled_abis) ) + (( build_size *= ${#abis[@]} )) + + CHECKREQS_DISK_BUILD=${build_size}M + check-reqs_pkg_pretend +} + pkg_setup() { + check-reqs_pkg_setup + # need to check if the active compiler is ok broken_gcc=" 3.2.2 3.2.3 3.3.2 4.1.1 " diff --git a/sys-devel/llvm/llvm-9999.ebuild b/sys-devel/llvm/llvm-9999.ebuild index 4ce0a027b2d2..e837f4ceff1f 100644 --- a/sys-devel/llvm/llvm-9999.ebuild +++ b/sys-devel/llvm/llvm-9999.ebuild @@ -1,13 +1,13 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/llvm/llvm-9999.ebuild,v 1.46 2013/07/31 22:47:06 mgorny Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/llvm/llvm-9999.ebuild,v 1.47 2013/08/02 09:30:59 mgorny Exp $ EAPI=5 PYTHON_COMPAT=( python{2_5,2_6,2_7} pypy{1_9,2_0} ) inherit subversion eutils flag-o-matic multilib multilib-minimal \ - python-r1 toolchain-funcs pax-utils + python-r1 toolchain-funcs pax-utils check-reqs DESCRIPTION="Low Level Virtual Machine" HOMEPAGE="http://llvm.org/" @@ -56,7 +56,45 @@ RDEPEND="dev-lang/perl REQUIRED_USE="${PYTHON_REQUIRED_USE} test? ( || ( $(python_gen_useflags 'python*') ) )" +pkg_pretend() { + # in megs + # !clang !debug !multitarget -O2 400 + # !clang !debug multitarget -O2 550 + # clang !debug !multitarget -O2 950 + # clang !debug multitarget -O2 1200 + # !clang debug multitarget -O2 5G + # clang !debug multitarget -O0 -g 12G + # clang debug multitarget -O2 16G + # clang debug multitarget -O0 -g 14G + + local build_size=550 + use clang && build_size=1200 + + if use debug; then + ewarn "USE=debug is known to increase the size of package considerably" + ewarn "and cause the tests to fail." + ewarn + + (( build_size *= 14 )) + elif is-flagq -g || is-flagq -ggdb; then + ewarn "The C++ compiler -g option is known to increase the size of the package" + ewarn "considerably. If you run out of space, please consider removing it." + ewarn + + (( build_size *= 10 )) + fi + + # Multiply by number of ABIs :). + local abis=( $(multilib_get_enabled_abis) ) + (( build_size *= ${#abis[@]} )) + + CHECKREQS_DISK_BUILD=${build_size}M + check-reqs_pkg_pretend +} + pkg_setup() { + check-reqs_pkg_setup + # need to check if the active compiler is ok broken_gcc=" 3.2.2 3.2.3 3.3.2 4.1.1 " |