Disable implicit libc deps for ROOT != "/" since it's probably not needed.
authorZac Medico <zmedico@gentoo.org>
Tue, 9 Mar 2010 21:09:34 +0000 (21:09 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 9 Mar 2010 21:09:34 +0000 (21:09 -0000)
svn path=/main/trunk/; revision=15809

pym/_emerge/Scheduler.py
pym/_emerge/depgraph.py

index c35c2eabac6c04f4ccd6f2597cf523ea3a9b35e0..46767e47bdd90b4dee70d9bde7733b7dd43481a9 100644 (file)
@@ -425,6 +425,7 @@ class Scheduler(PollScheduler):
                list contains both a new-style virtual and an old-style PROVIDE
                virtual, the new-style virtual is used.
                """
+               implicit_libc_roots = set([self._running_root.root])
                libc_set = InternalPackageSet([LIBC_PACKAGE_ATOM])
                norm_libc_pkgs = {}
                virt_libc_pkgs = {}
@@ -434,7 +435,8 @@ class Scheduler(PollScheduler):
                                continue
                        if pkg.installed:
                                continue
-                       if pkg.operation == 'merge':
+                       if pkg.root in implicit_libc_roots and \
+                               pkg.operation == 'merge':
                                if libc_set.findAtomForPackage(pkg):
                                        if pkg.category == 'virtual':
                                                d = virt_libc_pkgs
@@ -458,7 +460,8 @@ class Scheduler(PollScheduler):
                                continue
                        if pkg.installed:
                                continue
-                       if pkg.operation == 'merge':
+                       if pkg.root in implicit_libc_roots and \
+                               pkg.operation == 'merge':
                                if pkg in libc_pkgs:
                                        earlier_libc_pkgs.add(pkg)
                                else:
index e34d6d021ef01e5ed11819e1fba46b0cc46b0aee..d096c43589213e37bd0404a7c88548217c42d365 100644 (file)
@@ -3363,7 +3363,7 @@ class depgraph(object):
 
                # Merge libc asap, in order to account for implicit
                # dependencies. See bug #303567.
-               for root in self._dynamic_config.mydbapi:
+               for root in (running_root,):
                        libc_pkg = self._dynamic_config.mydbapi[root].match_pkgs(
                                portage.const.LIBC_PACKAGE_ATOM)
                        if libc_pkg: