mgorny      14/12/13 08:42:42

  Modified:             ChangeLog multibuild.eclass
  Log:
  Disable parallel run support.

Revision  Changes    Path
1.1461               eclass/ChangeLog

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.1461&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.1461&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?r1=1.1460&r2=1.1461

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v
retrieving revision 1.1460
retrieving revision 1.1461
diff -u -r1.1460 -r1.1461
--- ChangeLog   13 Dec 2014 08:41:37 -0000      1.1460
+++ ChangeLog   13 Dec 2014 08:42:42 -0000      1.1461
@@ -1,6 +1,9 @@
 # ChangeLog for eclass directory
 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1460 2014/12/13 
08:41:37 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1461 2014/12/13 
08:42:42 mgorny Exp $
+
+  13 Dec 2014; Michał Górny <[email protected]> multibuild.eclass:
+  Disable parallel run support.
 
   13 Dec 2014; Michał Górny <[email protected]> multilib-build.eclass,
   multilib-minimal.eclass:



1.20                 eclass/multibuild.eclass

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/multibuild.eclass?rev=1.20&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/multibuild.eclass?rev=1.20&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/multibuild.eclass?r1=1.19&r2=1.20

Index: multibuild.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/multibuild.eclass,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- multibuild.eclass   31 Oct 2014 00:57:49 -0000      1.19
+++ multibuild.eclass   13 Dec 2014 08:42:42 -0000      1.20
@@ -1,6 +1,6 @@
 # Copyright 1999-2014 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/multibuild.eclass,v 1.19 2014/10/31 
00:57:49 pesa Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/multibuild.eclass,v 1.20 2014/12/13 
08:42:42 mgorny Exp $
 
 # @ECLASS: multibuild
 # @MAINTAINER:
@@ -26,8 +26,6 @@
 
 if [[ ! ${_MULTIBUILD} ]]; then
 
-inherit multiprocessing
-
 # @ECLASS-VARIABLE: MULTIBUILD_VARIANTS
 # @DESCRIPTION:
 # An array specifying all enabled variants which multibuild_foreach*
@@ -138,8 +136,8 @@
 # @USAGE: [<argv>...]
 # @DESCRIPTION:
 # Run the passed command repeatedly for each of the enabled package
-# variants alike multibuild_foreach_variant. Multiple invocations of the 
command
-# will be performed in parallel, up to MULTIBUILD_JOBS tasks.
+# variants. This used to run the commands in parallel but now it's
+# just a deprecated alias to multibuild_foreach_variant.
 #
 # The function returns 0 if all commands return 0, or the first non-zero
 # exit status otherwise. However, it performs all the invocations
@@ -148,31 +146,7 @@
 multibuild_parallel_foreach_variant() {
        debug-print-function ${FUNCNAME} "${@}"
 
-       local ret lret
-
-       _multibuild_parallel() {
-               (
-                       multijob_child_init
-                       "${@}"
-               ) &
-               multijob_post_fork
-       }
-
-       local opts
-       if [[ ${MULTIBUILD_JOBS} ]]; then
-               opts=-j${MULTIBUILD_JOBS}
-       else
-               opts=${MAKEOPTS}
-       fi
-
-       multijob_init "${opts}"
-       multibuild_foreach_variant _multibuild_parallel "${@}"
-       ret=${?}
-       multijob_finish
-       lret=${?}
-
-       [[ ${ret} -eq 0 ]] && ret=${lret}
-       return ${ret}
+       multibuild_foreach_variant "${@}"
 }
 
 # @FUNCTION: multibuild_for_best_variant
@@ -252,25 +226,12 @@
 # Merge the directory tree (fake root) from <src-root> to <dest-root>
 # (the real root). Both directories have to be real, absolute paths
 # (i.e. including ${D}). Source root will be removed.
-#
-# This functions uses locking to support merging during parallel
-# installs.
 multibuild_merge_root() {
        local src=${1}
        local dest=${2}
 
-       local lockfile=${T}/.multibuild_merge_lock
-       local lockfile_l=${lockfile}.${BASHPID}
        local ret
 
-       # Lock the install tree for merge. The touch+ln method ensures race
-       # condition-free locking with maximum portability.
-       touch "${lockfile_l}" || die
-       until ln "${lockfile_l}" "${lockfile}" &>/dev/null; do
-               sleep 1
-       done
-       rm "${lockfile_l}" || die
-
        if use userland_BSD; then
                # Most of BSD variants fail to copy broken symlinks, #447370
                # also, they do not support --version
@@ -297,9 +258,6 @@
                ret=${?}
        fi
 
-       # Remove the lock.
-       rm "${lockfile}" || die
-
        if [[ ${ret} -ne 0 ]]; then
                die "${MULTIBUILD_VARIANT:-(unknown)}: merging image failed."
        fi




Reply via email to