From b4fba3e9fa2e285244de491f57700978158c1838 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 14 May 2012 01:29:40 -0700 Subject: prepstrip: disable parallel for splitdebug, etc.. --- bin/ebuild-helpers/prepstrip | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/ebuild-helpers/prepstrip b/bin/ebuild-helpers/prepstrip index 09b0333d9..a5b2cae8b 100755 --- a/bin/ebuild-helpers/prepstrip +++ b/bin/ebuild-helpers/prepstrip @@ -62,6 +62,20 @@ prepstrip_sources_dir=${EPREFIX}/usr/src/debug/${CATEGORY}/${PF} type -P debugedit >/dev/null && debugedit_found=true || debugedit_found=false debugedit_warned=false +disable_parallel=false +${FEATURES_splitdebug} && disable_parallel=true +${FEATURES_installsources} && \ + ! ${RESTRICT_installsources} && \ + ${debugedit_found} && disable_parallel=true + +if ${disable_parallel} ; then + # Disable parallel processing, in order to prevent interference with + # temp files like debug.sources or prepstrip.split.debug + numjobs() { + echo 1 + } +fi + multijob_init unset ${!INODE_*} @@ -265,6 +279,9 @@ do multijob_post_fork done +# Let jobs finish before processing ${T}/debug.sources +multijob_finish + if [[ -s ${T}/debug.sources ]] && \ ${FEATURES_installsources} && \ ! ${RESTRICT_installsources} && \ @@ -284,5 +301,3 @@ then >> "$emptydir"/.keepdir done < <(find "${D}${prepstrip_sources_dir}/" -type d -empty -print0) fi - -multijob_finish -- cgit v1.2.3-1-g7c22