Skip to content

Commit

Permalink
dev-libs/openssl: limit parallel jobs
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/694512
Package-Manager: Portage-2.3.76, Repoman-2.3.17
Signed-off-by: Thomas Deutschmann <[email protected]>
  • Loading branch information
Whissi committed Sep 15, 2019
1 parent d142b46 commit 2f73648
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion dev-libs/openssl/openssl-1.0.2t.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

EAPI="7"

inherit flag-o-matic toolchain-funcs multilib multilib-minimal
inherit flag-o-matic toolchain-funcs multiprocessing multilib multilib-minimal

# openssl-1.0.2-patches-1.6 contain additional CVE patches
# which got fixed with this release.
Expand Down Expand Up @@ -131,6 +131,13 @@ src_prepare() {
sed -i '/stty -icanon min 0 time 50; read waste/d' config || die
./config --test-sanity || die "I AM NOT SANE"

local make_jobs=$(makeopts_jobs)
if [[ ${make_jobs} -gt 6 ]] ; then
# bug 694512
einfo "Limiting parallel jobs to 6 ..."
export MAKEOPTS=-j6
fi

multilib_copy_sources
}

Expand Down

0 comments on commit 2f73648

Please sign in to comment.