* [gentoo-portage-dev] [PATCH] calc_depclean: do not abort for broken soname dependencies (bug 563844)
@ 2015-10-23 6:00 Zac Medico
2015-10-23 10:31 ` Alexander Berntsen
0 siblings, 1 reply; 2+ messages in thread
From: Zac Medico @ 2015-10-23 6:00 UTC (permalink / raw
To: gentoo-portage-dev; +Cc: Zac Medico
X-Gentoo-Bug: 563844
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=563844
---
pym/_emerge/actions.py | 22 +++++++++++++++++++++-
1 file changed, 21 insertions(+), 1 deletion(-)
diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py
index 602715b..7f1cb59 100644
--- a/pym/_emerge/actions.py
+++ b/pym/_emerge/actions.py
@@ -863,11 +863,31 @@ def calc_depclean(settings, trees, ldpath_mtimes,
def unresolved_deps():
+ soname_deps = set()
unresolvable = set()
for dep in resolver._dynamic_config._initially_unsatisfied_deps:
if isinstance(dep.parent, Package) and \
(dep.priority > UnmergeDepPriority.SOFT):
- unresolvable.add((dep.atom, dep.parent.cpv))
+ if dep.atom.soname:
+ soname_deps.add((dep.atom, dep.parent.cpv))
+ else:
+ unresolvable.add((dep.atom, dep.parent.cpv))
+
+ if soname_deps:
+ # Generally, broken soname dependencies can safely be
+ # suppressed by a REQUIRES_EXCLUDE setting in the ebuild,
+ # so they should only trigger a warning message.
+ prefix = warn(" * ")
+ msg = []
+ msg.append("Broken soname dependencies found:")
+ msg.append("")
+ for atom, parent in soname_deps:
+ msg.append(" %s required by:" % (atom,))
+ msg.append(" %s" % (parent,))
+ msg.append("")
+
+ writemsg_level("".join("%s%s\n" % (prefix, line) for line in msg),
+ level=logging.WARNING, noiselevel=-1)
if not unresolvable:
return False
--
2.4.9
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [gentoo-portage-dev] [PATCH] calc_depclean: do not abort for broken soname dependencies (bug 563844)
2015-10-23 6:00 [gentoo-portage-dev] [PATCH] calc_depclean: do not abort for broken soname dependencies (bug 563844) Zac Medico
@ 2015-10-23 10:31 ` Alexander Berntsen
0 siblings, 0 replies; 2+ messages in thread
From: Alexander Berntsen @ 2015-10-23 10:31 UTC (permalink / raw
To: gentoo-portage-dev
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Looks OK.
- --
Alexander
bernalex@gentoo.org
https://secure.plaimi.net/~alexander
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAEBCgAGBQJWKgxsAAoJENQqWdRUGk8BT6MQAKMUMiAwCQLQrQO8bjZbdVsu
VxDuVTv1Yjc4a01RqhLeTMkpbSBdlpD2O3riKSYuId7SIx5Ap1/1Uh7neveW5stO
xO2IJqxn0VEt5gpeHaTwFig1UZHKiwMqrHH79zUTxhxRvXGbQ3iZnwrfxHYKglrp
jFzoY1a1gS4OAXwwkDhf0JssohZolFib8RjhWlOtRJLyesVD+8v3BOi+DzWYKbH6
WxANE7Lqc/ybWcCXmuHKjFJCODSK8MGZ6bQi2waIoTKT5+uwM7grs2aIGNVPFeuM
MxCqamT1cbtHyeLCWxsGd/8A6EqGywRBLx/2kmniA30no/TG8l1VaMfs/Gemr/CT
u+Uh6gPzH2qmAhs7tFrV1xnXbiwlSL3fO0Lf4XSVq/DF5KIyz2sJJm6/K192M/tg
0Ta+eix1EAqyLDUa9uy6b8/RcvTG12EYO9HZE47tCkkUzRD1UhR60CbkYu9DlmQk
bfuyprTig1iraP1lLPsypAa0hwwWBo4rKDERIyp1UGelP/y8Gjo0QhDNzXESCibg
bg3sqzA9WxPk8V34ZHWBJeHT4+0gP0iaY4vrVyJ0LbUQaGNChfidOZW81Udv0zrN
zOk3Sh6gmlU0EYzQHrxAehQtxuwx89V8WrJ7Y0Dwei8lLLP3zJlWH83K5xGZJWdO
9ooa4btOHi5WnzdHc39j
=yTyj
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-10-23 10:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-23 6:00 [gentoo-portage-dev] [PATCH] calc_depclean: do not abort for broken soname dependencies (bug 563844) Zac Medico
2015-10-23 10:31 ` Alexander Berntsen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox