commit:     da0ca02d4d009136cf90dacb4c9fa8d07c41df28
Author:     Kent Fredric <kentnl <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 11 10:00:22 2019 +0000
Commit:     Kent Fredric <kentnl <AT> gentoo <DOT> org>
CommitDate: Fri Jan 11 10:03:03 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da0ca02d

dev-perl/DBI: Workaround test failures with -jx w/ x > 70 bug #675164

Bug: https://bugs.gentoo.org/675164
Package-Manager: Portage-2.3.55, Repoman-2.3.12
Signed-off-by: Kent Fredric <kentnl <AT> gentoo.org>

 dev-perl/DBI/DBI-1.637.0.ebuild | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/dev-perl/DBI/DBI-1.637.0.ebuild b/dev-perl/DBI/DBI-1.637.0.ebuild
index 70e87656bce..1676a747a16 100644
--- a/dev-perl/DBI/DBI-1.637.0.ebuild
+++ b/dev-perl/DBI/DBI-1.637.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -27,6 +27,10 @@ DEPEND="${RDEPEND}
        )
 "
 src_test() {
+       if [[ $(makeopts_jobs) -gt 70 ]]; then
+               einfo "Reducing jobs to 70. Bug: https://bugs.gentoo.org/675164";
+               MAKEOPTS="${MAKEOPTS} -j70";
+       fi
        perl_rm_files t/pod-coverage.t t/pod.t
        perl-module_src_test
 }

Reply via email to