Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 383582 Details for
Bug 515230
Portage >=2.2.9: Dependency resolver makes incorrect choices to satisfy dependencies of virtual/pkgconfig and virtual/*udev
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
_dep_check_composite_db: fix bug #515230
dep_check_composite_db-fix-bug-515230.patch (text/plain), 2.97 KB, created by
Zac Medico
on 2014-08-25 21:53:20 UTC
(
hide
)
Description:
_dep_check_composite_db: fix bug #515230
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2014-08-25 21:53:20 UTC
Size:
2.97 KB
patch
obsolete
>From 0b140688a4935d6a8ec5025e0d6942641209ed1b Mon Sep 17 00:00:00 2001 >From: Zac Medico <zmedico@gentoo.org> >Date: Mon, 25 Aug 2014 14:48:20 -0700 >Subject: [PATCH] _dep_check_composite_db: fix bug #515230 > >This fixes _dep_check_composite_db so that graph packages do not mask >non-graph packages unless the graph packages also match the atom passed >into the match_pkgs method. Also, it fixes the match / _cpv_pkg_map >interactions to ensure correct match results. > >X-Gentoo-Bug: 515230 >X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=515230 >--- > pym/_emerge/depgraph.py | 30 +++++++++++++++++++----------- > 1 file changed, 19 insertions(+), 11 deletions(-) > >diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py >index a10297a..845a43a 100644 >--- a/pym/_emerge/depgraph.py >+++ b/pym/_emerge/depgraph.py >@@ -8259,18 +8259,20 @@ class _dep_check_composite_db(dbapi): > > return ret > >- def match(self, atom): >+ def match_pkgs(self, atom): > cache_key = (atom, atom.unevaluated_atom) > ret = self._match_cache.get(cache_key) > if ret is not None: >+ for pkg in ret: >+ self._cpv_pkg_map[pkg.cpv] = pkg > return ret[:] > >+ atom_set = InternalPackageSet(initial_atoms=(atom,)) > ret = [] > pkg, existing = self._depgraph._select_package(self._root, atom) > >- if pkg is not None and self._visible(pkg): >- self._cpv_pkg_map[pkg.cpv] = pkg >- ret.append(pkg.cpv) >+ if pkg is not None and self._visible(pkg, atom_set): >+ ret.append(pkg) > > if pkg is not None and \ > atom.slot is None and \ >@@ -8301,18 +8303,19 @@ class _dep_check_composite_db(dbapi): > self._root, slot_atom) > if not pkg: > continue >- if not self._visible(pkg): >+ if not self._visible(pkg, atom_set): > continue >- self._cpv_pkg_map[pkg.cpv] = pkg >- ret.append(pkg.cpv) >+ ret.append(pkg) > > if len(ret) > 1: >- self._cpv_sort_ascending(ret) >+ ret.sort() > > self._match_cache[cache_key] = ret >+ for pkg in ret: >+ self._cpv_pkg_map[pkg.cpv] = pkg > return ret[:] > >- def _visible(self, pkg): >+ def _visible(self, pkg, atom_set): > if pkg.installed and not self._depgraph._want_installed_pkg(pkg): > return False > if pkg.installed and \ >@@ -8350,6 +8353,11 @@ class _dep_check_composite_db(dbapi): > elif in_graph != pkg: > # Mask choices for packages that would trigger a slot > # conflict with a previously selected package. >+ if not atom_set.findAtomForPackage(in_graph, >+ modified_use=self._depgraph._pkg_use_enabled(in_graph)): >+ # Only mask if the graph package matches the given >+ # atom (fixes bug #515230). >+ return True > return False > return True > >@@ -8357,8 +8365,8 @@ class _dep_check_composite_db(dbapi): > metadata = self._cpv_pkg_map[cpv]._metadata > return [metadata.get(x, "") for x in wants] > >- def match_pkgs(self, atom): >- return [self._cpv_pkg_map[cpv] for cpv in self.match(atom)] >+ def match(self, atom): >+ return [pkg.cpv for pkg in self.match_pkgs(atom)] > > def ambiguous_package_name(arg, atoms, root_config, spinner, myopts): > >-- >1.8.1.5 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 515230
:
379740
|
379742
|
379744
|
379746
|
379748
|
379750
|
379752
|
379754
|
383434
|
383436
|
383494
|
383582
|
383824