summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2017-03-15 16:59:34 +0100
committerMichał Górny <mgorny@gentoo.org>2017-03-15 17:06:24 +0100
commit4760ee7b3d169641934d67e92477928ccbd91b02 (patch)
treed58434f0f82dc8999f7274a31fd54313ce5fc944
parentapp-arch/lbzip2: arm arm64 stable (bug 611832). (diff)
downloadgentoo-4760ee7b3d169641934d67e92477928ccbd91b02.tar.gz
gentoo-4760ee7b3d169641934d67e92477928ccbd91b02.tar.bz2
gentoo-4760ee7b3d169641934d67e92477928ccbd91b02.zip
sys-libs/compiler-rt-sanitizers: Add space checks for tests
Add a space check when tests are enabled. This avoids the issue of tests starting to fail in the middle of run due to no free space in WORKDIR. On amd64, the tests can eat up to 11G.
-rw-r--r--sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-4.0.0.ebuild14
-rw-r--r--sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-9999.ebuild14
2 files changed, 26 insertions, 2 deletions
diff --git a/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-4.0.0.ebuild b/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-4.0.0.ebuild
index e5e2db2c1e4a..70c0d1d6fde8 100644
--- a/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-4.0.0.ebuild
+++ b/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-4.0.0.ebuild
@@ -8,7 +8,7 @@ EAPI=6
CMAKE_MIN_VERSION=3.7.0-r1
PYTHON_COMPAT=( python2_7 )
-inherit cmake-utils flag-o-matic llvm python-any-r1 versionator
+inherit check-reqs cmake-utils flag-o-matic llvm python-any-r1 versionator
DESCRIPTION="Compiler runtime libraries for clang (sanitizers & xray)"
HOMEPAGE="http://llvm.org/"
@@ -37,7 +37,19 @@ S=${WORKDIR}/compiler-rt-${PV/_/}.src
# least intrusive of all
CMAKE_BUILD_TYPE=RelWithDebInfo
+check_space() {
+ if use test; then
+ local CHECKREQS_DISK_BUILD=11G
+ check-reqs_pkg_pretend
+ fi
+}
+
+pkg_pretend() {
+ check_space
+}
+
pkg_setup() {
+ check_space
llvm_pkg_setup
python-any-r1_pkg_setup
}
diff --git a/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-9999.ebuild b/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-9999.ebuild
index ca1c0b648928..f27e77f73ca8 100644
--- a/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-9999.ebuild
+++ b/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-9999.ebuild
@@ -8,7 +8,7 @@ EAPI=6
CMAKE_MIN_VERSION=3.7.0-r1
PYTHON_COMPAT=( python2_7 )
-inherit cmake-utils flag-o-matic git-r3 llvm python-any-r1 versionator
+inherit check-reqs cmake-utils flag-o-matic git-r3 llvm python-any-r1 versionator
DESCRIPTION="Compiler runtime libraries for clang (sanitizers & xray)"
HOMEPAGE="http://llvm.org/"
@@ -36,7 +36,19 @@ DEPEND="
# least intrusive of all
CMAKE_BUILD_TYPE=RelWithDebInfo
+check_space() {
+ if use test; then
+ local CHECKREQS_DISK_BUILD=11G
+ check-reqs_pkg_pretend
+ fi
+}
+
+pkg_pretend() {
+ check_space
+}
+
pkg_setup() {
+ check_space
llvm_pkg_setup
python-any-r1_pkg_setup
}