sys-devel/llvm: Remove no-longer-useful check-reqs
authorMichał Górny <mgorny@gentoo.org>
Sat, 15 Apr 2017 08:48:08 +0000 (10:48 +0200)
committerMichał Górny <mgorny@gentoo.org>
Sat, 15 Apr 2017 08:53:42 +0000 (10:53 +0200)
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
sys-devel/llvm/llvm-9999.ebuild

index 4e23b863f255fe31e25cfd953b9bb0ef03f21323..a61ba7cfb947260ef891dcf1733136f986d1b96a 100644 (file)
@@ -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
index 2d6aee8242349fc23bfdcf5bfa5ca3cc50f558d6..545cfbbcb49c13566e44ef72cdffe31d5bdde04a 100644 (file)
@@ -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