From 96205dfbd1d850e3845e6b6a9bb058c1c38f79e4 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Sat, 15 Apr 2017 10:48:08 +0200 Subject: sys-devel/llvm: Remove no-longer-useful check-reqs Now that LLVM is split, the package is no longer horribly large in regular builds. The new sizes fit the usual limits and so do not need specific checks. Furthermore, maintaining all those values with different USE flags and compiler flags combinations. --- sys-devel/llvm/llvm-4.0.0-r2.ebuild | 45 ++----------------------------------- sys-devel/llvm/llvm-9999.ebuild | 45 ++----------------------------------- 2 files changed, 4 insertions(+), 86 deletions(-) (limited to 'sys-devel/llvm') diff --git a/sys-devel/llvm/llvm-4.0.0-r2.ebuild b/sys-devel/llvm/llvm-4.0.0-r2.ebuild index 4e23b863f255..a61ba7cfb947 100644 --- a/sys-devel/llvm/llvm-4.0.0-r2.ebuild +++ b/sys-devel/llvm/llvm-4.0.0-r2.ebuild @@ -8,8 +8,8 @@ EAPI=6 CMAKE_MIN_VERSION=3.7.0-r1 PYTHON_COMPAT=( python2_7 ) -inherit check-reqs cmake-utils flag-o-matic \ - multilib-minimal pax-utils python-any-r1 toolchain-funcs versionator +inherit cmake-utils flag-o-matic multilib-minimal pax-utils \ + python-any-r1 toolchain-funcs versionator DESCRIPTION="Low Level Virtual Machine" HOMEPAGE="http://llvm.org/" @@ -76,48 +76,7 @@ python_check_deps() { || has_version "dev-python/lit[${PYTHON_USEDEP}]" } -check_space() { - # in megs - # !debug !multitarget -O2 400 - # !debug multitarget -O2 550 - # debug multitarget -O2 5G - - local build_size=550 - - 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?(gdb)?([1-9])'; 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[@]} )) - - local CHECKREQS_DISK_BUILD=${build_size}M - check-reqs_pkg_pretend -} - -pkg_pretend() { - check_space -} - -pkg_setup() { - check_space -} - src_prepare() { - # Python is needed to run tests using lit - python_setup - # Fix llvm-config for shared linking and sane flags # https://bugs.gentoo.org/show_bug.cgi?id=565358 eapply "${FILESDIR}"/9999/0007-llvm-config-Clean-up-exported-values-update-for-shar.patch diff --git a/sys-devel/llvm/llvm-9999.ebuild b/sys-devel/llvm/llvm-9999.ebuild index 2d6aee824234..545cfbbcb49c 100644 --- a/sys-devel/llvm/llvm-9999.ebuild +++ b/sys-devel/llvm/llvm-9999.ebuild @@ -8,8 +8,8 @@ EAPI=6 CMAKE_MIN_VERSION=3.7.0-r1 PYTHON_COMPAT=( python2_7 ) -inherit check-reqs cmake-utils flag-o-matic git-r3 \ - multilib-minimal pax-utils python-any-r1 toolchain-funcs versionator +inherit cmake-utils flag-o-matic git-r3 multilib-minimal pax-utils \ + python-any-r1 toolchain-funcs versionator DESCRIPTION="Low Level Virtual Machine" HOMEPAGE="http://llvm.org/" @@ -75,48 +75,7 @@ python_check_deps() { || has_version "dev-python/lit[${PYTHON_USEDEP}]" } -check_space() { - # in megs - # !debug !multitarget -O2 400 - # !debug multitarget -O2 550 - # debug multitarget -O2 5G - - local build_size=550 - - 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?(gdb)?([1-9])'; 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[@]} )) - - local CHECKREQS_DISK_BUILD=${build_size}M - check-reqs_pkg_pretend -} - -pkg_pretend() { - check_space -} - -pkg_setup() { - check_space -} - src_prepare() { - # Python is needed to run tests using lit - python_setup - # Fix llvm-config for shared linking and sane flags # https://bugs.gentoo.org/show_bug.cgi?id=565358 eapply "${FILESDIR}"/9999/0007-llvm-config-Clean-up-exported-values-update-for-shar.patch -- cgit v1.2.3-65-gdbad