Gentoo Archives: gentoo-commits

From: Brian Dolbec <brian.dolbec@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage:master commit in: pym/portage/dbapi/
Date: Thu, 05 Dec 2013 15:39:00
Message-Id: 1386256607.c08e18723f34cb33a025b7cfa999f03cced9a67b.dol-sen@gentoo
1 commit: c08e18723f34cb33a025b7cfa999f03cced9a67b
2 Author: Sebastian Luther <SebastianLuther <AT> gmx <DOT> de>
3 AuthorDate: Thu Dec 5 13:36:51 2013 +0000
4 Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com>
5 CommitDate: Thu Dec 5 15:16:47 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=c08e1872
7
8 Don't filter USE for binary packages with IUSE (bug 485920)
9
10 USE may contain values that aren't present in IUSE for any
11 supported EAPI. This for example breaks use dependencies on
12 USE_EXPAND-values.
13
14 The behavior for binary packages is now in line with what is
15 done for installed packages.
16
17 Note that this filtering was not active during merge.
18
19 URL: https://bugs.gentoo.org/485920
20
21 ---
22 pym/portage/dbapi/bintree.py | 7 +------
23 1 file changed, 1 insertion(+), 6 deletions(-)
24
25 diff --git a/pym/portage/dbapi/bintree.py b/pym/portage/dbapi/bintree.py
26 index 61ac6b5..b1f67ae 100644
27 --- a/pym/portage/dbapi/bintree.py
28 +++ b/pym/portage/dbapi/bintree.py
29 @@ -1283,11 +1283,6 @@ class binarytree(object):
30
31 def _eval_use_flags(self, cpv, metadata):
32 use = frozenset(metadata["USE"].split())
33 - raw_use = use
34 - iuse = set(f.lstrip("-+") for f in metadata["IUSE"].split())
35 - use = [f for f in use if f in iuse]
36 - use.sort()
37 - metadata["USE"] = " ".join(use)
38 for k in self._pkgindex_use_evaluated_keys:
39 if k.endswith('DEPEND'):
40 token_class = Atom
41 @@ -1296,7 +1291,7 @@ class binarytree(object):
42
43 try:
44 deps = metadata[k]
45 - deps = use_reduce(deps, uselist=raw_use, token_class=token_class)
46 + deps = use_reduce(deps, uselist=use, token_class=token_class)
47 deps = paren_enclose(deps)
48 except portage.exception.InvalidDependString as e:
49 writemsg("%s: %s\n" % (k, str(e)),